Pythagorean Theorem Calculator
Find any side of a right triangle using the Pythagorean theorem — given any two sides, solve for the third.
a² + b² = c²
How to use the Pythagorean Theorem Calculator
- Enter your inputs into the Pythagorean Theorem Calculator above.
- Results update instantly as you type — no submit button needed.
- Adjust any value to see how the result changes in real time.
The Pythagorean theorem
a² + b² = c² · · · where c is the hypotenuse (opposite the right angle)
Only works for right triangles. The hypotenuse is the longest side, opposite the 90° angle. The other two sides (legs) can be either a or b.
Worked example
A right triangle with legs 3 and 4: hypotenuse = √(9 + 16) = √25 = 5. The famous 3-4-5 right triangle. Given hypotenuse 13 and one leg 5: other leg = √(169 − 25) = √144 = 12.
Frequently asked questions
What is a Pythagorean triple?
A set of three positive integers a, b, c such that a² + b² = c². Common triples: (3,4,5), (5,12,13), (8,15,17), (7,24,25). Used in construction for squaring corners.
Does this work for non-right triangles?
No — only right triangles. For other triangles, use the Law of Cosines: c² = a² + b² − 2ab·cos(C), which generalizes the Pythagorean theorem (it becomes a² + b² when C = 90°).
How is this used in real life?
Construction (squaring foundations), navigation (distance), 2D graphics (distance between points), screen sizes (diagonal measurement from width and height).