Skip to content

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?

  1. 62+b2=102

    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.

  2. 36+b2=100

    Square the known sides.

  3. b2=64

    Subtract 36 from both sides.

  4. b=√64=8

    Take the positive square root, since a length is positive. Check: 36 + 64 is 100.

Answer8 ft

Pythagorean triples

Some right triangles have whole number sides. These sets are called Pythagorean triples, and recognising them saves time on tests:

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²:

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 (1,2) and (4,8).

  1. Δx=4−1=3,Δy=8−2=6

    The horizontal leg is 3 and the vertical leg is 6.

  2. d2=32+62=9+36=45

    Apply a² + b² = c² with the distance as the hypotenuse.

  3. d=√45=3√5

    45 is 9 × 5, and the square root of 9 is 3.

  4. 3√5≈6.71

    As a decimal, rounded to two places. It is a bit longer than the longer leg, 6, as a hypotenuse should be.

Answer3√5≈6.71

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.

  1. f2=32+42=25,f=5

    The diagonal across the 3 by 4 base is 5, a 3, 4, 5 triangle.

  2. d2=52+122=25+144=169

    The floor diagonal and the 12 inch height are the legs of a second right triangle, standing upright inside the box.

  3. d=√169=13

    A 5, 12, 13 triangle. In one step: 9 + 16 + 144 is 169.

Answer13 in

Common mistakes and how to check your work

Most errors come from a few habits:

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.