Calculator Hero

Pythagorean Theorem Calculator

Calculates the missing side of a right triangle using a² + b² = c²

Last updated: June 11, 2026

Pythagorean Theorem Calculator

abc (hypotenuse)

a² + b² = c²

e.g. 3 for a 3-4-5 triangle

e.g. 4 for a 3-4-5 triangle

Enter both legs (a and b) to calculate the hypotenuse

How to Use the Pythagorean Theorem Calculator

This Pythagorean theorem calculator finds the missing side of any right triangle — select a mode (Find hypotenuse (c) or Find missing leg), then enter the known sides. The calculator instantly returns the missing side length along with imperial and metric equivalents. All inputs support unit switching between inches, feet, yards, meters, and centimeters, so you never need to convert manually. For problems involving three-dimensional space or vector geometry, see our cross product calculator.

The built-in right-triangle diagram labels all three sides (a, b, and c) so you always know which value you are entering. The result card also displays a unit equivalent — for example, 5.00 ft · 1.52 m — so metric and imperial users both get a useful reading.

The Pythagorean Theorem Formula

The Pythagorean theorem expresses a fundamental relationship between the three sides of every right triangle:

a² + b² = c²

Where a and b are the two legs (the sides that form the right angle) and c is the hypotenuse (the side opposite the right angle). The hypotenuse is always the longest side.

Finding the Hypotenuse

When you know both legs, solve for c by rearranging the formula: c = √(a² + b²). Example: a = 6 ft, b = 8 ft → c = √(36 + 64) = √100 = 10 ft. This is the 3-4-5 triple scaled by 2. When the result is a non-perfect square, our radical calculator simplifies radical expressions like √50 to 5√2. For the area of a right triangle formed by the same legs, see our triangle area calculator — area = ½ × a × b.

Finding a Missing Leg

When you know the hypotenuse and one leg, solve for the other: b = √(c² − a²). Example: c = 13 in, a = 5 in → b = √(169 − 25) = √144 = 12 in. The hypotenuse must be strictly larger than either leg — if it is not, the triangle cannot exist.

AdvertisementResponsive Ad

Pythagorean Triples

A Pythagorean triple is a set of three positive integers (a, b, c) that exactly satisfy a² + b² = c². These are especially useful in construction and carpentry because they produce perfect right angles with no fractions or irrational numbers.

  • 3-4-5 — the most common; used by builders to square foundations
  • 5-12-13 — useful for longer spans; 5² + 12² = 25 + 144 = 169 = 13²
  • 8-15-17 — common in structural applications
  • 7-24-25 and 20-21-29 — less common but still whole-number triples

Any integer multiple of a triple also forms a right triangle: 6-8-10, 9-12-15, 10-24-26, and so on. To check if any three numbers form a right triangle, plug the two smaller values in as a and b — if a² + b² = c², you have a right triangle.

Real-World Applications of the Pythagorean Theorem

The Pythagorean theorem appears constantly in construction, engineering, navigation, and everyday DIY tasks. Here are some of the most common real-world uses:

  • Squaring a foundation or wall — measure 3 ft along one side, 4 ft along the other; the diagonal must be 5 ft for a true 90° corner
  • Calculating rafter length — rise and run are the two legs; the rafter is the hypotenuse. A roof with a 6-ft rise and 8-ft run needs a 10-ft rafter
  • Stair stringers — rise and run determine the diagonal stringer length
  • Navigation and GPS — straight-line distance between two coordinates uses the distance formula, which is the Pythagorean theorem in disguise
  • Screen sizes — TV and monitor sizes are the diagonal of the screen; width and height are the two legs. For a 16:9 screen that is 55 in diagonal, the width is about 47.9 in and height about 27.0 in

For volume problems involving cylindrical or three-dimensional shapes, our cubic feet calculator handles the geometry automatically.

Step-by-Step Example

Problem: A ladder leans against a wall. The base of the ladder is 6 feet from the wall and the ladder reaches 8 feet up the wall. How long is the ladder?

  1. Identify the legs: a = 6 ft (horizontal distance), b = 8 ft (vertical height)
  2. Apply the formula: c = √(a² + b²) = √(36 + 64) = √100
  3. Result: c = 10 ft — the ladder is 10 feet long

Verification: 6² + 8² = 36 + 64 = 100 = 10². Confirmed.

AdvertisementResponsive Ad

Common Mistakes

  • Using mixed units — always convert all sides to the same unit before calculating. 3 feet and 48 inches are both 3 ft, but only if you convert first
  • Confusing legs and hypotenuse — the hypotenuse is always opposite the right angle and is always the longest side. Never substitute a leg where the hypotenuse is expected
  • Applying to non-right triangles — the theorem only works for triangles with exactly one 90° angle. For other triangles, use the law of cosines
  • Forgetting to take the square root — a² + b² gives c², not c. You must take the square root of the sum to get the side length
  • Rounding intermediate steps — always carry full precision through the calculation and round only the final answer to avoid compounding errors

Sources & References

  1. Pythagorean TheoremKhan Academy
  2. Pythagorean Theorem — BritannicaEncyclopædia Britannica

Frequently Asked Questions

Related Calculators

Advertisement

320 × 50 — Mobile Anchor