Pythagorean Theorem Calculator
Find the missing side of a right triangle with the Pythagorean theorem a² + b² = c². Enter any two sides (two legs, or a leg and the hypotenuse) to get the third.
- 100% free
- No signup
- Runs in your browser
How to use
- Enter the two sides you know and leave the third field empty.
- a and b are the legs that form the right angle; c is the hypotenuse, the longest side, opposite the right angle.
- Click Calculate or press Enter to see the missing side.
The Pythagorean theorem
| Missing side | Formula |
|---|---|
| Hypotenuse c | c = √(a² + b²) |
| Leg a | a = √(c² − b²) |
| Leg b | b = √(c² − a²) |
In every right triangle, the square of the hypotenuse equals the sum of the squares of the two legs: a² + b² = c². The formula works in both directions, so any side can be found from the other two.
The converse is also true: if three sides satisfy a² + b² = c², the triangle has a right angle. Builders use a 3-4-5 measurement to check that corners are square.
Pythagorean triples
Some right triangles have whole-number sides, called Pythagorean triples: 3-4-5, 5-12-13, 8-15-17 and 7-24-25. Any multiple of a triple, such as 6-8-10, is also a triple.
Examples
| Example | Result |
|---|---|
| Legs 3 and 4 | c = √(9 + 16) = √25 = 5 |
| Hypotenuse 13 and leg 5 | b = √(169 − 25) = √144 = 12 |
| A 4 m ladder standing 1 m from the wall | It reaches √(16 − 1) = √15 ≈ 3.87 m up the wall |