The Pythagorean Theorem Formula

The Pythagorean theorem establishes that in a right triangle, the square of the hypotenuse (the side opposite the right angle) equals the sum of the squares of the two legs. This relationship holds true for any right triangle, regardless of the actual side lengths.

If you know two sides and need the third, rearrange algebraically. For a missing leg, subtract the known leg's square from the hypotenuse's square, then take the square root.

a² + b² = c²

c = √(a² + b²)

a = √(c² − b²)

  • a — Length of the first leg
  • b — Length of the second leg
  • c — Length of the hypotenuse (the longest side, opposite the right angle)

Understanding Right Triangles

A right triangle is distinguished by one 90-degree angle. The two sides that form this right angle are called legs, and they meet at the corner. The third side, stretching across from the right angle, is the hypotenuse—always the longest side in the triangle.

Because all angles in any triangle sum to 180 degrees, the two non-right angles in a right triangle must together total exactly 90 degrees. This constraint is what makes the Pythagorean relationship so powerful and why it applies universally to this shape.

Right triangles appear everywhere: roofing, ladder placement, navigation, construction layout, and screen diagonals. Recognising and working with them is a practical skill across many disciplines.

Using the Calculator: Step-by-Step

The calculator requires minimal input. Simply provide the lengths of any two sides—it doesn't matter if you supply two legs or one leg and the hypotenuse.

  • Enter leg a: Input the measured or known length of the first leg.
  • Enter leg b (or hypotenuse c): Input whichever second measurement you have.
  • Get instant results: The calculator computes the missing side, area, and perimeter automatically.

If you already know the hypotenuse and one leg, the tool will solve for the unknown leg. The calculator handles all rearrangements internally, so you don't need to worry about which formula variant to apply.

Area and Perimeter of Right Triangles

Beyond the Pythagorean relationship, two other measurements are often needed:

  • Area: Multiply the two legs and divide by two. The formula is Area = ½ × a × b. Unlike other triangles, you don't need height and base separately—the legs themselves serve this role.
  • Perimeter: Add all three sides: Perimeter = a + b + c. Once you know all three lengths, the perimeter is straightforward.

These derived measurements are especially useful in real-world applications like calculating how much material to fence a triangular plot or determining the paint coverage needed for a triangular wall section.

Common Pitfalls and Tips

Avoid these typical mistakes when working with the Pythagorean theorem.

  1. Forgetting to take the square root — After adding a² + b², you must take the square root to find c. A common error is leaving the answer as c² instead of solving for c itself. Always finish with the square root step.
  2. Confusing legs with hypotenuse — The hypotenuse is always the longest side and always opposite the right angle. If you accidentally treat a leg as if it were the hypotenuse, your calculation will be incorrect. Check that your answer makes sense: the hypotenuse should be longer than either leg alone.
  3. Using it for non-right triangles — The Pythagorean theorem applies only to right triangles. If your triangle has no 90-degree angle, this formula will not work. For other triangle types, use the law of cosines or other methods instead.
  4. Rounding too early — If you round intermediate results (like a² or b²) before the final calculation, accumulated rounding errors can skew your answer. Keep full precision until the very end, then round your final result.

Frequently Asked Questions

Can I find the hypotenuse if I know both legs?

Yes, absolutely. If you have the lengths of legs a and b, use c = √(a² + b²) to find the hypotenuse. For example, if a = 3 and b = 4, then c = √(9 + 16) = √25 = 5. This is one of the most common applications. You can verify by plugging the numbers back: 3² + 4² = 9 + 16 = 25 = 5². The 3-4-5 triangle is a classic Pythagorean triple used frequently in construction and problem-solving.

What if I know the hypotenuse and one leg, but need the other leg?

Rearrange the formula to isolate the unknown leg. If you know c (hypotenuse) and a (one leg), then b = √(c² − a²). For instance, with c = 13 and a = 5, you get b = √(169 − 25) = √144 = 12. This is another classic triple (5-12-13). Always ensure that the hypotenuse value is larger than any leg value; if not, you've mixed up which side is which.

Why is the Pythagorean theorem important?

The Pythagorean theorem is foundational to geometry, trigonometry, physics, and countless practical fields. It allows you to determine unknown distances without direct measurement. Architects use it to verify perpendicularity, surveyors use it to measure inaccessible distances, and engineers rely on it for structural calculations. Understanding this relationship gives you a powerful tool for solving real-world problems involving distance, construction, and positioning.

Are there any right triangles where the Pythagorean theorem doesn't apply?

No—the theorem applies to all right triangles, by definition. If a triangle has a 90-degree angle, the theorem holds exactly. However, if your triangle does not have a right angle, the Pythagorean theorem does not apply. In such cases, use the law of cosines instead. Always verify that you're working with a genuine right triangle before applying this formula.

What are Pythagorean triples?

Pythagorean triples are sets of three positive integers that satisfy the equation a² + b² = c². Common examples include (3, 4, 5), (5, 12, 13), (8, 15, 17), and (7, 24, 25). These triples are useful in practice because they avoid irrational square roots, making mental math and hand calculations easier. Many construction standards and engineering benchmarks are based on these clean integer relationships.

How do I find the area of a right triangle once I know all three sides?

The area formula for a right triangle is Area = ½ × a × b, where a and b are the two legs (not the hypotenuse). Once you've calculated the missing side using the Pythagorean theorem, simply multiply the two legs and divide by two. For a 3-4-5 triangle, the area is ½ × 3 × 4 = 6 square units. This is much simpler than using the general triangle area formula with height and base separately.

More math calculators (see all)