Maths

Pythagorean theorem calculator

In a right triangle, the square on the longest side is exactly as big as the squares on the other two sides put together.

A pink axolotl with a clipboard and a calculator

What do you want to find?

Hypotenuse

Try it yourself

Slide the values and watch the answer change.

    How it works

    a² + b² = c²

    c Hypotenuse
    the longest side, across from the square corner
    a Side a
    one of the two sides that meet at the square corner
    b Side b
    the other side that meets at the square corner

      Questions

      What is the Pythagorean theorem?

      In a triangle with one square corner (a right angle), a² + b² = c², where c is the longest side, the hypotenuse. Draw a square on each side: the two small squares together cover exactly as much as the big one. With sides 3 and 4: 9 + 16 = 25, and √25 = 5.

      How do I find a shorter side?

      Subtract instead of add: a = √(c² − b²). A ladder 13 ft long with its foot 5 ft from the wall reaches √(169 − 25) = √144 = 12 ft up. The hypotenuse must be the longest side, or there is no triangle.

      How do builders check that a corner is square?

      With the 3-4-5 rule. Measure 3 ft along one wall and 4 ft along the other. If the corner is square, the diagonal between those two marks is exactly 5 ft, because 3² + 4² = 5². Longer than 5 means the corner is too wide, shorter means too narrow.