Pythagorean Theorem Calculator
Solve a right triangle with the Pythagorean theorem. Find the hypotenuse or a missing leg, plus area, perimeter and angles. Free with formulas.
FreeNo signupUpdated Nov 14, 2026By CalculatorBase Editorial Team
Pythagorean Theorem Calculator
The Pythagorean theorem
In any right triangle, the square of the hypotenuse (the side opposite the right angle) equals the sum of the squares of the other two sides. Enter any two sides and this calculator finds the third, then adds area, perimeter and both acute angles.
The formulas
a² + b² = c²c = √(a² + b²)
a = √(c² - b²)
Area = (a x b) / 2
Common Pythagorean triples
| a | b | c |
|---|---|---|
| 3 | 4 | 5 |
| 5 | 12 | 13 |
| 8 | 15 | 17 |
| 7 | 24 | 25 |
| 20 | 21 | 29 |
Where it is used
Builders use it to check that corners are square (the 3-4-5 method), surveyors use it for distances, and anyone can use it to find the diagonal of a screen, room or ramp. The theorem only applies to right triangles. For other triangles, use the law of cosines.
Frequently asked questions
What is the Pythagorean theorem formula?
a squared plus b squared equals c squared, where c is the hypotenuse of a right triangle.
How do I find a missing leg?
Subtract the square of the known leg from the square of the hypotenuse, then take the square root.
Does it work for any triangle?
No. It works only for right triangles. For others, use the law of cosines.
What is a Pythagorean triple?
A set of three whole numbers that satisfy the theorem, such as 3, 4, 5 or 5, 12, 13.
How do I check a square corner with 3-4-5?
Measure 3 units along one edge and 4 along the other. If the diagonal between the marks is exactly 5 units, the corner is 90 degrees.
About this calculator
- Written by
- CalculatorBase Editorial Team
- Last reviewed
- November 14, 2026
- Method
- Standard formulas applied to your inputs, with no data stored.
Results are calculated from the values you enter using standard published formulas. They are estimates for general information. Read the full disclaimer.