Pythagorean theorem calculator
For a right triangle, the squares of the two shorter sides add up to the square of the longest side.
Results
Enter your values to see the result.
About this tool
Choose which side to Find, enter the other two among Leg a, Leg b and Hypotenuse c, and the calculator returns the missing length plus the triangle's area and perimeter. A builder might use it to check that a corner is square.
- How it is calculated
- a² + b² = c²
- Worked example
- With Find: Hypotenuse c; Leg a: 3; Leg b: 4; Hypotenuse c: 5, the result is: Missing side: 5; Area: 6; Perimeter: 12.
- Good to know
- This only applies to right triangles. Only the two sides you are not solving for are used. When finding a leg, the hypotenuse must be longer than the other leg. Units are whatever you enter.
Frequently asked questions
Which side is the hypotenuse?
It is the longest side, opposite the right angle. Select Hypotenuse c under Find if it is unknown. If you know it, enter it in the Hypotenuse c field and choose a leg to solve for.
Why do I get an error when finding a leg?
The hypotenuse must be longer than the other leg you entered. If it is equal or shorter, no right triangle exists with those lengths, so the calculator rejects the entry.
How are the area and perimeter worked out?
Once all three sides are known, the Area is half of Leg a times Leg b, and the Perimeter is the sum of all three sides. Both use the same length unit as your entries, with area squared.