Skip to content
CalculatorsFinder
Math Calculators

Pythagorean Theorem Calculator

Find the hypotenuse or a missing leg of a right triangle using a² + b² = c².

  • Instant results
  • Step-by-step
  • Private: runs in your browser

Enter your numbers

Find the…

Result

Hypotenuse c

5

Area
6
Perimeter
12
Angles
36.8699° and 53.1301°
Step-by-step calculation
  1. c² = a² + b² = 9 + 16
  2. c = √25 = 5

About the Pythagorean Theorem Calculator

The Pythagorean theorem says that in a right triangle the square of the hypotenuse (the side opposite the right angle) equals the sum of the squares of the other two sides.

Use it to find a diagonal, check that a corner is square, or work out a ladder height. Pick whether you need the hypotenuse or a missing leg.

Formula and how it works

a² + b² = c²

c = √(a² + b²)

a = √(c² − b²)

Here c is the hypotenuse, always the longest side. When solving for a leg, the hypotenuse must be longer than the known leg.

Worked example

The classic 3-4-5 triangle

3² + 4² = 9 + 16 = 25, and √25 = 5. The area is ½ × 3 × 4 = 6 and the perimeter is 12.

Tip: press “Try example” in the calculator above to load these numbers.

Understanding your result

Whole-number sets such as 3-4-5, 5-12-13 and 8-15-17 are Pythagorean triples.

A triangle whose sides satisfy a² + b² = c² is a right triangle; builders use 3-4-5 to square corners.

Common mistakes to avoid

  • Using the theorem on triangles without a right angle.
  • Treating a leg as the hypotenuse.
  • Forgetting to take the square root at the end.

Frequently asked questions

How do I find the hypotenuse?

Square both legs, add them and take the square root.

Can the hypotenuse be shorter than a leg?

No, it is always the longest side.

Does it work in any unit?

Yes, as long as all sides use the same unit.