How to use the Pythagorean Theorem Calculator
- Choose whether to find the hypotenuse or a leg.
- Enter the two sides you know.
- Read the missing side, area and angles.
How it works
In a right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides: c = √(a² + b²) and a = √(c² − b²).
Worked examples
3-4-5 triangle
√(3² + 4²) = √25 = 5. Builders use 3-4-5 to check corners are square.
Frequently asked questions
Does it work for any triangle?
Only right-angled triangles. For others, use the law of cosines: c² = a² + b² − 2ab·cos C.
G
Built and reviewed by Guru G
Calculation logic is covered by automated tests against known values. Last reviewed Nov 8, 2026. Found a problem? Let us know — see our editorial policy.