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² = a² + b²
- 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.
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.
Last reviewed on 3 October 2026. Found a mistake? Tell us.

