Skip to content

The Pythagorean Theorem: a² + b² = c²

In every right triangle, the squares of the two legs add up to the square of the hypotenuse. That one fact finds missing sides, distances and heights.

Written by a certified math teacher · Updated 2026-11-24

The formula

a² + b² = c², where a and b are the legs (the sides that form the right angle) and c is the hypotenuse (the longest side, across from the right angle).

Example 1: find the hypotenuse

Legs 6 and 8: c² = 6² + 8² = 36 + 64 = 100, so c = 10.

Example 2: find a leg

Hypotenuse 13, one leg 5: b² = 13² − 5² = 169 − 25 = 144, so b = 12.

Example 3: answer is not a whole number

Legs 4 and 7: c² = 16 + 49 = 65, so c = √65 ≈ 8.06.

Example 4: ladder word problem

A 15-ft ladder leans on a wall with its foot 9 ft from the wall. How high does it reach? h² = 15² − 9² = 225 − 81 = 144 → h = 12 ft.

Is it a right triangle? (the converse)

Sides 7, 24, 25: 7² + 24² = 49 + 576 = 625 = 25² → yes. Sides 5, 6, 8: 25 + 36 = 61 ≠ 64 → no.

Pythagorean triples worth knowing

3-4-5, 5-12-13, 8-15-17, 7-24-25 — and their multiples, like 6-8-10 and 9-12-15.

Common mistakes

  • Adding when you need a leg: to find a leg, subtract from c².
  • Forgetting to take the square root at the end.
  • Using the theorem on a triangle that is not a right triangle.

Practice it

Printable worksheets with full answer keys for this skill:

Want fresh numbers? Make your own sheet in the Worksheet Maker — 3 a day are free.

Frequently asked questions

What is the Pythagorean theorem?

In a right triangle, a² + b² = c², where c is the hypotenuse and a and b are the legs.

How do you find a missing leg?

Subtract the square of the known leg from the square of the hypotenuse, then take the square root: b = √(c² − a²).

Does the Pythagorean theorem work for all triangles?

No, only for right triangles. If a² + b² = c² is true for a triangle's sides, the triangle is a right triangle.

More math guides