Pythagorean Theorem Calculator

Find a missing side of a right triangle by identifying the hypotenuse first, then solving for a leg or the hypotenuse.

Identify the hypotenuse before choosing a formula

The legs are a and b. The hypotenuse c is opposite the 90 degree angle and is always the longest side of a right triangle.

Pick the missing side

  1. Identify the right angle.
  2. Label the hypotenuse.
  3. Enter the two known sides.
  4. Choose whether the missing side is a leg or the hypotenuse.

Loading tool...

Right-triangle side formulas

Add squares when finding the hypotenuse; subtract squares when finding a missing leg.

Core theoremc2=a2+b2
Missing hypotenusec=a2+b2
Missing leg aa=c2-b2
Missing leg bb=c2-a2
Hypotenuse checkc>aandc>b

Validation rules

  • Use positive side lengths.
  • The hypotenuse must be the longest side.
  • A known leg must be shorter than the hypotenuse.
  • A missing-leg calculation cannot have a negative value under the square root.

Common examples include a ladder against a wall, the diagonal of a rectangle, coordinate-grid distance, and checking whether three lengths form a right triangle.

FAQ

How do I know which side is the hypotenuse?

The hypotenuse is the side opposite the right angle. It is always the longest side of a right triangle.

Why does solving for a leg use subtraction?

Because the theorem starts with c^2 = a^2 + b^2. If the hypotenuse and one leg are known, subtract the known leg square from the hypotenuse square before taking the square root.