How to use the Pythagorean theorem calculator
- Choose which side to find: the hypotenuse or one of the legs.
- Enter the two sides you know, in any unit.
- Read the missing side with the working, plus both acute angles, the area and the perimeter.
Formulas
c = √(a² + b²) a = √(c² − b²) b = √(c² − a²)
Example: a ladder 5 m long leans against a wall with its foot 1.5 m out. The height it reaches is √(5² − 1.5²) = √(25 − 2.25) = √22.75 ≈ 4.77 m.
Common Pythagorean triples
3, 4, 5✓
5, 12, 13✓
8, 15, 17✓
7, 24, 25✓
20, 21, 29✓
9, 40, 41✓
12, 35, 37✓
11, 60, 61✓
Everyday uses
- TV and screen sizes: a 16:9 screen 48 in wide and 27 in tall has a diagonal of √(48² + 27²) ≈ 55 in.
- Squaring a corner: mark 3 ft along one wall and 4 ft along the other; the diagonal should be exactly 5 ft.
- Distance on a map: 3 km east and 4 km north is 5 km in a straight line.
For other angles and sides use the trigonometry calculator; for roots, the square root calculator.
Frequently asked questions
In a right triangle, the square of the hypotenuse (the side opposite the right angle) equals the sum of the squares of the other two sides: a² + b² = c². A triangle with legs 3 and 4 has a hypotenuse of √(9 + 16) = 5.
Rearrange the formula: a = √(c² − b²). If the hypotenuse is 13 and one leg is 5, the other leg is √(169 − 25) = √144 = 12. The hypotenuse must be the longest side, or there's no triangle.
Sets of three whole numbers that fit a² + b² = c², such as 3-4-5, 5-12-13, 8-15-17 and 7-24-25. Any multiple of a triple is also one, so 6-8-10 works. Builders use 3-4-5 to check corners are square.
Only for right triangles. For other triangles use the law of cosines, c² = a² + b² − 2ab cos C, which becomes Pythagoras when C = 90° because cos 90° = 0.
Square the two shorter sides and add them. If the sum equals the square of the longest side, the angle opposite it is 90°. If it's larger, the triangle is acute; if smaller, it's obtuse.