How to use the Pythagorean theorem, with real examples
Free kit: Free Upper Grades Starter set bundles this with the other tools you need.
The Pythagorean theorem lets you find a missing side of a right triangle when you know the other two. It shows up in eighth grade math, geometry, and in plenty of everyday jobs: checking if a corner is square, figuring out how long a ladder needs to be, or finding the diagonal of a TV screen. This guide explains the formula, walks through both kinds of problems and shows how to check your work.
The formula
For a right triangle with legs *a* and *b* and hypotenuse *c*:
a² + b² = c²
- The legs are the two sides that form the right angle.
- The hypotenuse is the longest side, opposite the right angle.
The theorem only works for right triangles. If there is no 90-degree angle, you need different tools.
Step 1: label the triangle
Find the right angle, often marked with a small square. The side across from it is *c*. The other two are *a* and *b*, and it does not matter which is which. Labeling first prevents the most common mistake: putting the hypotenuse in the wrong place.
Finding the hypotenuse
Example: legs of 6 and 8. Find c.
1. Square the legs: 6² = 36 and 8² = 64.
2. Add: 36 + 64 = 100.
3. Take the square root: √100 = 10.
c = 10.
Example: legs of 5 and 9.
1. 5² = 25 and 9² = 81.
2. 25 + 81 = 106.
3. √106 ≈ 10.30.
c ≈ 10.3. Not every answer is a whole number. Round as your teacher or the problem asks.
Finding a leg
When you know the hypotenuse and one leg, subtract instead of add.
Example: hypotenuse 13, one leg 5. Find the other leg.
1. Write the formula: 5² + b² = 13².
2. Square: 25 + b² = 169.
3. Subtract: b² = 169 − 25 = 144.
4. Square root: b = 12.
Example: hypotenuse 20, one leg 12.
1. 144 + b² = 400
2. b² = 256
3. b = 16
The quick rule: to find the hypotenuse, add the squares; to find a leg, subtract the squares. Always subtract the smaller square from the hypotenuse squared.
Pythagorean triples worth knowing
Some whole-number sets fit the theorem exactly:
- 3, 4, 5
- 5, 12, 13
- 8, 15, 17
- 7, 24, 25
Any multiple of a triple works too: 6, 8, 10 and 9, 12, 15 are both multiples of 3, 4, 5. Spotting a triple can save time on tests. A square and cube numbers chart helps students recognize perfect squares quickly.
Real-world examples
### Is this corner square?
Builders and DIYers use the 3-4-5 rule. Measure 3 feet along one side from the corner and 4 feet along the other. If the diagonal between those two marks is exactly 5 feet, the corner is a right angle. For bigger layouts, use 6-8-10 or 9-12-15.
### How tall can a ladder reach?
A 15-foot ladder is placed with its base 5 feet from a wall. How high up the wall does it reach?
- 5² + b² = 15²
- 25 + b² = 225
- b² = 200
- b ≈ 14.14 feet
### Screen size
Screens are measured on the diagonal. A screen 48 inches wide and 27 inches tall has a diagonal of √(48² + 27²) = √(2,304 + 729) = √3,033 ≈ 55.1 inches.
### Distance on a grid
To find the distance between two points on a coordinate grid, draw a right triangle using the horizontal and vertical differences as the legs. From (1, 2) to (4, 6), the legs are 3 and 4, so the distance is 5. A distance and midpoint calculator uses the same idea.
How to check your answer
1. The hypotenuse must be the longest side. If your "c" is shorter than a leg, something is wrong.
2. Plug your answer back in. For 6, 8 and 10: 36 + 64 = 100 = 10². It checks.
3. Use the Pythagorean theorem calculator to confirm after working by hand.
Common mistakes
- Adding the sides before squaring. (6 + 8)² is 196, not 100.
- Forgetting the square root. If you stop at c² = 100, the answer is not 100.
- Adding when you should subtract for a missing leg.
FAQ
Can I use it on any triangle?
No, only right triangles. If a² + b² = c² is true for three side lengths, the triangle is a right triangle; that is called the converse.
Does it matter which leg is a and which is b?
No. Only c has a fixed position.
What if the answer is not a whole number?
That is normal. Leave it as a square root, such as √106, or round it, depending on the instructions.