Learn · Algebra and geometry (grades 8–10)

The Pythagorean Theorem, Step by Step

In a right triangle (one with a 90° corner), the square of the longest side equals the sum of the squares of the other two: a² + b² = c². The longest side, c, is called the hypotenuse. It sits opposite the right angle.

Try it with your own problem ↓

The steps

  1. Identify the hypotenuse c (opposite the right angle). The other two sides are the legs a and b.
  2. To find the hypotenuse: square both legs, add them, and take the square root.
  3. To find a missing leg: square both known sides, subtract the leg squared from the hypotenuse squared, and take the square root.
  4. Check that the hypotenuse is the longest side.
  5. Include the units.

A worked example

A right triangle has legs 9 and 12. Find the hypotenuse.

  1. a = 9 and b = 12.
  2. Square them: 9² = 81 and 12² = 144.
  3. Add: 81 + 144 = 225, so c² = 225.
  4. Take the square root: c = √225 = 15.

The hypotenuse is 15. Check: 15 is longer than both legs, and 9-12-15 is 3 times the 3-4-5 triangle. ✓

Why it works

Here is a picture. Draw a square on each side of a right triangle. The big square on the hypotenuse has exactly the same area as the two smaller squares added together. With legs 3 and 4: 9 + 16 = 25, which is 5².

Try it with your own problem

Open the free The Shape Shop with this example already filled in. It shows every step, and you can type over it with your own numbers.

Work it out: hypotenuse 9 12Opens The Shape Shop with this example

Or try these

Common mistakes

Questions people ask

How do I find a missing leg?

With hypotenuse 13 and one leg 5: 13² − 5² = 169 − 25 = 144, and √144 = 12.

What are Pythagorean triples?

Sets of whole numbers that fit, like 3-4-5, 5-12-13, 8-15-17 and 7-24-25.

How is it used for distance?

The distance between two points is the hypotenuse of a right triangle whose legs are the horizontal and vertical differences.

Keep learning

Show The Steps is free, with no accounts or ads, and everything is worked out in your own browser. Start at the home page.