Pythagorean Theorem Calculator
Find the missing side of a right triangle using the Pythagorean theorem. Enter any two side lengths to calculate the third side, then review the formula, steps, angles, area, and perimeter.
Enter the known sides
The Pythagorean theorem applies only to right-angled triangles. If you solve for a leg, the hypotenuse must be longer than the known leg. This calculator performs calculations in your browser.
Your result
Right triangle diagram
Diagram is illustrative and may not be drawn to exact scale.
Step-by-step solution
- Use the formula c = √(a² + b²).
- Substitute the known values: c = √(3² + 4²).
- Simplify: c = √25 = 5.
What is the Pythagorean theorem?
The Pythagorean theorem describes the relationship between the three sides of a right triangle. If a and b are the legs that meet at the right angle and c is the hypotenuse, the equation is:
a² + b² = c²
Formulas for the missing side
- Find the hypotenuse: c = √(a² + b²)
- Find leg a: a = √(c² − b²)
- Find leg b: b = √(c² − a²)
How to use this calculator
- Choose the side you want to calculate: a leg or the hypotenuse.
- Enter the two known side lengths. Leave the side being calculated blank.
- Choose the unit and preferred decimal precision.
- Select Calculate to view the missing side, equation, triangle properties, and working steps.
- Check that all side lengths are positive and the hypotenuse is the longest side.
Worked example: a 3–4–5 triangle
If a = 3 units and b = 4 units, then c = √(3² + 4²) = √(9 + 16) = √25 = 5 units. The area is (3 × 4) ÷ 2 = 6 square units, and the perimeter is 3 + 4 + 5 = 12 units.
Frequently asked questions
Can I calculate any side of a right triangle?
Yes. Choose the hypotenuse or either leg as the unknown, then enter the other two sides. If finding a leg, the hypotenuse must be greater than the known leg.
What is the hypotenuse?
The hypotenuse is the side opposite the 90-degree angle. It is always the longest side of a right triangle.
Can I enter decimal values?
Yes. Positive decimal values are supported. Results are rounded to the number of decimal places you select.
Can I mix centimeters and inches?
No. Enter both known sides using the same unit. Convert one measurement first if your original values use different units.
Does this theorem work for every triangle?
No. It applies to right triangles only. For a triangle without a 90-degree angle, a different method such as the law of cosines is needed.
Where is the Pythagorean theorem used?
It is used to calculate diagonals, distances between points, ladder lengths, ramp measurements, construction layouts, and geometry problems involving right angles.
This calculator is an educational aid. Verify input measurements and use appropriate professional guidance for safety-critical construction or engineering decisions.