Pythagorean Theorem Calculator: Find Missing Side

Solve right triangles using the Pythagorean theorem. Find the hypotenuse or a missing leg.

Pythagorean Theorem

Calculate the hypotenuse of a right triangle (a² + b² = c²)

Enter lengths of two sides to find hypotenuse

Quick Tips

  • • Works only for right triangles (one 90° angle)
  • • Use the same units for both sides
  • • Classic example: 3-4-5 triangle

What is the Pythagorean Theorem?

The Pythagorean theorem applies only to right triangles (one 90° angle). It relates the two legs (a, b) to the hypotenuse (c), which is the longest side opposite the 90° angle.

Formula

a² + b² = c²

To find the hypotenuse: c = √(a² + b²)

To find a missing leg: a = √(c² − b²) or b = √(c² − a²)

How to Use This Calculator

  1. 1
    Enter side a and side b (the two legs).
  2. 2
    Click calculate to get c (hypotenuse).
  3. 3
    If you know c and one leg, use the leg formula to get the missing side.
  4. 4
    Make sure units match (cm with cm, m with m).

Common Examples

abc (hypotenuse)Notes
345Classic 3-4-5 triangle
51213Classic 5-12-13 triangle
6810Scaled 3-4-5 triangle

Right Triangle Diagram

The hypotenuse c is always the longest side, opposite the 90° angle.

Common Mistakes

  • Using the theorem on a triangle that is not a right triangle.
  • Mixing units (cm and m in the same calculation).
  • Forgetting to square a and b before adding.
  • Accidentally treating c as a leg (c must be opposite the 90° angle).

Pythagorean Theorem FAQs

Q

What is the Pythagorean theorem used for?

It’s used to find a missing side of a right triangle using a² + b² = c².

Q

Does it work for all triangles?

No. It only works for right triangles (one angle must be 90°).

Q

Which side is the hypotenuse (c)?

The hypotenuse is the longest side, opposite the 90° angle.

Q

How do I find the hypotenuse?

Use c = √(a² + b²).

Q

How do I find a missing leg?

Rearrange: a = √(c² − b²) or b = √(c² − a²).

Q

What if c is smaller than a or b?

Then the inputs don’t make a valid right triangle because c must be the largest side.

Q

Can I use decimals or fractions?

Yes. The formula works with decimals and fractions.

Q

Why do I get an error with negative inside the square root?

That usually means you entered values that can’t form a right triangle (like c too small).

Q

Does unit matter (cm, m, inches)?

Units don’t matter as long as you use the same unit for all sides.

Q

How can I check if a triangle is right-angled?

If a² + b² equals c² (with c as the largest side), it’s a right triangle.