The formula
a² + b² = c²
In a right triangle, the square of the hypotenuse equals the sum of the squares of the two legs. If you know any two sides you can find the third. The hypotenuse is always the side opposite the right angle and always the longest.
How to use this calculator
- Enter leg a.
- Enter leg b.
- Enter hypotenuse c.
- Read the answer on the right. It updates as you type, and the numbered steps underneath show how it was worked out.
Worked example
Using Leg a: 3; Leg b: 4.
- c = √(3² + 4²)
- c = √(9 + 16) = √25
- c = 5
Hypotenuse c: 5
Common questions
Does the Pythagorean theorem work for every triangle?
No, only for right triangles. For other triangles use the law of cosines, which reduces to the Pythagorean theorem when the angle is 90°.
What is a Pythagorean triple?
Three whole numbers that satisfy a² + b² = c², such as 3-4-5, 5-12-13 and 8-15-17.