Right-Triangle Trigonometry Calculator With Steps
Solve a right-angled triangle from two known values and see every step with SOH CAH TOA, or find sin, cos and tan of any angle with the exact values for 30°, 45° and 60°. Everything is calculated in your browser. Nothing you type is saved or sent anywhere.
JavaScript is needed to calculate. The method, formulae and worked example below stay readable without it.
Solve a right-angled triangle
Fill in exactly two boxes: two sides, or one angle and one side. A is an acute angle, a is opposite A, b is adjacent to A and c is the hypotenuse.
Your answer and working
Enter your values and choose Calculate to see every step.
How to use this calculator
- Choose Solve a right-angled triangle. Label the triangle first: A is the angle you work from, a is opposite it, b is adjacent to it and c is the hypotenuse.
- Fill in exactly two boxes: two sides, or one angle and one side.
- Press Calculate to get the missing sides and angles. The working shows which ratio was used, and a Pythagoras check at the end.
- Choose the other mode to see sin, cos and tan of an angle, with exact values for 0°, 30°, 45°, 60° and 90°.
Formulae used
| Sine | sin A = opposite ÷ hypotenuse = a ÷ c |
|---|---|
| Cosine | cos A = adjacent ÷ hypotenuse = b ÷ c |
| Tangent | tan A = opposite ÷ adjacent = a ÷ b |
| Pythagoras | a² + b² = c² |
| Other angle | B = 90° − A |
AQA's 2027 Higher Tier formulae sheet prints Pythagoras' theorem and sin A = a/c, cos A = b/c and tan A = a/b for a right-angled triangle with hypotenuse c. The exact values of the ratios at 30°, 45° and 60° are not printed, so learn them.
Worked example
A right-angled triangle has hypotenuse 10 cm and an angle A of 30°. Find the other sides and angle.
- You have the angle and the hypotenuse, so use sin and cos.
- a = 10 × sin 30° = 10 × 0.5 = 5 cm.
- b = 10 × cos 30° = 10 × 0.8660 ≈ 8.66 cm.
- B = 90° − 30° = 60°.
- Check: 5² + 8.66² ≈ 25 + 75 = 100 = 10².
Answer: a = 5 cm, b ≈ 8.66 cm, B = 60°.
Mistakes that cost marks
- Labelling the sides from the wrong angle. Opposite and adjacent swap if you change the angle.
- Using a calculator in radian mode. Check it is set to degrees.
- Using sin when the question gives adjacent and opposite. That is tan.
- Pressing sin instead of sin⁻¹ when finding an angle.
- Treating the hypotenuse as one of the shorter sides. It is always the longest.
Common questions
What does SOH CAH TOA mean?
Sin = opposite ÷ hypotenuse, cos = adjacent ÷ hypotenuse, tan = opposite ÷ adjacent.
What is the exact value of tan 30°?
1/√3, which can be written √3/3. It is about 0.5774.
Does it work for triangles without a right angle?
No. It solves right-angled triangles only. For other triangles you need the sine and cosine rules.
Why does it say my angle is not allowed?
In a right-angled triangle each of the other two angles is below 90°, so angle A must be between 0 and 90.
Do I need an account, and is my data saved?
No account is needed. The calculation happens in your browser, and what you type is not saved or sent to a server or an analytics service.
Limits and accuracy
Right-angled triangles only. Results are shown to 6 significant figures. For an ambiguous case or a non-right triangle, use the sine rule or cosine rule by hand.
Official sources
- AQA: GCSE Mathematics Higher Tier formulae sheet, for exams in 2027 only (8300, official PDF) (checked 2026-11-18)
- GOV.UK: National curriculum in England, mathematics programmes of study (checked 2026-11-18)
Formula facts were read from these sources on the dates shown. Calculation is done by the same code that the worked examples above were checked against. This tool has had no separate tutor review.
Learn the method behind it
Want someone to check your working?
A calculator gives you an answer; a tutor shows you why it works. If a topic keeps going wrong, you can work through it with a tutor in a free 30-minute demo. No payment details are needed.
Request a free 30-minute demo