Pythagorean theorem calculator: find the missing side
In a right triangle, a² + b² = c², where c is the hypotenuse (the side facing the right angle). Pick the unknown side.
Result
13Hypotenuse c
- c = √(a² + b²) = √(25 + 144) = √169 = 13
- Check: 5² + 12² = 25 + 144 = 169 = 13²
- Perimeter (a + b + c)
- 30
- Area (a × b ÷ 2)
- 30
Inputs
- Side to find
- Hypotenuse c
- Leg a
- 5
- Leg b
- 12
How it is calculated
c² = a² + b², so c = √(a² + b²).
Result
Hypotenuse c
- Perimeter (a + b + c)
- 30
- Area (a × b ÷ 2)
- 30
How it is calculated
- c² = a² + b², so c = √(a² + b²).
- For a leg: a = √(c² − b²).
- The hypotenuse must always be the longest side.
Example
a = 5 and b = 12: c = √(25 + 144) = √169 = 13. Perimeter 30, area 30.
Good to know
- Only valid for a right triangle. For other triangles, use the law of cosines.
- If the hypotenuse is shorter than another side, the triangle is impossible.
- All sides must use the same unit.
When to use it
- Check that a corner is square on a building site with the 3-4-5 rule.
- Find the length of a ladder needed to reach a given height at a given distance from the wall.
- Work out a screen’s diagonal from its width and height.
- For the angles and the area of the same triangle, use Right triangle calculator: sides, angles and area.
Frequently asked questions
How does the 3-4-5 rule check a right angle?
Measure 3 units along one side and 4 along the other. If the distance between the two marks is exactly 5, the corner is a right angle. Multiples such as 60, 80 and 100 cm work too.
What are Pythagorean triples?
Whole-number sides that fit a² + b² = c², such as 3-4-5, 5-12-13 or 8-15-17. They give an exact result with no root to round.
Can the theorem show that a triangle is not right-angled?
Yes. If a² + b² is not equal to c² for the longest side c, the triangle has no right angle.