School · Maths · Intermediate

Trigonometry calculator

Give any two values from a right-angled triangle and this solves the rest. The useful part is that it tells you which of sin, cos or tan to use and why, which is the bit people actually get stuck on.

Label your triangle so that θ is the angle you are working from. The hypotenuse is always the longest side, opposite the right angle. The opposite is across from θ, and the adjacent is the remaining side next to θ.
Fill in exactly two. Every other value follows from those.

SOHCAHTOA, and how to actually choose

The three ratios are just definitions of how the sides of a right-angled triangle relate to one of its angles.

RatioFormulaUse it when you have
SOH — sinesin θ = opposite ÷ hypotenuseOpposite and hypotenuse
CAH — cosinecos θ = adjacent ÷ hypotenuseAdjacent and hypotenuse
TOA — tangenttan θ = opposite ÷ adjacentOpposite and adjacent

The choosing method is simple once you see it. Label the two sides you know or want, then look at which pair they are. If the hypotenuse is not involved at all, it is tan. If it is involved along with the opposite, it is sin. If it is involved along with the adjacent, it is cos.

The single most common error: your calculator being in the wrong angle mode. If you are working in degrees, make sure it says DEG and not RAD. A calculator in radians will happily give you a completely wrong answer without any warning. This tool works in degrees.

Finding an angle rather than a side

When you know two sides and want the angle, you use the inverse functions, written sin⁻¹, cos⁻¹ and tan⁻¹, and sometimes called arcsin, arccos and arctan. They do the opposite job: you feed in a ratio and get back the angle that produces it.

So if sin θ = 0.5, then θ = sin⁻¹(0.5) = 30°. On most calculators this is the shift or second-function key above sin. The inverse is not the same as 1 ÷ sin, which is a genuinely different thing despite the notation looking similar.

Common questions

Which side is the adjacent?
It depends on which angle you are working from, which is why labelling matters. The hypotenuse never changes, since it is always opposite the right angle. But swap to the other non-right angle and the opposite and adjacent swap over with it.
Does this work for triangles without a right angle?
No. SOHCAHTOA is defined only for right-angled triangles. For any other triangle you need the sine rule or the cosine rule instead, which work for all triangles but need different information.
Why does my answer differ slightly from the textbook?
Usually rounding. If you round part-way through and then use that rounded value in the next step, small errors build up. Keep full precision until the final answer, then round once.
Should I use Pythagoras or trigonometry?
Pythagoras when you know two sides and want the third, with no angles involved. Trigonometry when an angle is part of the question, either given or wanted. This tool uses whichever is right for what you enter.