RIGHT-TRIANGLE GEOMETRY

Pythagorean Theorem Calculator

Find a missing side of a right triangle using a² + b² = c². Choose the side to solve for, enter the other two lengths, and follow the steps.

CALCULATOR

Find the missing side

The two legs meet at 90°. The hypotenuse is always the longest side and sits opposite the right angle.

Press Enter to calculate

YOUR ANSWER

Right-triangle side lengths

Missing side c5 units
Leg a3
Leg b4
Hypotenuse c5
Right triangleNot to scale
THEOREM
c=a2+b2c=\sqrt{a^2+b^2}
Step-by-step solution
  1. For a right triangle, a² + b² = c², where c is the hypotenuse opposite the right angle.
  2. Substitute the known legs: c = √(3² + 4²).
  3. Evaluate the squares and add: c = √(9 + 16) = √25.
  4. Take the positive square root because a side length is positive: c ≈ 5.
  5. Check: a² + b² = 9 + 16 ≈ 25, and c² = 25.

What is the Pythagorean theorem?

The Pythagorean theorem describes the relationship between the three side lengths of a right triangle. If a and b are the legs that form the right angle, and c is the hypotenuse opposite it, then a² + b² = c². This calculator rearranges the relationship to solve for whichever one side you do not know.

a2+b2=c2a^2+b^2=c^2

Legs: a, b · Hypotenuse: c · Right angle: 90°

How to use the Pythagorean theorem calculator

  1. Choose whether the missing side is leg a, leg b, or hypotenuse c.
  2. Enter the other two positive side lengths in the same unit.
  3. Calculate to see the missing length, labeled triangle diagram, and substituted steps.

Worked example: find a hypotenuse

For legs of 3 and 4 units, substitute into the theorem: c² = 3² + 4² = 9 + 16 = 25. Take the positive square root, so c = √25 = 5 units.

When does the theorem apply?

Use it only when the triangle has a right angle. The hypotenuse is the side opposite that angle and must be longer than either leg. If a leg is unknown, its squared length is the hypotenuse squared minus the other leg squared; a negative result means the entered hypotenuse is too short.

Frequently asked questions

Which side is the hypotenuse?

It is the side opposite the 90° angle. It is also the longest side of a right triangle.

Can the calculator find either leg?

Yes. Choose leg a or b as the unknown. The calculator subtracts the known leg’s square from the hypotenuse’s square, then takes the positive square root.

Can I enter different units?

Convert all lengths to the same unit before using the theorem. The calculation preserves that common unit.

Does the theorem work for every triangle?

No. The equation a² + b² = c² applies only to right triangles. Other triangles need a different relationship, such as the law of cosines.

Related geometry calculators