Right Triangle Calculator
Type any two values of a right triangle, at least one a side…
Type any two values of a right triangle, at least one a side, to get the other sides and angles, worked out with SOH CAH TOA and drawn to scale.
Angle C
90° (the right angle)
Legs a and b meet at the right angle; c, the hypotenuse, is opposite it.
More optionsNo length unit
Length unit
A label for the answers; the maths is the same in any unit.
ExampleSide a
5
A 30°-60°-90° triangle, one of the two special right triangles.
Type your own values, or drag a corner.
Drag the handle on B to change leg a, or on A to change leg b; the right angle stays at C.
| Side | Opposite angle |
|---|---|
| a = 5 | A = 30°given |
| b = 8.6603exactly 5√3 | B = 60°exactly 60° = π/3 rad |
| c = 10given | C = 90°exactly 90° = π/2 rad |
Area 25√3/2 ≈ 21.6506Perimeter 15 + 5√3 ≈ 23.6603
Area, perimeter, heights and circlesEvery other measurement of this triangle
| Area | 25√3/2 ≈ 21.6506 square units |
|---|---|
| Perimeter | 15 + 5√3 ≈ 23.6603 |
| Height to side a | 8.6603 |
| Height to side b | 5 |
| Height to side c | 4.3301 |
| Inradius (inscribed circle) | 1.8301 |
| Circumradius (circle through the corners) | 5 |
| Angles in radians | A 0.5236, B 1.0472, C 1.5708 |
How this works: 6 sources,
How this works
Method
A right triangle has one 90° angle, so two more values (at least one of them a length) fix everything else. Call the legs a and b, the sides that meet at the right angle, and the hypotenuse c, the long side across from it. Angle A is opposite leg a, and the two acute angles always add up to 90°. Full method
Sources
How it’s tested
3 worked examples for this page are checked by automated tests before every release: given the inputs, the tool must show the expected answer.
Privacy
On your device. Nothing you enter or open leaves this browser. About privacy labels
Changes
- First published: any three values, both triangles in the ambiguous case, exact answers, worked steps, a drawing you can drag and seven focused pages.
How to solve a right triangle
A right triangle has one 90° angle, so two more values (at least one of them a length) fix everything else. Call the legs a and b, the sides that meet at the right angle, and the hypotenuse c, the long side across from it. Angle A is opposite leg a, and the two acute angles always add up to 90°.
With two sides, Pythagoras finds the third: c² = a² + b². With a side and an angle, the trigonometric ratios do the work, remembered as SOH CAH TOA: sin A = opposite ÷ hypotenuse, cos A = adjacent ÷ hypotenuse, tan A = opposite ÷ adjacent. A 4 m ladder leaning at 75° to the ground reaches 4 × sin 75° ≈ 3.864 m up the wall, and its foot stands 4 × cos 75° ≈ 1.035 m out.
Some angles have exact ratios, which is why 30°, 45° and 60° turn up in every textbook. A 30°-60°-90° triangle has sides in the ratio 1 : √3 : 2, and a 45°-45°-90° triangle 1 : 1 : √2. The ladder’s 75° is one of them too: its height is exactly √6 + √2 metres, and the calculator keeps forms like that next to the decimals.
sin A = a/c · cos A = b/c · tan A = a/b · a² + b² = c²
- US high school standards ask students to use trigonometric ratios and the Pythagorean theorem to solve right triangles in applied problems (HSG-SRT.C.8). Source: Common Core State Standards, High School Geometry, Similarity, Right Triangles and Trigonometry (G-SRT).
- The exact sine of 15° is (√6 − √2)/4 and of 75° is (√6 + √2)/4, found from the 30°, 45° and 60° values with the angle sum formulas. Source: Wikipedia, Exact trigonometric values.
Right triangles with a hypotenuse of 10
The two legs of a right triangle with hypotenuse 10 for each angle A from 5° to 85°, exact where the angle allows it.
| Angle A | Angle B | Leg a (opposite A) | Leg b (next to A) | Exact legs |
|---|---|---|---|---|
| 5° | 85° | 0.8716 | 9.9619 | — |
| 10° | 80° | 1.7365 | 9.8481 | — |
| 15° | 75° | 2.5882 | 9.6593 | (5√6 − 5√2)/2 and (5√2 + 5√6)/2 |
| 20° | 70° | 3.4202 | 9.3969 | — |
| 25° | 65° | 4.2262 | 9.0631 | — |
| 30° | 60° | 5 | 8.6603 | 5 and 5√3 |
| 35° | 55° | 5.7358 | 8.1915 | — |
| 40° | 50° | 6.4279 | 7.6604 | — |
| 45° | 45° | 7.0711 | 7.0711 | 5√2 and 5√2 |
| 50° | 40° | 7.6604 | 6.4279 | — |
Show all 17 rowsShow fewer
| 55° | 35° | 8.1915 | 5.7358 | — |
| 60° | 30° | 8.6603 | 5 | 5√3 and 5 |
| 65° | 25° | 9.0631 | 4.2262 | — |
| 70° | 20° | 9.3969 | 3.4202 | — |
| 75° | 15° | 9.6593 | 2.5882 | (5√2 + 5√6)/2 and (5√6 − 5√2)/2 |
| 80° | 10° | 9.8481 | 1.7365 | — |
| 85° | 5° | 9.9619 | 0.8716 | — |
Common questions
Which side is the hypotenuse?
The side opposite the right angle. It is always the longest side, so a leg longer than the hypotenuse means a typo: the calculator says so instead of giving a wrong answer.
Can I solve a right triangle from two angles?
No. Two angles fix the shape but not the size: a 30°-60°-90° triangle can have a hypotenuse of 2 cm or 2 km. You need at least one length.
How do I find an angle from two sides?
Use the inverse ratio for the two sides you have. With the opposite leg and the hypotenuse, A = arcsin(a ÷ c); with both legs, A = arctan(a ÷ b). For legs 5 and 12 that is arctan(5/12) ≈ 22.62°, and the other angle is 90° − 22.62° = 67.38°.
What does “exactly 5√3” mean next to 8.6603?
It is the same length written without rounding: 5 times the square root of 3. Teachers often want answers in this form, and it shows why a 30°-60°-90° triangle comes out so neatly.