Trigonometry Calculator — Sin, Cos, Tan & Right Triangles
Find sin, cos and tan from an angle or from a triangle's sides, find the angle from a ratio with inverse trig, and solve any right triangle — with every step shown. The classic trap: if sin θ = 3/5, then tan θ = 3/4, not 4/5 — because the adjacent side is 4 (from 3² + 4² = 5²), so tan θ = opposite/adjacent = 3/4.
Trigonometry Calculator: Angle, Sides, Inverse & Solver
Pick the mode that matches what you already know. Calculations run in your browser.
What Is a Trigonometry Calculator?
A trigonometry calculator answers the three questions students ask most: what are sin, cos and tan of this angle? What is sin, cos or tan of this triangle? And what angle gives this ratio? Give it an angle and it returns the ratios — sin 30° = 0.5, tan 45° = 1. Give it a triangle's sides and it returns the ratios and the angle — opposite 3, hypotenuse 5 gives sin θ = 3/5 = 0.6 and θ = 36.87°. Give it a ratio and inverse trig returns the angle — arcsin(0.5) = 30°. Every answer comes with the step-by-step working so you can verify it by hand — including the famous trap: if sin θ = 3/5, tan θ is 3/4, not 4/5.
How to Use the Trigonometry Calculator
The tool has four modes so you can start with whatever you already know.
- Choose a mode that matches your problem (or tap a preset to load a worked example).
- Enter your numbers — angles in degrees, sides in any unit.
- Select Calculate to generate the result cards.
- Read the note under the cards for the step-by-step working and a check you can verify by hand.
The built-in check re-derives the answer a second way — the hypotenuse from Pythagoras against the ratio, or sin²θ + cos²θ = 1 — so a wrong keystroke shows up immediately.
What Is Trigonometry?
Trigonometry is the study of the relationships between the angles and sides of triangles — the word comes from the Greek for "triangle measurement". Its three core functions, sine (sin), cosine (cos) and tangent (tan), are ratios of a right triangle's sides, and they are the same for every triangle that shares the same angle. That is the whole power of the subject: measure the angle once, and you know the ratios for every triangle with that angle.
| Function | Ratio | Memory hook | Example (3-4-5, θ = 36.87°) |
|---|---|---|---|
| Sine (sin) | opposite / hypotenuse | SOH | sin θ = 3/5 = 0.6 |
| Cosine (cos) | adjacent / hypotenuse | CAH | cos θ = 4/5 = 0.8 |
| Tangent (tan) | opposite / adjacent | TOA | tan θ = 3/4 = 0.75 |
| Cosecant (csc) | 1 / sin θ | hypotenuse / opposite | csc θ = 5/3 = 1.6667 |
| Secant (sec) | 1 / cos θ | hypotenuse / adjacent | sec θ = 5/4 = 1.25 |
| Cotangent (cot) | 1 / tan θ | adjacent / opposite | cot θ = 4/3 = 1.3333 |
SOH-CAH-TOA — The One Memory Trick
SOH-CAH-TOA packs all three definitions into one word: Sin = Opposite/Hypotenuse, Cos = Adjacent/Hypotenuse, Tan = Opposite/Adjacent. Say it out loud while you label the triangle — opposite, adjacent, hypotenuse — and the formula writes itself. For the 3-4-5 triangle with θ opposite the side 3: sin θ = 3/5 = 0.6, cos θ = 4/5 = 0.8, tan θ = 3/4 = 0.75.
The Special Angles: 0°, 30°, 45°, 60°, 90°
Five angles appear in almost every textbook problem, and their sin, cos and tan values are worth knowing by heart. They all come from two triangles: the 30-60-90 triangle (half an equilateral triangle) and the 45-45-90 triangle (half a square).
| Angle | sin | cos | tan |
|---|---|---|---|
| 0° | 0 | 1 | 0 |
| 30° | 1/2 = 0.5 | √3/2 = 0.8660 | 1/√3 = 0.5774 |
| 45° | √2/2 = 0.7071 | √2/2 = 0.7071 | 1 |
| 60° | √3/2 = 0.8660 | 1/2 = 0.5 | √3 = 1.7321 |
| 90° | 1 | 0 | undefined |
Inverse Trig — Finding the Angle From a Ratio
Inverse trig runs the functions backwards: arcsin, arccos and arctan take a ratio and return the angle. If sin θ = 0.5, then θ = arcsin(0.5) = 30°. If tan θ = 1, then θ = arctan(1) = 45°. If cos θ = 0.5, then θ = arccos(0.5) = 60°. The catch is the range: arcsin and arccos only accept ratios between −1 and 1 (a ratio of sides can never be bigger than 1 for sin and cos), while arctan accepts any number. Enter arcsin(2) and the calculator rejects it — no angle has a sine of 2.
Trigonometry Calculator Worked Examples
Every row below is computed exactly — hand-verified in Python — so you can check each one by hand.
| Task | Working | Answer |
|---|---|---|
| sin 30° | Opposite/hypotenuse in a 30-60-90 triangle | 0.5 |
| cos 30° | √3/2 | 0.8660 |
| tan 30° | 1/√3 | 0.5774 |
| sin 45° = cos 45° | √2/2 | 0.7071 |
| tan 45° | Opposite = adjacent | 1 |
| sin 60° | √3/2 | 0.8660 |
| cos 60° | 1/2 | 0.5 |
| tan 60° | √3 | 1.7321 |
| 3-4-5: sin θ | 3/5 | 0.6 |
| 3-4-5: cos θ | 4/5 | 0.8 |
| 3-4-5: tan θ | 3/4 — NOT 4/5 | 0.75 |
| 3-4-5: angle θ | arcsin(3/5) = arctan(3/4) | 36.87° |
| arcsin(0.5) | The angle whose sine is 0.5 | 30° |
| arccos(0.5) | The angle whose cosine is 0.5 | 60° |
| arctan(1) | The angle whose tangent is 1 | 45° |
| Hyp 10, angle 30°: opposite | 10 × sin 30° = 10 × 0.5 | 5 |
| Hyp 10, angle 30°: adjacent | 10 × cos 30° = 10 × 0.8660 | 8.6603 |
| 5-12-13: sin θ | 5/13 | 0.3846 |
| 5-12-13: angle θ | arcsin(5/13) | 22.62° |
| 8-15-17: angle θ | arcsin(8/17) | 28.07° |
The 3-4-5 Trap: Why tan θ Is 3/4, Not 4/5
The trap is reading sin θ = 3/5 and guessing tan θ = 4/5 — swapping the numbers without thinking. Tangent is opposite over adjacent, not opposite over hypotenuse. With opposite 3 and hypotenuse 5, Pythagoras finds the missing side first: adjacent² = 5² − 3² = 25 − 9 = 16, so adjacent = 4. Then tan θ = 3/4 = 0.75. The check: sin²θ + cos²θ = 0.6² + 0.8² = 0.36 + 0.64 = 1 — the identity holds, so the sides are right.
The Ladder Problem: A Real-World Right Triangle
A 10-foot ladder leans against a wall at 70° to the ground. How high does it reach? The ladder is the hypotenuse (10), the height is the opposite side: height = 10 × sin 70° = 10 × 0.9397 = 9.3969 ft. The foot of the ladder sits 10 × cos 70° = 10 × 0.3420 = 3.4202 ft from the wall. Check: 9.3969² + 3.4202² = 88.30 + 11.70 = 100 = 10² — Pythagoras confirms it.
How to Find Sin, Cos and Tan Step by Step
Follow this recipe for the classic example — sin θ = 3/5, find tan θ.
- Label the triangle: Opposite the angle θ is 3, the hypotenuse is 5. The third side is the adjacent side — unknown yet.
- Find the adjacent side with Pythagoras: adjacent² = hypotenuse² − opposite² = 5² − 3² = 25 − 9 = 16, so adjacent = 4.
- Write sin θ: sin θ = opposite/hypotenuse = 3/5 = 0.6.
- Write cos θ: cos θ = adjacent/hypotenuse = 4/5 = 0.8.
- Write tan θ: tan θ = opposite/adjacent = 3/4 = 0.75 — not 4/5.
- Check with the identity: sin²θ + cos²θ = 0.6² + 0.8² = 0.36 + 0.64 = 1 ✓. And find the angle if you need it: θ = arcsin(0.6) = 36.87°.
Common Mistakes With Trigonometry
1. Saying tan θ = 4/5 when sin θ = 3/5 — the #1 trap
Tangent is opposite over adjacent, not opposite over hypotenuse. With opposite 3 and hypotenuse 5, the adjacent side is 4 (Pythagoras: 5² − 3² = 16), so tan θ = 3/4 = 0.75. The number 4/5 is cos θ — mixing up tan and cos is exactly the trap.
2. Labelling opposite and adjacent from the wrong angle
Opposite and adjacent are defined relative to the angle θ you are working with. In a 3-4-5 triangle, if θ sits opposite the side 3, then opposite = 3 and adjacent = 4. If you switch to the other acute angle (53.13°), opposite and adjacent swap: sin becomes 4/5 and cos becomes 3/5. Always label the triangle for the angle in your question first.
3. Using the hypotenuse as the adjacent side
The adjacent side is the leg next to θ — the hypotenuse is never the adjacent side and never the opposite side. In tan θ = opposite/adjacent, neither number is ever the hypotenuse. If your tan comes out using 5 in a 3-4-5 triangle, you have used the wrong side.
4. Degrees vs radians
Most calculators and code default to radians. sin(30°) = 0.5, but sin(30 radians) = −0.9880. If your answer looks nothing like the table above, check the angle mode first — this calculator works in degrees throughout.
5. Taking arcsin of a number bigger than 1
sin θ and cos θ can never be bigger than 1, so arcsin(2) and arccos(1.5) have no answer. If your ratio comes out above 1, the sides are mislabelled — usually the hypotenuse was entered as the opposite side. Arctan has no such limit: any number works.
6. Forgetting tan 90° is undefined
tan 90° = sin 90°/cos 90° = 1/0 — division by zero, so it is undefined, not 0 and not 1. The same goes for any angle where cos θ = 0. If your calculator shows an enormous number (like 1.6 × 10¹⁶), that is its way of saying "undefined".
Benefits and Limitations
Benefits
- Finds sin, cos and tan from an angle, from sides, or from a ratio — all in one tool.
- Inverse trig (arcsin, arccos, arctan) returns the angle in degrees, with range checks that reject impossible ratios.
- The right-triangle solver finds every missing side and angle from the hypotenuse plus one angle or one side.
- Every answer carries the step-by-step working — SOH-CAH-TOA, Pythagoras, the identity check — so homework can be checked by hand.
- The special-angle table (0°, 30°, 45°, 60°, 90°) is explained, not just listed.
- Responsive on phones, tablets and desktops.
Limitations
- Right triangles only for the solver — non-right triangles need the law of sines and cosines (see the Triangle Calculator).
- Angles are in degrees only; radians are not accepted.
- Results use JavaScript floating-point arithmetic, so ratios and angles are rounded to 4 decimal places.
Quick Definitions
| Question | Direct Answer |
|---|---|
| What is a trigonometry calculator? | A tool that finds sin, cos and tan from an angle or a triangle's sides, finds the angle from a ratio with inverse trig, and solves right triangles. sin 30° = 0.5, tan 45° = 1. |
| What is sin, cos and tan? | Ratios of a right triangle's sides: sin θ = opposite/hypotenuse, cos θ = adjacent/hypotenuse, tan θ = opposite/adjacent. For 3-4-5: 0.6, 0.8 and 0.75. |
| What is SOH-CAH-TOA? | The memory trick for the three ratios: Sin = Opposite/Hypotenuse, Cos = Adjacent/Hypotenuse, Tan = Opposite/Adjacent. |
| If sin θ = 3/5, what is tan θ? | 3/4 = 0.75 — not 4/5. The adjacent side is 4 (5² − 3² = 16), so tan θ = opposite/adjacent = 3/4. |
| What is sin 30°? | 0.5 — exactly 1/2. Cos 30° = 0.8660 and tan 30° = 0.5774. |
| What is tan 45°? | 1 — at 45° the opposite and adjacent sides are equal, so opposite/adjacent = 1. Sin 45° = cos 45° = 0.7071. |
| What is inverse trig? | Arcsin, arccos and arctan turn a ratio back into an angle: arcsin(0.5) = 30°, arctan(1) = 45°, arccos(0.5) = 60°. |
| What is sin²θ + cos²θ? | Always 1, for any angle θ. For 3-4-5: 0.6² + 0.8² = 0.36 + 0.64 = 1. |
Frequently Asked Questions
If sin θ = 3/5, what is tan θ?
3/4 = 0.75 — not 4/5. Tangent is opposite over adjacent. With opposite 3 and hypotenuse 5, Pythagoras gives the adjacent side: 5² − 3² = 16, so adjacent = 4, and tan θ = 3/4. The number 4/5 is cos θ.
What is sin 30°?
0.5 — exactly 1/2. In a 30-60-90 triangle the side opposite 30° is half the hypotenuse. Cos 30° = √3/2 = 0.8660 and tan 30° = 1/√3 = 0.5774.
What is tan 45°?
1. At 45° the opposite and adjacent sides of the right triangle are equal, so tan 45° = opposite/adjacent = 1. Sin 45° and cos 45° are both √2/2 = 0.7071.
How do you find the angle when you know sin θ?
Use arcsin (inverse sine). If sin θ = 0.5, then θ = arcsin(0.5) = 30°. If sin θ = 0.6 (the 3-4-5 triangle), θ = arcsin(0.6) = 36.87°. The ratio must be between −1 and 1, or there is no angle.
How do you find a missing side of a right triangle?
Multiply the hypotenuse by sin or cos of the angle. With hypotenuse 10 and angle 30°, the opposite side is 10 × sin 30° = 5 and the adjacent side is 10 × cos 30° = 8.6603. Or use Pythagoras if you know two sides: the missing side is √(hypotenuse² − known side²).
What is the difference between sin, cos and tan?
They are three different ratios of the same triangle. Sin θ = opposite/hypotenuse, cos θ = adjacent/hypotenuse, tan θ = opposite/adjacent — and tan θ = sin θ/cos θ. For the 3-4-5 triangle: sin θ = 0.6, cos θ = 0.8, tan θ = 0.75.
Related Math Tools
Trigonometry Calculator Methodology
This calculator derives every answer from the standard trigonometry definitions, using JavaScript floating-point arithmetic (ratios and angles rounded to 4 decimal places).
Trig-from-angle mode evaluates sin, cos and tan directly from the angle in degrees (tan 90° is reported as undefined, since cos 90° = 0). Trig-from-sides mode finds the hypotenuse with Pythagoras from the two legs, then all three ratios and the angle with arctan(opposite/adjacent). Inverse-trig mode rejects sin/cos ratios outside [−1, 1] before computing, since no angle has a sine or cosine beyond that range. The right-triangle solver takes the hypotenuse plus one angle or one side, finds the missing sides with sin/cos or Pythagoras, and the other acute angle as 90° minus the known angle. Every result carries the identity check sin²θ + cos²θ = 1 and a Pythagoras cross-check of the three sides. Inputs must be positive sides and angles strictly between 0° and 90° in the solver; anything else is rejected before any calculation. The page is intended as an educational calculator and verification tool.
Mathematical References
Solve It, Don't Guess It
Enter your angle or triangle above — find sin, cos and tan, or the angle itself, with every step shown.
Use Trigonometry Calculator