Pythagorean Theorem Calculator
Find the hypotenuse of a right triangle from the two legs, or find a missing leg from the hypotenuse and one leg.
Reviewed by the WorldCalcs team · Methodology · Last reviewed: June 2026
Hypotenuse c
5
c = √(3² + 4²) = 5
What is the Pythagorean theorem?
The Pythagorean theorem describes the sides of a right-angled triangle: the square of the longest side (the hypotenuse) equals the sum of the squares of the other two sides. Written as a² + b² = c², it lets you find any missing side when you know the other two. It is one of the most useful results in geometry, used in construction, navigation and design.
How it's calculated
For the two shorter sides (the legs) a and b, the hypotenuse is c = √(a² + b²). To find a missing leg instead, rearrange to b = √(c² − a²). This only works for right-angled triangles, and the hypotenuse is always the longest side, opposite the right angle.
Example
A right triangle with legs of 3 and 4 has a hypotenuse of √(9 + 16) = √25 = 5, the classic 3-4-5 triangle. If instead you know the hypotenuse is 13 and one leg is 5, the other leg is √(169 − 25) = √144 = 12.
All calculations happen in your browser. Nothing is sent, stored, or tracked.
Results are estimates and may contain errors — for general information only, not professional advice. Always verify before relying on them. Disclaimer
How to use
Choose a mode, then enter the known sides. The result updates as you type.
Find the hypotenuse: enter both legs and get c = √(a² + b²). Find a leg: enter the hypotenuse and one leg to get the other leg = √(c² − a²).
Frequently asked questions
What is the Pythagorean theorem?+
How do I find the hypotenuse?+
How do I find a missing leg?+
What is the hypotenuse?+
Does it work for any triangle?+
What is a 3-4-5 triangle?+
What are Pythagorean triples?+
Can the legs be decimals?+
Related calculators
- Circle CalculatorDiameter, circumference and area from the radius.
- Triangle Area CalculatorArea from base and height, or from three sides with Heron's formula.
- Rectangle CalculatorArea, perimeter and diagonal from length and width.
- Cylinder CalculatorVolume and total surface area from radius and height.