About this calculator
Choose whether you need the hypotenuse or a leg.
How to use it
- Choose what to find.
- Enter the two known sides.
- Read the missing side.
The formula
- c
- hypotenuse, opposite the right angle
Worked example
Legs 3 and 4
- c = √(9 + 16) = 5.
- Area = 6; perimeter = 12.
What the result means
3-4-5, 5-12-13 and 8-15-17 are whole-number (Pythagorean) triples.
Common Pythagorean triples
These sides always form a right triangle. Any multiple of a triple, such as 6-8-10 from 3-4-5, is also a triple. You can make new ones with m² − n², 2mn and m² + n² for whole numbers m > n.
| a | b | c (hypotenuse) | Area | Perimeter |
|---|---|---|---|---|
| 3 | 4 | 5 | 6 | 12 |
| 6 | 8 | 10 | 24 | 24 |
| 5 | 12 | 13 | 30 | 30 |
| 8 | 15 | 17 | 60 | 40 |
| 7 | 24 | 25 | 84 | 56 |
| 20 | 21 | 29 | 210 | 70 |
| 12 | 35 | 37 | 210 | 84 |
| 9 | 40 | 41 | 180 | 90 |
| 11 | 60 | 61 | 330 | 132 |
Worked example: how high a ladder reaches
A 5 m ladder leans against a wall with its foot 1.5 m from the wall. Choose ‘A leg’, enter side a = 1.5 and hypotenuse c = 5. The other leg is √(25 − 2.25) ≈ 4.770 m, so the ladder reaches about 4.77 m up the wall.
Using the converse to check a right angle
The theorem also works backwards: if a² + b² = c² for the three sides, the angle opposite c is exactly 90°. Builders use this to square a corner. Mark 3 units along one wall and 4 along the other; if the distance between the marks is 5, the corner is a right angle. Larger multiples such as 6-8-10 give a more accurate check.
Assumptions
- All lengths in the same unit.
Limitations
- Results are rounded to 10 significant figures.
Frequently asked questions
How do I find the hypotenuse?
√(a² + b²).
How do I find a leg?
√(c² − a²).
Does it work for any triangle?
Only right triangles; use the law of cosines otherwise.
What is a Pythagorean triple?
It is a set of three whole numbers a, b and c with a² + b² = c², such as 3, 4, 5 or 5, 12, 13. They give right triangles with whole-number sides.
How can I tell if a triangle is right-angled from its sides?
Square the two shorter sides and add them. If the total equals the square of the longest side, the triangle is right-angled; if it is larger the triangle is acute, and if smaller it is obtuse.
Last reviewed on 12 October 2026. How we calculate and check. Found a mistake? Tell us.

