Pythagorean Theorem Calculator

Enter the two sides you know of a right triangle to find the third.

How it works

  1. The theorem

    In a right triangle, a² + b² = c², where c is the hypotenuse, the side opposite the right angle.

  2. Finding the hypotenuse

    Square both legs, add them, and take the square root.

  3. Finding a leg

    Square the hypotenuse, subtract the square of the known leg, and take the square root.

Common questions

Does it work for any triangle?

No, only right triangles. For other triangles use the law of cosines, which the triangle calculator applies for you.

What is a Pythagorean triple?

Three whole numbers that fit the theorem, such as 3, 4, 5 or 5, 12, 13.

More free calculators