Mathematics

Pythagorean Theorem: 9 Solved Exercises, Step by Step

Find the hypotenuse or a missing leg with c² = a² + b². Nine exercises solved step by step, plus the triples worth memorising.

Recommended for: Grade 8 · Grade 9

The Pythagorean theorem states that in a right triangle the square on the hypotenuse equals the sum of the squares on the two legs: c² = a² + b². From this you get the hypotenuse with c = √(a² + b²) and a leg with a = √(c² − b²).

Hypotenuse and legs: which is which

In a right triangle the hypotenuse is the side opposite the right angle and is always the longest side. The other two sides, the ones that form the 90° angle, are called the legs. The theorem ties these three sides together with a single relationship between their squares.

The two typical questions

Almost every exercise asks one of two things.

  • Both legs known, hypotenuse wanted: add the squares, then take the square root. c = √(a² + b²).
  • Hypotenuse and one leg known, other leg wanted: subtract, then take the square root. a = √(c² − b²).

Getting these two backwards is the single most common source of wrong answers. Before you compute anything, decide which side is the hypotenuse: if the unknown is the longest side you add, otherwise you subtract.

Pythagorean triples: the shortcuts worth memorising

Some right triangles have three whole-number sides. These sets are called Pythagorean triples, and textbook exercises use them constantly because the answers come out clean.

TripleCheck
3, 4, 59 + 16 = 25
5, 12, 1325 + 144 = 169
8, 15, 1764 + 225 = 289
7, 24, 2549 + 576 = 625
20, 21, 29400 + 441 = 841

Every multiple of a triple is also a triple: from 3-4-5 you get 6-8-10, 9-12-15, 30-40-50. So if an exercise gives you legs of 30 and 40, you can write 50 immediately without squaring anything.

The converse: is this triangle right-angled?

The theorem also runs backwards. Given three sides, call the longest one c and test whether c² = a² + b². If the two sides match, the triangle has a right angle opposite c. This is the converse of the Pythagorean theorem, and the comparison also tells you more:

  • a² + b² = c² → right triangle.
  • a² + b² < c² → obtuse triangle (the angle opposite c is wider than 90°).
  • a² + b² > c² → acute triangle.

Two applications that come up constantly

Distance between two points. On a coordinate plane the gap between A(x₁, y₁) and B(x₂, y₂) is just the hypotenuse of a right triangle whose legs are the horizontal and vertical differences. That is where the distance formula comes from: d = √((x₂ − x₁)² + (y₂ − y₁)²). It is not a new rule to learn, only the theorem in different clothing.

Diagonals of rectangles and boxes. A diagonal splits a rectangle into two right triangles, so the diagonal of a rectangle with sides a and b is √(a² + b²). In three dimensions you apply the theorem twice and get the space diagonal of a box: d = √(a² + b² + c²). The same reasoning gives you the height of an equilateral triangle and the apothem of a regular polygon, which is why the theorem turns up all over area and perimeter problems.

Three mistakes to avoid

  1. Subtracting when you should add, or the reverse. Identify the hypotenuse first.
  2. Forgetting the final square root. c² = 100 does not mean c = 100.
  3. Rounding too early. Keep radicals like 5√2 exact until the last step, and only then approximate. If you are rusty on squares and roots, review the laws of exponents first.

The nine exercises below

They follow the same pattern at increasing difficulty: whole-number legs, a missing leg, the diagonal of a rectangle, a real ladder problem, a radical to simplify, a two-step perimeter question, the converse test, the distance between two points, and finally the diagonal of a box in three dimensions. Every answer has been verified by redoing the calculations.

Solved exercises

1. In a right triangle the two legs measure 6 cm and 8 cm. How long is the hypotenuse? base

Show solution
  1. The hypotenuse is the side opposite the right angle: find it with c² = a² + b².
  2. Square the legs: 6² = 36 and 8² = 64.
  3. Add them: 36 + 64 = 100.
  4. The hypotenuse is the square root: c = √100 = 10.

Answer: c = 10 cm

2. The hypotenuse of a right triangle is 13 cm and one leg is 5 cm. How long is the other leg? base

Show solution
  1. To find a leg, subtract: b² = c² − a².
  2. Square the known sides: 13² = 169 and 5² = 25.
  3. Subtract: 169 − 25 = 144.
  4. The leg is the square root: b = √144 = 12.

Answer: b = 12 cm

3. A rectangle is 24 cm long and 7 cm wide. How long is its diagonal? base

Show solution
  1. The diagonal cuts the rectangle into two right triangles, with the sides as legs and the diagonal as hypotenuse.
  2. Square the sides: 24² = 576 and 7² = 49.
  3. Add them: 576 + 49 = 625.
  4. Take the square root: d = √625 = 25.

Answer: d = 25 cm

4. A ladder leans against a wall. Its foot is 1.5 m from the wall and it reaches 2 m up the wall. How long is the ladder? intermedio

Show solution
  1. Wall and floor form a right angle, so the ladder is the hypotenuse.
  2. Square the two distances: 1.5² = 2.25 and 2² = 4.
  3. Add them: 2.25 + 4 = 6.25.
  4. Take the square root: √6.25 = 2.5.

Answer: The ladder is 2.5 m long

5. An isosceles right triangle has two equal legs, each 5 cm long. How long is the hypotenuse? intermedio

Show solution
  1. The two legs are equal: c² = 5² + 5².
  2. Compute: 25 + 25 = 50.
  3. c = √50 ; simplify the radical: √50 = √(25 · 2) = 5√2.
  4. Approximate value: 5 · 1.414 ≈ 7.07.

Answer: c = 5√2 cm ≈ 7.07 cm

6. A right triangle has legs of 20 cm and 21 cm. Find the hypotenuse, then the perimeter. avanzato

Show solution
  1. Find the hypotenuse first: c² = 20² + 21² = 400 + 441 = 841.
  2. c = √841 = 29.
  3. The perimeter is the sum of the three sides: P = 20 + 21 + 29.
  4. P = 70.

Answer: Hypotenuse = 29 cm ; perimeter = 70 cm

7. A triangle has sides 9 cm, 12 cm and 15 cm. Is it a right triangle? And what about one with sides 5 cm, 6 cm and 8 cm? intermedio

Show solution
  1. Use the converse: a triangle is right-angled if the square of the longest side equals the sum of the squares of the other two.
  2. First triangle, longest side 15: 9² + 12² = 81 + 144 = 225, and 15² = 225. They match.
  3. Second triangle, longest side 8: 5² + 6² = 25 + 36 = 61, but 8² = 64. They do not match.
  4. 61 is less than 64, so the angle opposite the longest side is slightly wider than 90 degrees: the triangle is obtuse.

Answer: 9-12-15 is right-angled ; 5-6-8 is not (it is obtuse).

8. On a coordinate plane, find the distance between A(1, 2) and B(7, 10). intermedio

Show solution
  1. Draw the horizontal and vertical gaps between the points: they are the legs of a right triangle whose hypotenuse is AB.
  2. Horizontal leg: 7 - 1 = 6. Vertical leg: 10 - 2 = 8.
  3. Apply the theorem: AB² = 6² + 8² = 36 + 64 = 100.
  4. AB = √100 = 10. This is exactly what the distance formula does.

Answer: AB = 10

9. A box is 12 cm long, 4 cm wide and 3 cm high. How long is the diagonal running from one bottom corner to the opposite top corner? avanzato

Show solution
  1. Apply the theorem twice. First find the diagonal of the base: b² = 12² + 4² = 144 + 16 = 160.
  2. Do not take the square root yet: keep 160, because you are about to square it again.
  3. Now the base diagonal and the height form a second right triangle: d² = 160 + 3² = 160 + 9 = 169.
  4. d = √169 = 13.

Answer: d = 13 cm

FAQ

When can I use the Pythagorean theorem?

Only in right triangles, that is triangles with a 90° angle. It relates the two legs to the hypotenuse and does not apply to triangles without a right angle.

How do I know which side is the hypotenuse?

The hypotenuse is always the side opposite the right angle and it is the longest side of the triangle. The other two sides, which form the right angle, are the legs.

Can the theorem tell me whether a triangle is right-angled?

Yes. If the three sides satisfy c² = a² + b² (with c the longest side), the triangle is right-angled. This is the converse of the Pythagorean theorem.

What are Pythagorean triples?

They are sets of three whole numbers that satisfy c² = a² + b², so the sides come out exact with no radicals. The ones worth memorising are 3-4-5, 5-12-13, 8-15-17, 7-24-25 and 20-21-29. Every multiple of a triple is also a triple: 3-4-5 doubled gives 6-8-10, tripled gives 9-12-15. Spotting one saves you the whole calculation.

Does the Pythagorean theorem work in three dimensions?

Yes, by applying it twice. For a box with edges a, b and c the space diagonal is d = √(a² + b² + c²). You first find the diagonal of the base, then combine it with the height. The trick is not to take the square root at the intermediate step, since you would only square it again.

What is the most common mistake in these exercises?

Adding when you should subtract. If you are looking for a leg, not the hypotenuse, the operation is a subtraction: a² = c² − b². The second most common mistake is stopping at the squared value and forgetting the final square root.