Pythagorean Theorem Calculator
Use the Pythagorean theorem (a² + b² = c²) to find a missing side of a right triangle. Find the hypotenuse from the two legs, or find a leg from the hypotenuse and the other leg.
Formula
a² + b² = c² → c = √(a² + b²) and a = √(c² − b²)
How it works
- 1
The Pythagorean theorem applies to right triangles: the square of the hypotenuse (the longest side, opposite the right angle) equals the sum of the squares of the other two sides.
- 2
To find the hypotenuse, square both legs, add them, and take the square root.
- 3
To find a missing leg, subtract the square of the known leg from the square of the hypotenuse, then take the square root.
- 4
The hypotenuse is always the longest side, so it must be greater than either leg.
Worked examples
Finding the hypotenuse (3–4–5)
A right triangle has legs of 3 and 4. Find the hypotenuse.
- c² = 3² + 4² = 9 + 16 = 25
- c = √25 = 5
Answer: c = 5
Finding a leg
The hypotenuse is 13 and one leg is 5. Find the other leg.
- leg² = 13² − 5² = 169 − 25 = 144
- leg = √144 = 12
Answer: leg = 12