How to use the Pythagorean theorem
- Identify the hypotenuse c: the side opposite the right angle, and the longest side.
- To find c, square both legs and add them: c² = a² + b².
- To find a leg, square the hypotenuse and subtract the square of the other leg: a² = c² − b².
- Take the square root. If the answer is not a whole number, simplify the radical (for example √80 = 4√5) and give the decimal.
What is the Pythagorean theorem?
The Pythagorean theorem says that in any right triangle, the square of the longest side (the hypotenuse) equals the sum of the squares of the other two sides (the legs). It is named after the Greek mathematician Pythagoras.
a² + b² = c² Here a and b are the legs, which meet at the 90° angle, and c is the hypotenuse, which is opposite the right angle. The theorem only works for right triangles.
How do you find the hypotenuse?
Square each leg, add the squares, and take the square root:
c = √(a² + b²) Example: legs of 5 and 7. Then c² = 25 + 49 = 74, so c = √74 ≈ 8.602. Because 74 has no perfect-square factor, √74 is already in simplest form.
How do you find a missing leg?
Rearrange the formula. Square the hypotenuse, subtract the square of the leg you know, and take the square root:
a = √(c² − b²) Example: a hypotenuse of 17 and a leg of 15. Then a² = 289 − 225 = 64, so a = √64 = 8. Always subtract the leg from the hypotenuse, never the other way round. If you get a negative number, the leg is longer than the hypotenuse, which is impossible.
Exact answers and simplified radicals
Most right triangles do not have whole-number sides, so the answer is often a square root. Teachers usually want the exact answer in simplest radical form as well as a rounded decimal. To simplify √n, pull out the largest perfect square factor: √72 = √(36 × 2) = 6√2 ≈ 8.485. The calculator does this for you whenever the inputs are whole numbers.
Common Pythagorean triples
A Pythagorean triple is three whole numbers that fit the theorem exactly. Spotting one saves you the square root. Multiples work too: 3-4-5 doubled is 6-8-10.
| Legs a, b | Hypotenuse c | Check: a² + b² = c² |
|---|---|---|
| 3, 4 | 5 | 9 + 16 = 25 = 5² |
| 5, 12 | 13 | 25 + 144 = 169 = 13² |
| 8, 15 | 17 | 64 + 225 = 289 = 17² |
| 7, 24 | 25 | 49 + 576 = 625 = 25² |
| 20, 21 | 29 | 400 + 441 = 841 = 29² |
| 9, 40 | 41 | 81 + 1600 = 1,681 = 41² |
Common mistakes
- Mixing up the hypotenuse. c must be the side opposite the right angle. It is always the longest side.
- Adding before squaring. 3 + 4 = 7 and 7² = 49, which is wrong. Square first: 9 + 16 = 25.
- Forgetting the square root. c² = 25 means c = 5, not 25.
- Using it on a triangle without a right angle. For other triangles you need the law of cosines.
Where it is used
The theorem appears whenever you need a straight-line distance: the diagonal of a screen or a room, the length of a ladder against a wall, or the distance between two points on a graph. The distance formula d = √((x₂ − x₁)² + (y₂ − y₁)²) is the Pythagorean theorem applied to coordinates, and the slope calculator uses it to find the distance between two points.
Frequently asked questions
What is the Pythagorean theorem?
The Pythagorean theorem says that in a right triangle, the square of the hypotenuse equals the sum of the squares of the two legs: a² + b² = c². It only works for right triangles (triangles with a 90° angle).
How do you find the hypotenuse?
Square both legs, add them, then take the square root: c = √(a² + b²). For legs 3 and 4, c = √(9 + 16) = √25 = 5.
How do you find a missing leg?
Square the hypotenuse, subtract the square of the known leg, then take the square root: a = √(c² − b²). For a hypotenuse of 13 and a leg of 12, a = √(169 − 144) = √25 = 5.
Which side is the hypotenuse?
The hypotenuse is the side opposite the right angle, and it is always the longest side of a right triangle. If a "leg" you were given is longer than the hypotenuse, one of the numbers is in the wrong box.
What is a Pythagorean triple?
A Pythagorean triple is a set of three whole numbers that fit a² + b² = c², such as 3, 4, 5 or 5, 12, 13. Any whole-number multiple of a triple is also a triple, so 6, 8, 10 works too.
How do you simplify a square root answer like √80?
Find the largest perfect square that divides the number and take its root outside: √80 = √(16 × 5) = 4√5. The exact answer is 4√5, and the decimal is about 8.944.
Can I use the Pythagorean theorem to check for a right triangle?
Yes. If the two shorter sides squared add up to the longest side squared, the triangle is a right triangle (this is the converse of the theorem). For 6, 8, 10: 36 + 64 = 100, so it is a right triangle.
Last reviewed November 27, 2026 by the ChalkStation team.