Pythagorean Theorem Calculator
Find the hypotenuse or a missing leg of a right triangle with the Pythagorean theorem, shown step by step, plus the angles, area and perimeter.
How to use it
- 01
Choose the side you’re solving for: the hypotenuse (the longest side, across from the right angle) or one of the legs.
- 02
Enter the other two sides, using the same unit for both.
- 03
You’ll get the answer with the work shown step by step, plus the triangle’s angles, area and perimeter.
How it works
In a right triangle, the square of the hypotenuse equals the sum of the squares of the two legs: a² + b² = c². That means c = √(a² + b²), and a missing leg is a = √(c² − b²).
To find a leg, the hypotenuse has to be longer than the other leg. If it isn’t, no such triangle exists.
The angles come from trigonometry: α = arctan(a ÷ b) and β = 90° − α. The area is half the product of the two legs.
Examples
- The 3-4-5 triangle
Legs of 3 and 4 give a hypotenuse of 5: 3² + 4² = 9 + 16 = 25, and √25 = 5.
- Leaning a ladder
A 13-foot ladder with its base 5 feet from the wall reaches 12 feet up: √(169 − 25) = 12.
- TV screen diagonal
A 16 × 9 screen has a diagonal of 18.36 in the same unit. That’s why a 55-inch TV is about 48 inches wide.
Frequently asked questions
Does it work for any triangle?
No, only for right triangles (with a 90° angle). For other triangles, use the law of cosines. For area and perimeter, try our area calculator.
What are Pythagorean triples?
Sets of three whole numbers that satisfy the theorem, such as 3-4-5, 5-12-13 and 8-15-17. Their multiples (like 6-8-10) work too.