Pythagorean Theorem Calculator

Home › Math Calculators › Pythagorean Theorem Calculator

Find the hypotenuse or a missing leg of a right triangle.

How the calculation works

In a right triangle the square of the hypotenuse equals the sum of the squares of the other two sides. Choose whether to solve for the hypotenuse or a missing leg.

Formula used

a² + b² = c²

Example

With legs 3 and 4, the hypotenuse is 5, the area is 6 and the perimeter is 12.

About the Pythagorean theorem

The theorem

In a right triangle the square of the hypotenuse equals the sum of the squares of the other two sides, a squared plus b squared equals c squared. The hypotenuse is the longest side, opposite the right angle.

Finding a missing side

If you know both legs, the calculator finds the hypotenuse. If you know the hypotenuse and one leg, it finds the other leg. It also gives the area, perimeter and the two acute angles.

Pythagorean triples

Some whole number triples satisfy the theorem exactly, such as 3, 4, 5, 5, 12, 13 and 8, 15, 17. Builders use 3, 4, 5 to check that a corner is square.

Uses

Distances, ladders against a wall, screen sizes, roof slopes and navigation all use right triangles.

Frequently asked questions

Does this work for any triangle?

No, only right triangles.

Can the hypotenuse be shorter than a leg?

No. The hypotenuse is always the longest side.

Results are estimates for general information only and are not professional financial, medical or legal advice.

All Calculators

Every calculator on the site, in 16 categories.