The Pythagorean theorem
The theorem describes how the three sides of a right triangle relate to each other. If the two shorter sides, called legs, are a and b, and the longest side, the hypotenuse, is c, then:
Rearranging the formula lets you find any side from the other two:
- Hypotenuse: c = √(a² + b²)
- Leg: a = √(c² − b²) or b = √(c² − a²)
How to use the calculator
- Enter the two sides you know. Use the same unit for both.
- Leave the side you want to find empty.
- Read the missing side, the steps, and the triangle's angles, area and perimeter.
Real-life examples
How high will a ladder reach?
A 13-foot ladder stands with its base 5 feet from the wall. The ladder is the hypotenuse, so the height it reaches is √(13² − 5²) = √(169 − 25) = √144 = 12 feet.
How wide is a 55-inch TV?
TV sizes are measured diagonally. A 16:9 screen has sides in the ratio 16 to 9, and √(16² + 9²) ≈ 18.36. So a 55-inch TV is about 55 × 16 ÷ 18.36 ≈ 47.9 inches wide and 55 × 9 ÷ 18.36 ≈ 27.0 inches tall.
Is the corner square?
Builders mark 3 feet along one wall and 4 feet along the other. If the diagonal between the marks measures 5 feet, the corner is exactly 90°. This is the 3-4-5 rule, a Pythagorean triple in action.
Common Pythagorean triples
These whole-number sets fit the formula exactly and show up often in homework and construction: 3-4-5, 5-12-13, 8-15-17, 7-24-25 and 20-21-29. Multiplying a triple by any number, such as 6-8-10 or 9-12-15, gives another triple.
Last reviewed October 2026.