The Pythagorean theorem: what it says and how to use it
The Pythagorean theorem says that in a right triangle, the squares of the two shorter sides add up to the square of the longest side: a² + b² = c², where c is the hypotenuse, the side opposite the right angle. If you know any two sides of a right triangle, you can find the third. A triangle with 3, 4 and 5 for its sides is a right triangle because 9 + 16 = 25.
What the theorem says
A right triangle has one 90° angle. The two sides that form that angle are the legs, usually called a and b. The side across from the right angle is the hypotenuse, c. It is always the longest side.
The theorem says a² + b² = c². In picture form: build a square on each side of the triangle. The areas of the two squares on the legs add up exactly to the area of the square on the hypotenuse.
It works only for right triangles. For any other triangle, a² + b² and c² are not equal, and that difference is useful too, as the converse section shows.
Why it is true: a proof you can draw
There are hundreds of proofs. One of the clearest uses four copies of the same right triangle, with legs a and b and hypotenuse c.
Draw a large square with side a + b. Place the four triangles inside it, one in each corner, so that their hypotenuses form a tilted square in the middle. That middle square has side c, so its area is c².
Now count the area of the big square two ways. Its side is a + b, so its area is (a + b)², which expands to a² + 2ab + b². It is also made of the middle square plus four triangles, each with area ab/2, so its area is c² + 2ab. Setting the two equal and taking 2ab from both sides leaves a² + b² = c².
Rearranging the same four triangles in the big square leaves two uncovered squares, of areas a² and b², instead of one of area c². The uncovered area did not change, which is the same fact seen without algebra.
Worked example: finding a missing leg
When the hypotenuse is known, subtract: the unknown leg squared is c² minus the known leg squared. Adding here is the most common error, and it would give a leg longer than the hypotenuse, which is impossible.
ProblemA 10 ft ladder leans on a wall with its foot 6 ft from the wall. How high does it reach?
The wall and the ground meet at a right angle. The ladder is the hypotenuse, 10 ft, and the ground distance is one leg, 6 ft.
Square the known sides.
Subtract 36 from both sides.
Take the positive square root, since a length is positive. Check: 36 + 64 is 100.
Answer
Pythagorean triples
Some right triangles have whole number sides. These sets are called Pythagorean triples, and recognising them saves time on tests:
- 3, 4, 5, and its multiples such as 6, 8, 10 and 9, 12, 15.
- 5, 12, 13.
- 8, 15, 17.
- 7, 24, 25.
- 20, 21, 29.
The converse: is it a right triangle?
The converse of the theorem is also true: if the sides of a triangle satisfy a² + b² = c², the triangle has a right angle. To test three lengths, let c be the longest, then compare a² + b² with c²:
- Equal: right triangle. For 7, 24 and 25: 49 + 576 = 625 and 25² = 625, so it is right.
- a² + b² greater than c²: every angle is acute. For 6, 7 and 8: 36 + 49 = 85, which is more than 64.
- a² + b² less than c²: the triangle has an obtuse angle. For 4, 5 and 8: 16 + 25 = 41, which is less than 64.
Worked example: the distance between two points
Any two points on a grid are the ends of the hypotenuse of a right triangle whose legs run along the grid lines. The distance formula, d = √((x₂ − x₁)² + (y₂ − y₁)²), is the Pythagorean theorem written in coordinates.
ProblemFind the distance between and .
The horizontal leg is 3 and the vertical leg is 6.
Apply a² + b² = c² with the distance as the hypotenuse.
45 is 9 × 5, and the square root of 9 is 3.
As a decimal, rounded to two places. It is a bit longer than the longer leg, 6, as a hypotenuse should be.
Answer
Worked example: the diagonal of a box
In three dimensions, use the theorem twice: once across the floor of the box, then once up to the opposite top corner. The result is d² = l² + w² + h².
ProblemFind the longest diagonal of a box 3 by 4 by 12 inches.
The diagonal across the 3 by 4 base is 5, a 3, 4, 5 triangle.
The floor diagonal and the 12 inch height are the legs of a second right triangle, standing upright inside the box.
A 5, 12, 13 triangle. In one step: 9 + 16 + 144 is 169.
Answer
Common mistakes and how to check your work
Most errors come from a few habits:
- Adding when you should subtract. If the hypotenuse is given, the leg is √(c² − a²).
- Labelling the wrong side as c. The hypotenuse is opposite the right angle and is always the longest side.
- Taking a square root term by term: √(9 + 16) is √25 = 5, not 3 + 4 = 7.
- Using the theorem on a triangle with no right angle.
- Forgetting to take the square root at the end, and giving c² as the answer.
- Check every answer: the hypotenuse must be longer than each leg but shorter than the two legs added together, and the squares must add up when you substitute back in.
Questions
What is the Pythagorean theorem formula?
a² + b² = c², where a and b are the legs of a right triangle and c is the hypotenuse. Rearranged, c = √(a² + b²) and a = √(c² − b²).
Does the Pythagorean theorem work for all triangles?
No, only for right triangles. For other triangles, the law of cosines, c² = a² + b² − 2ab cos C, plays the same role, and it reduces to the Pythagorean theorem when C is 90°.
How do I know which side is the hypotenuse?
It is the side across from the right angle, and it is always the longest side of a right triangle.
What is the converse of the Pythagorean theorem?
If the squares of a triangle's two shorter sides add up to the square of its longest side, the triangle is a right triangle.
What grade learns the Pythagorean theorem?
Grade 8, where students explain a proof, use the theorem and its converse, and find distances between points on a coordinate grid. It is used again throughout Geometry.