Pythagorean Theorem Calculator

The Pythagorean theorem relates the three sides of a right triangle. It states that the square of the hypotenuse equals the sum of the squares of the two legs. This calculator lets you solve for the hypotenuse when both legs are known, or solve for either leg when the hypotenuse and the other leg are known.

Pythagorean Theorem Calculator Interactive Tool

Results

Enter values to see results

How to use this calculator

  1. Choose which side you want to solve for: the hypotenuse, leg A, or leg B.
  2. Enter the two known side lengths in the fields provided.
  3. Read the missing side, plus the full side set for the right triangle.

The Formula

The mathematical logic powering this calculation is:

a² + b² = c²
Hypotenuse: c = √(a² + b²)
Leg: a = √(c² - b²) or b = √(c² - a²)

Worked Example

If you input:

  • Solve For: Hypotenuse (c)
  • Leg A (a): 3
  • Leg B (b): 4
  • Hypotenuse (c):

Result:

Missing side = 5 based on the provided inputs and the pythagorean theorem formula.

Frequently Asked Questions

When can I use the Pythagorean theorem?

Use it only for right triangles, where one angle is exactly 90 degrees.

Why must the hypotenuse be the longest side?

The hypotenuse sits opposite the right angle, and by the theorem its square equals the sum of the other two squares, so it must be longer than either leg.

Similar Calculators