Trigonometry Calculator
Enter an angle in degrees and get its sine, cosine and tangent instantly.
What this calculator does
This calculator converts an angle in degrees into its three basic trigonometric values: sine, cosine and tangent. At the defaults, an angle of 30° gives sin = 0.5000, cos = 0.8660 and tan = 0.5774. These ratios are the working vocabulary of triangles, waves and rotations, and this page computes all three at once.
What sine, cosine and tangent are
Picture a right triangle with the angle θ at one corner. The side across from the angle is the opposite; the side next to it (not the slanted one) is the adjacent; the longest side, across from the right angle, is the hypotenuse. Each ratio compares two of these sides, and the ratio depends only on the angle, not the triangle’s size — a 30° triangle in a textbook and one on a highway billboard have identical sine values. The memory hook is SOH-CAH-TOA: Sine = Opposite over Hypotenuse, Cosine = Adjacent over Hypotenuse, Tangent = Opposite over Adjacent.
Degrees versus radians
This calculator works in degrees. Internally the angle is converted to radians first — multiply by π and divide by 180 — because the math functions expect radians. 30° becomes 30 × π ÷ 180 ≈ 0.5236 rad. A full circle is 360° or 2π radians; 90° is π/2. If you are feeding results into programming code or calculus, radians are the standard; for reading protractors and blueprints, degrees are.
The identity that ties them together
For any angle, sin²(θ) + cos²(θ) = 1, and tan(θ) = sin(θ) ÷ cos(θ). At the defaults: 0.5² + 0.866² = 0.25 + 0.75 = 1, and 0.5 ÷ 0.866 ≈ 0.577. These two identities let you reconstruct any missing value from the other two, which is a fast error check on calculator output — if the squares do not add to 1, an input or rounding slip is hiding somewhere.
Worked example: 30 degrees
Step 1 — convert to radians. 30° × π ÷ 180 = π/6 ≈ 0.5236 rad. This is the angle the math functions actually evaluate.
Step 2 — read the values. sin(30°) = 0.5 exactly; cos(30°) = √3/2 ≈ 0.8660; tan(30°) = √3/3 ≈ 0.5774. The 30-60-90 triangle is one of the two special triangles whose values come out in clean surds — a triangle with a 30° angle has sides in ratio 1 : √3 : 2.
Step 3 — check with the identities. 0.5² + 0.8660² = 0.25 + 0.75 = 1 and 0.5 ÷ 0.8660 ≈ 0.5774, so both identities hold. The geometric check: in a right triangle with hypotenuse 2 and a 30° angle, the opposite side is 1 (so sin = 1/2) and the adjacent side is √3 ≈ 1.732 (so cos = √3/2).
Key angles and their values
| Angle | sin | cos | tan |
|---|---|---|---|
| 0° | 0 | 1 | 0 |
| 30° | 0.5 | 0.866 | 0.577 |
| 45° | 0.707 | 0.707 | 1 |
| 60° | 0.866 | 0.5 | 1.732 |
| 90° | 1 | 0 | undefined |
| 180° | 0 | −1 | 0 |
| 270° | −1 | 0 | undefined |
The 45° row shows the isosceles case: opposite and adjacent are equal, so sine and cosine match and tangent is exactly 1. Tangent is undefined at 90° and 270° because the adjacent side has zero length there; near those angles it grows without bound — tan(89°) ≈ 57.29 and tan(89.9°) ≈ 572.96, roughly ten times larger for a tenth of a degree.
What changes the values
- Range of sine and cosine: both stay between −1 and 1 for every angle, while tangent runs across all real numbers.
- Complement symmetry: sin(θ) = cos(90° − θ), so sin(30°) = cos(60°) = 0.5; the values swap as the angle moves through 45°.
- Quadrant signs: from 0° to 90° all three are positive; from 90° to 180° only sine is; from 180° to 270° only tangent is; from 270° to 360° only cosine is.
- Period 360°: sin(390°) = sin(30°) = 0.5, because the ratios repeat every full turn.
- Triangle size is irrelevant: a 30° angle has sin = 0.5 whether the hypotenuse is 2 inches or 200 feet; only the angle matters.
Mistakes to avoid
The most common error is mode confusion: computing sin(30) on a calculator set to radians gives the sine of 30 radians, about −0.988 — a wildly wrong answer that still looks plausible. Always confirm degree mode or convert explicitly. The second error is mixing up opposite and adjacent: which side is which depends on the reference angle, and in a triangle with two acute angles each side plays both roles. The third is dividing by zero for tangent at 90° — the value does not exist, and any number a calculator shows for it is an artifact.
Rounding chains are the quieter trap. If sin(30°) is rounded to 0.5 and then used to recover an angle via arcsin, small roundings compound; keep 4 to 6 decimals through intermediate steps and round once at the end. The calculator’s 6-decimal output supports this habit.
Where these ratios show up
- Construction and DIY: a ramp rising 1 foot over a 12-foot run has tan(θ) = 1/12 ≈ 0.0833, so θ ≈ 4.76°, the standard accessibility slope check.
- Roofing: a 6-in-12 pitch means tan(θ) = 6/12 = 0.5, so θ ≈ 26.57°, the angle this calculator inverts.
- Navigation and surveying: bearing corrections and elevation angles are computed as inverse tangents of measured distances.
- Physics: projectile range, component forces and inclined-plane problems all start from sin and cos of one angle.
- Waves and power: sine curves describe alternating current, sound pressure and tides; 60 Hz AC completes 60 cycles per second.
- Schoolwork: SOH-CAH-TOA problems are standard from geometry through precalculus and the SAT.
The roofing example shows the workflow in miniature: measure rise and run, form the ratio, and the tangent table converts it to an angle a saw can follow. Every inverse problem — angle from ratio — is this page run backwards, and every forward problem — ratios from angle — is exactly what the defaults compute.
Related triangle tools
When you know two sides and need the third, the Pythagorean theorem calculator handles a² + b² = c² directly, and the vector magnitude calculator applies the same squared-and-rooted logic to 3D components. Trigonometry extends the right-triangle toolkit once sides alone are not enough — whenever an angle enters the picture, these three ratios are the bridge.
Frequently asked questions
What is sin 30 degrees?
Exactly 0.5. In a right triangle with a 30° angle, the opposite side is half the hypotenuse, which is why the ratio is one half.
What is cos 30 degrees?
√3/2 ≈ 0.8660. The adjacent side of a 30-60-90 triangle is √3 times the short side, and dividing by the hypotenuse of 2 gives this value.
How do I find the sine of an angle?
Divide the side opposite the angle by the hypotenuse. For 45°, opposite and adjacent are equal, so sin = cos ≈ 0.707 and tan = 1.
Why is tangent undefined at 90 degrees?
Tangent is opposite divided by adjacent, and at 90° the adjacent side has zero length. The ratio has no defined value, and it grows without bound as the angle approaches 90°.
What is the difference between sine and cosine?
Sine uses the side opposite the angle, cosine uses the adjacent side; both divide by the hypotenuse. They swap as the angle passes 45°: sin(30°) = cos(60°) = 0.5.
How do I convert degrees to radians?
Multiply by π and divide by 180. So 30° = π/6 ≈ 0.5236 rad, and a full circle of 360° is 2π radians.
What is tan 45 degrees?
Exactly 1. In a 45-45-90 triangle the opposite and adjacent sides are equal, so their ratio is one — and sine and cosine both equal √2/2 ≈ 0.707.
Can sine or cosine be greater than 1?
No. Both are side lengths divided by the hypotenuse, the longest side, so they stay between −1 and 1. Tangent has no such limit.
How do I check a trig result?
Use the identity sin² + cos² = 1. For 30°: 0.5² + 0.8660² = 0.25 + 0.75 = 1, so the values are consistent.
Why does my calculator give a wrong-looking sine?
It is probably in radian mode. The sine of 30 radians is about −0.988, while sin(30 degrees) = 0.5. Confirm the mode or convert the angle first.
Method and sources
- Standard right-triangle trigonometric ratios (sine, cosine, tangent).