Pythagorean Theorem Calculator

Find the hypotenuse or either leg of a right triangle from the other two sides.

Formula & Methodology

For a right triangle, a² + b² = c², where c is the hypotenuse and a and b are the legs.

Worked Example

If the legs are 5 and 12, the hypotenuse is 13.

Frequently Asked Questions

Which side can I solve for?

Enter any two sides to find the third—the hypotenuse or either leg.

Does it work for non-right triangles?

No. The Pythagorean theorem applies only to right triangles.

What if the legs are larger than the hypotenuse?

That input is invalid for a right triangle; the hypotenuse must be the longest side.

Browse all Math Calculators

Related Calculators