---
title: "Pythagoras' Theorem Explained: Formula, Examples and Practice"
description: "Learn Pythagoras' theorem a² + b² = c² with a picture proof, finding the hypotenuse and shorter sides, triples, 3D problems and 40 practice questions."
slug: pythagoras-theorem
canonical: https://learn.modernagecoders.com/resources/maths/pythagoras-theorem/
category: "Maths"
keywords: ["pythagoras theorem", "pythagorean theorem", "a2 + b2 = c2", "how to find the hypotenuse", "pythagoras theorem examples", "pythagorean triples", "pythagoras theorem questions with answers", "find the missing side of a right triangle", "pythagoras in 3d", "distance between two points formula"]
---
# Pythagoras' Theorem

**Difficulty:** Intermediate  
**Reading time:** 24 min  
**Chapter:** 13  
**Practice questions:** 40

## What Is Pythagoras' Theorem?

**Pythagoras' theorem** is a rule about right-angled triangles. A **right-angled triangle** (called a right triangle in the US) is any triangle with one angle of exactly 90°, the square corner you see on a sheet of paper or the corner of a room. The theorem says that if you know the lengths of any two sides of such a triangle, you can always work out the third.

The rule is usually written as **a² + b² = c²**. Here **c** is the **hypotenuse**, the longest side, which always sits directly opposite the right angle. The letters **a** and **b** stand for the two shorter sides, sometimes called the **legs**, which meet to form the right angle. In words: the square of the longest side equals the sum of the squares of the other two sides.

A quick example shows how neat this is. A triangle with shorter sides 3 cm and 4 cm has 3² + 4² = 9 + 16 = 25, and 25 = 5², so the hypotenuse is exactly 5 cm. You can check this with a ruler: draw a 3 cm line, a 4 cm line at a right angle to it, and join the ends. The join will measure 5 cm.

The theorem is named after Pythagoras, a Greek thinker who lived about 2,500 years ago, although people in ancient Babylon, India and China were using the same idea even earlier. It is one of the most famous results in all of mathematics, and it is the foundation for trigonometry, distance on graphs, and a great deal of engineering, navigation and computer graphics.

In this chapter you will learn what each part of the formula means, see a picture proof of why it works, use it to find the hypotenuse and the shorter sides, check whether a triangle has a right angle, and use it on coordinate grids and in 3D shapes.

## Why Does It Matter?

Pythagoras' theorem turns up whenever something goes across, up and along at the same time. Any time you have a straight line that cuts across a corner, there is a hidden right-angled triangle, and the theorem tells you how long that line is without measuring it.

### Building and DIY

Builders use the "3, 4, 5 rule" to make sure a corner is perfectly square. They measure 3 units along one wall, 4 units along the other, and check that the diagonal between the two marks is exactly 5 units. If it is, the corner is 90°. The same idea is used to set out foundations, patios, garden beds and sports pitches.

### Ladders and safety

A ladder leaning against a wall makes a right-angled triangle with the wall and the ground. If you know how long the ladder is and how far its foot is from the wall, the theorem tells you how high it reaches. Firefighters and window cleaners use exactly this reasoning.

### Screens and phones

TV, laptop and phone screens are sold by the length of their diagonal. A "55 inch" TV is 55 inches from one corner to the opposite corner, not 55 inches wide. Using the width and height, the theorem connects these measurements, so you can work out whether a TV will fit in a space.

### Maps, games and GPS

To find the straight-line distance between two places on a grid map, you go across and up, then use the theorem on the triangle that makes. Video games use this many times every second to work out how far a character is from an enemy or an object, and mapping apps use the same idea (on a curved Earth, with extra steps) to measure distances.

### Sport

The longest straight pass across a rectangular pitch or court is its diagonal. A baseball catcher throwing from home plate to second base is throwing along the diagonal of a square, and a footballer running from one corner flag to the opposite one runs the diagonal of a rectangle.

### The rest of your maths

Trigonometry, the distance formula, the equation of a circle, vectors and much of physics all grow out of this one theorem. If you understand it well now, many later topics become much easier.

## Pythagoras' Theorem Explained Step by Step

### 1. The parts of a right-angled triangle

Imagine a slice of toast cut from one corner to the opposite corner. Each half is a right-angled triangle: two straight edges of the toast meet at a square corner, and the cut runs across from one to the other.

Every right-angled triangle has three sides with special names:

- The **hypotenuse** is the side opposite the right angle. It is always the longest side. In the toast picture it is the cut.
- The other two sides are the **legs** (or shorter sides). They touch the right angle and form the square corner.

On diagrams the right angle is marked with a small square in the corner. Whenever you see that little square, Pythagoras' theorem is available. A good habit is to find the right angle first, then follow your finger straight across the triangle to the opposite side: that side is the hypotenuse, and it gets the letter **c**.

### 2. The big idea: squares on the sides

Imagine drawing a real square on each side of the triangle, sticking outwards, like three tiles laid along its edges. For a 3, 4, 5 triangle, the square on the 3 cm side is made of 9 small squares, the square on the 4 cm side is made of 16 small squares, and the square on the 5 cm side is made of 25 small squares.

Notice that 9 + 16 = 25. The two smaller tiles, put together, cover exactly the same area as the big tile on the hypotenuse. This is what the theorem really says: **the area of the square on the hypotenuse equals the total area of the squares on the other two sides**. The "squared" in a² is not just a button on the calculator; it is an actual square with side a.

### 3. The formula

Putting the picture into symbols, with c for the hypotenuse:

**a² + b² = c²**

It does not matter which leg you call a and which you call b, because adding works in either order. What does matter is that **c is always the hypotenuse**. The formula only works for triangles with a right angle. For other triangles you need different tools, such as the sine and cosine rules, which you will meet later.

### 4. Why it is true: a picture proof

Imagine four identical copies of a right-angled triangle with legs a and b and hypotenuse c, cut out of card. Arrange them inside a large square of side length **(a + b)**, 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 work out the area of the big square in two ways:

- Directly: the side is a + b, so the area is (a + b)² = a² + 2ab + b².
- In pieces: four triangles, each with area ½ab, plus the middle square. That is 4 × ½ab + c² = 2ab + c².

Both answers describe the same square, so they must be equal: a² + 2ab + b² = 2ab + c². Take 2ab away from both sides and you are left with **a² + b² = c²**. This is a proof: it shows the rule works for every right-angled triangle, not just the ones we have tested. There are hundreds of other proofs, but this is one of the easiest to picture.

### 5. Finding the hypotenuse

Imagine a ramp: you know how far it goes along the ground and how high it rises, and you want the length of the sloping surface. That sloping surface is the hypotenuse, and you find it by **squaring, adding, then square rooting**.

1. Square the two shorter sides.
2. Add the results. This gives c².
3. Take the square root to get c.

Example: legs 6 cm and 8 cm. Then c² = 6² + 8² = 36 + 64 = 100, so c = √100 = 10 cm.

Quick check: the hypotenuse must be longer than each leg, but shorter than the two legs added together (because a straight line is the shortest route). Here 10 is bigger than 8 and smaller than 6 + 8 = 14, so it is sensible.

### 6. Finding a shorter side

Imagine you know the length of a ladder (the hypotenuse) and how far its foot is from the wall, and you want the height it reaches. Now you are finding a leg, so you **square, subtract, then square root**.

Rearranging the formula gives **a² = c² − b²**, so **a = √(c² − b²)**.

1. Square the hypotenuse and the known leg.
2. Subtract the smaller square from the bigger one (hypotenuse squared minus leg squared).
3. Take the square root.

Example: hypotenuse 13 m, one leg 5 m. Then a² = 13² − 5² = 169 − 25 = 144, so a = √144 = 12 m.

A simple memory aid: **longest side wanted, add; shorter side wanted, subtract**. If your answer for a shorter side comes out longer than the hypotenuse, you have added by mistake.

### 7. Pythagorean triples

Most right-angled triangles give answers with long decimals, but a few have three whole-number sides. These sets are called **Pythagorean triples**, and they are worth recognising because they save time and make good checks.

abcCheck

3459 + 16 = 25
5121325 + 144 = 169
8151764 + 225 = 289
7242549 + 576 = 625
202129400 + 441 = 841
9404181 + 1600 = 1681

Any multiple of a triple is also a triple. Doubling 3, 4, 5 gives 6, 8, 10; multiplying by 10 gives 30, 40, 50. So a triangle with legs 1.5 m and 2 m has a hypotenuse of 2.5 m, because it is the 3, 4, 5 triangle halved.

### 8. Is it a right angle? The converse

The theorem also works backwards. This backwards version is called the **converse**: if the three sides of a triangle fit a² + b² = c², with c the longest side, then the triangle **must** have a right angle. This is exactly what the builders' 3, 4, 5 rule uses.

To test a triangle, square the two shorter sides, add them, and compare with the square of the longest side:

ResultType of triangleExample sides

a² + b² = c²Right-angled9, 40, 41: 81 + 1600 = 1681 = 41²
a² + b² > c²Acute (all angles under 90°)5, 6, 7: 25 + 36 = 61 > 49
a² + b² < c²Obtuse (one angle over 90°)4, 5, 8: 16 + 25 = 41 < 64

You can picture why: if the angle opens wider than 90°, the far side stretches longer, so c² gets too big. If the angle closes up, c² gets smaller.

### 9. Exact answers, surds and rounding

Often the final square root is not a whole number. For legs 5 cm and 5 cm, c² = 25 + 25 = 50, so c = √50. Your calculator gives 7.0710678... and you round to a sensible accuracy, such as **7.07 cm** (2 decimal places, or 3 significant figures).

Sometimes a question asks for an **exact** answer. Then you leave the square root in, and if possible simplify it: √50 = √(25 × 2) = √25 × √2 = **5√2 cm**. A number left as a square root like this is called a **surd**.

Two rounding rules keep your answers accurate:

- Keep the full calculator value until the very last step. Round only the final answer.
- Always include units, and remember that c² is in square units (like cm²) but c is in ordinary units (cm).

### 10. Distance between two points on a grid

Imagine two towns on a squared map, at the points (1, 2) and (7, 10). To go from one to the other you could walk across 6 squares and then up 8 squares. Those two walks are the legs of a right-angled triangle, and the straight-line route is its hypotenuse.

So the distance is √(6² + 8²) = √(36 + 64) = √100 = **10 units**.

In general, for points (x₁, y₁) and (x₂, y₂), the across distance is x₂ − x₁, the up distance is y₂ − y₁, and

**distance = √((x₂ − x₁)² + (y₂ − y₁)²)**

Negative differences are fine: squaring always gives a positive number, so going 6 left gives the same distance as going 6 right.

### 11. Pythagoras in 3D

Imagine a shoebox, and a straw stretched from one bottom corner to the opposite top corner, right through the middle of the box. That straw is the **space diagonal**. To find its length, use the theorem twice: first across the floor of the box, then up.

For a box of length l, width w and height h, the floor diagonal d has d² = l² + w². Then the space diagonal D has D² = d² + h². Putting these together gives

**D² = l² + w² + h²**, so **D = √(l² + w² + h²)**

For a box 3 cm by 4 cm by 12 cm: D = √(9 + 16 + 144) = √169 = 13 cm. That is the longest straight object that can fit inside the box.

## Worked Examples

### Finding the hypotenuse (whole-number answer)

A right-angled triangle has shorter sides of 5 cm and 12 cm. Find the length of the hypotenuse.

1. The two given sides meet at the right angle, so we want c, the hypotenuse.
2. Write the formula: c² = a² + b².
3. Substitute: c² = 5² + 12² = 25 + 144 = 169.
4. Square root: c = √169 = 13.

**Answer:** **13 cm**

5, 12, 13 is a Pythagorean triple. Check: 13 is longer than 12 but shorter than 5 + 12 = 17, so it is sensible.

### Finding the hypotenuse (decimal answer)

A right-angled triangle has legs of 7 m and 9 m. Find the hypotenuse, correct to 2 decimal places.

1. c² = 7² + 9² = 49 + 81 = 130.
2. c = √130 = 11.40175...
3. Round only at the end: 11.40 to 2 decimal places.

**Answer:** **11.40 m** (2 d.p.)

The exact answer is √130 m. Writing 11.40 rather than 11.4 shows that the answer is accurate to 2 decimal places.

### Finding a shorter side

A right-angled triangle has a hypotenuse of 12 cm and one shorter side of 7 cm. Find the other shorter side, correct to 3 significant figures.

1. We want a leg, so subtract: a² = c² − b².
2. a² = 12² − 7² = 144 − 49 = 95.
3. a = √95 = 9.7467...
4. To 3 significant figures: 9.75.

**Answer:** **9.75 cm** (3 s.f.)

Check: 9.75 is less than the hypotenuse of 12, as a shorter side must be. If you had added instead, you would get √193 ≈ 13.9, longer than the hypotenuse, which is impossible.

### How high does the ladder reach?

A 5 m ladder leans against a vertical wall. Its foot is 1.4 m from the bottom of the wall on level ground. How high up the wall does the ladder reach?

1. The wall and ground meet at a right angle. The ladder is opposite that angle, so the ladder is the hypotenuse: c = 5.
2. The height h is a leg: h² = 5² − 1.4² = 25 − 1.96 = 23.04.
3. h = √23.04 = 4.8.

**Answer:** **4.8 m**

This is the 3, 4, 5 family in disguise: 1.4, 4.8, 5 is the 7, 24, 25 triple divided by 5.

### Does this triangle have a right angle?

Triangle P has sides 9 cm, 40 cm and 41 cm. Triangle Q has sides 6 cm, 7 cm and 9 cm. Which, if either, is right-angled?

1. Triangle P: longest side 41. Shorter sides squared and added: 9² + 40² = 81 + 1600 = 1681. Longest side squared: 41² = 1681. They are equal.
2. Triangle Q: longest side 9. 6² + 7² = 36 + 49 = 85. And 9² = 81. They are not equal.
3. For Q, 85 > 81, so all its angles are less than 90° (it is acute).

**Answer:** **Triangle P is right-angled; triangle Q is not (it is acute).**

This uses the converse of Pythagoras' theorem: the sides fit a² + b² = c² exactly only when there is a right angle opposite the longest side.

### Distance between two points

Find the distance between A(−2, 3) and B(4, −5).

1. Across: 4 − (−2) = 6.
2. Up: −5 − 3 = −8 (8 units down).
3. Distance² = 6² + (−8)² = 36 + 64 = 100.
4. Distance = √100 = 10.

**Answer:** **10 units**

Squaring removes the minus sign, so the direction does not matter: going 8 down gives the same distance as going 8 up.

### Diagonal of a football pitch

A rectangular football pitch (a soccer field in the US) is 100 m long and 64 m wide. How far is it from one corner flag to the opposite corner flag in a straight line? Give your answer to 1 decimal place.

1. The diagonal splits the rectangle into two right-angled triangles with legs 100 m and 64 m.
2. d² = 100² + 64² = 10000 + 4096 = 14096.
3. d = √14096 = 118.7265...
4. To 1 decimal place: 118.7.

**Answer:** **118.7 m** (1 d.p.)

Walking along two edges would be 100 + 64 = 164 m, so the diagonal saves about 45.3 m.

### The longest straw in a box (3D)

A box measures 3 cm by 4 cm by 12 cm. What is the longest straight straw that fits inside it?

1. First the floor diagonal: d² = 3² + 4² = 9 + 16 = 25, so d = 5 cm.
2. The floor diagonal and the 12 cm height form another right-angled triangle. Space diagonal D² = 5² + 12² = 25 + 144 = 169.
3. D = √169 = 13 cm.
4. Shortcut check: D = √(3² + 4² + 12²) = √169 = 13.

**Answer:** **13 cm**

Two triples work together here: 3, 4, 5 on the floor and 5, 12, 13 going up through the box.

## Common Mistakes

### Adding when you should subtract

**Wrong:** Hypotenuse 10, leg 6: other leg = √(10² + 6²) = √136 ≈ 11.7  
**Right:** Other leg = √(10² − 6²) = √64 = 8

Students learn "add the squares" first and keep doing it. Adding only works when you want the hypotenuse. When the hypotenuse is given, subtract. A quick check catches it: a shorter side can never be longer than the hypotenuse.

### Forgetting the square root

**Wrong:** c² = 3² + 4² = 25, so c = 25  
**Right:** c² = 25, so c = √25 = 5

The sum gives c², the area of the square on the hypotenuse, not the length. Always finish with a square root. If your answer is much bigger than the sides you started with, you have probably stopped one step early.

### Using the wrong side as c

**Wrong:** Sides 5, 12, 13: 12² + 13² = 5²?  
**Right:** c is the longest side, opposite the right angle: 5² + 12² = 13²

The letters in a question are not always arranged neatly. Before writing anything, find the right angle and look across from it. That side, and only that side, is c.

### Square rooting each part separately

**Wrong:** √(3² + 4²) = 3 + 4 = 7  
**Right:** √(3² + 4²) = √(9 + 16) = √25 = 5

The square root of a sum is not the sum of the square roots. Work out the inside first (square, then add), and only then take one square root of the total. Remember the picture: the hypotenuse must be shorter than the two legs added together.

### Rounding too early

**Wrong:** √7 ≈ 2.6, then √(2.6² + 3²) = √15.76 ≈ 3.97  
**Right:** Keep √7 exactly: √(7 + 9) = √16 = 4

Rounding in the middle of a calculation lets small errors grow. Keep full calculator values (or exact surds) until the last line, then round once.

### Using the theorem on a triangle with no right angle

**Wrong:** Sides 6 and 7 with a 70° angle between them: third side = √(36 + 49)  
**Right:** Pythagoras needs a 90° angle; for 70° use the cosine rule instead

a² + b² = c² is only true for right-angled triangles. Look for the small square symbol or the words "right angle" or "perpendicular" before using it. In a rectangle, square, or isosceles triangle cut in half, a right angle is hidden; draw it in.

## Summary

- Pythagoras' theorem only applies to right-angled triangles, which have one angle of exactly 90°.
- The hypotenuse c is the longest side and is always opposite the right angle.
- The theorem says a² + b² = c²: the square on the hypotenuse has the same area as the other two squares together.
- To find the hypotenuse, square the two shorter sides, add, then square root.
- To find a shorter side, square both known sides, subtract the smaller square from the larger, then square root.
- Pythagorean triples such as 3, 4, 5 and 5, 12, 13, and their multiples, give whole-number sides.
- If a² + b² = c² for the longest side c, the triangle is right-angled; if a² + b² is bigger it is acute, and if smaller it is obtuse.
- The distance between two points is √((x₂ − x₁)² + (y₂ − y₁)²), which is Pythagoras on a grid.
- In a cuboid the space diagonal is √(l² + w² + h²).
- Keep full accuracy until the last step, give units, and check that the hypotenuse is the longest side.

## Related Topics

- undefined
- undefined
- undefined
- undefined

---

*Source: https://learn.modernagecoders.com/resources/maths/pythagoras-theorem/*
*Practice questions: https://learn.modernagecoders.com/resources/maths/pythagoras-theorem/practice/*
