Math · Every step shown

Pythagorean Theorem Calculator

Find a missing side of a right triangle. Free, with the full step-by-step solution and no login.

Enter your numbers

Press Solve with steps to see the answer and how to get it.

Job: Geometry
Your answer

Press Solve with steps to see the answer and every step.

How it works, examples and FAQ

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

To find c: square both legs, add, take the square root. For legs 3 and 4: 9 + 16 = 25, and √25 = 5.

To find a leg: rearrange to b² = c² − a². For a = 5 and c = 13: 169 − 25 = 144, and √144 = 12.

Does this only work for right triangles?
Yes. For other triangles you need the law of cosines.

Which side is the hypotenuse?
The longest one, directly across from the 90 degree angle.

Can I use any units?
Yes, as long as every side uses the same unit.

More math calculators

Snap a photo of a problem →   All math tools →   All calculators →

These calculators show the method as well as the answer, so you can learn the steps and check your own work. Answers are rounded to six decimal places. If a result ever looks wrong, tell us on the Contact page with the numbers you entered.

Save or print your results

On a phone, choose Save as PDF on the next screen to keep a copy.