Calculateus

Pythagorean Theorem Calculator

Solve for any missing side of a right triangle using the Pythagorean theorem.

Result

c
5
86420Length: 3Length: 4Length: 5abc

About the Pythagorean Theorem Calculator

The Pythagorean theorem is the foundational relationship between a right triangle's three sides, and it's just as useful for finding a missing leg as it is for finding the hypotenuse. Our Pythagorean Theorem Calculator solves for whichever side you're missing.

How It Works

The calculator rearranges the Pythagorean theorem (a² + b² = c²) algebraically depending on which side you're solving for - adding the two known legs' squares and taking the square root for the hypotenuse, or subtracting one leg's square from the hypotenuse's square and taking the square root for a missing leg.

c = √(a² + b²) a = √(c² − b²) b = √(c² − a²)

Formula & Methodology

All three formulas here are the same underlying relationship (a² + b² = c²), just algebraically rearranged to isolate whichever variable is unknown - since it's an equation relating three squared quantities, solving for any one of them just means moving the other two to the opposite side and taking a square root. This flexibility is what makes the theorem useful beyond simply 'find the hypotenuse' - it equally well answers 'how long must this leg be' given the other two sides.

Step-by-Step: Calculating It By Hand

  1. 1Identify which side is unknown: hypotenuse or one of the two legs.
  2. 2If solving for the hypotenuse: square both legs, add them, and take the square root.
  3. 3If solving for a leg: square the hypotenuse, subtract the known leg's square, and take the square root.
  4. 4Verify the result makes sense (the hypotenuse should always be the longest side).

Examples

Solving for the hypotenuse

Legs of 3 and 4 solve directly to a hypotenuse of 5, using the standard forward direction of the theorem.

Solving for a missing leg

A hypotenuse of 10 and one known leg of 6 solves backward to find the other leg equals 8 - the reverse application of the same fundamental relationship.

Advantages

  • Solves for any of the three sides, not just the hypotenuse
  • Validates inputs to prevent invalid results (like a negative number under a square root)
  • Uses the single most fundamental relationship in right-triangle geometry
  • Works for any right triangle regardless of size

Common Mistakes

  • Trying to solve for a leg when the hypotenuse entered is smaller than the other known leg, which is mathematically impossible
  • Confusing which side is the hypotenuse (always opposite the right angle, and always the longest side)
  • Applying this theorem to a non-right triangle, where it doesn't hold
  • Mixing up units between the different side measurements

Edge Cases to Watch For

  • When solving for a leg, the hypotenuse entered must be larger than the known leg - otherwise the value under the square root becomes negative, which has no real solution.
  • This theorem strictly applies to right triangles only, not any other triangle type.
  • The hypotenuse is always opposite the right angle and always the longest of the three sides, a useful sanity check on any result.
  • Rounding intermediate squared values before taking the final square root can introduce small errors compared to carrying full precision through the calculation.

Common Use Cases

  • Finding any missing side of a right triangle
  • Construction, carpentry, and design measurements
  • Geometry homework across all three solve-for variations
  • Verifying whether a triangle with given measurements is actually a right triangle
Written & fact-checked by the Calculateus TeamLast updated August 5, 2026How we verify our formulas

Frequently asked questions

What's the Pythagorean theorem formula?

a² + b² = c², where c is the hypotenuse of a right triangle and a, b are the two legs. This calculator rearranges it to solve for whichever side you're missing.

Conclusion

This flexible solve-for-any-side version of the Pythagorean theorem covers more scenarios than a fixed hypotenuse-only calculator. For area and perimeter calculated directly from the two legs, our Right Triangle Calculator handles that in one step.