Interactive maths lesson · ages 9–14

The Pythagorean Theorem

The three sides of a right triangle hide a secret that people discovered thousands of years ago. Work through 8 short stops — tap, pour water, solve a puzzle — find it yourself, then learn to use it.

a² + b² = c²

Say it: a squared plus b squared equals c squared

3² + 4² = 5²
9 + 16 = 25

Meet the right triangle

A triangle with one right angle (90°, like the corner of a book) is called a right triangle. Each of its sides has a name.

  • Right angle: a 90° angle, marked with a little square.
  • Leg a and leg b: the two sides that make the right angle.
  • Hypotenuse c: the side opposite the right angle. It is always the longest.
Challenge: tap the hypotenuse

The triangle keeps turning. Find the little square (the right angle) first — the hypotenuse is straight across from it.

Count the squares

Draw a square on each side. A square’s area is side × side, which we call the side “squared”. Count the little squares and see how the three areas are related.

a3b4

Drag the dots, or press − / + to change the two legs (1 to 5).

Blue square a²93 × 3
Green square b²164 × 4
Red square c²255 × 5

Why does it always work?

Counting squares only checks a few examples. Sliding these triangles around shows why it works for every right triangle.

  1. Put 4 identical right triangles inside a big square with side a + b. The empty space in the middle is a red square with area c².
  2. Slide the triangles. The big square doesn’t change and the 4 triangles don’t change, so the empty area can’t change either.
  3. Now the empty space is a blue square and a green square, with area a² + b².
  4. Same amount of space, just a different shape: c² = a² + b² 🎉

Move the “Shape” slider to pick a different right triangle and slide again — it still works. That is what a proof is: not luck, but true every time.

Puzzle challenge

Can you cut up the blue and green squares and cover the red square exactly? Try it yourself.

Drag the 4 pieces cut from the bigger square, plus the other small square, into the red square. Pieces never need turning — just slide them, and they snap when they are close. With a keyboard, press Tab to pick a piece and Enter to send it home.

This way of cutting was found by Henry Perigal, an Englishman, in the 19th century: none of the pieces needs to be rotated.

Real-life uses

If you know two sides of a right triangle, you can work out the third. Try your own numbers in these three tools.

Pythagoras calculator

Can the ladder reach the window?

A 5 m ladder leans against a wall. The wall meets the ground at a right angle, so the ladder is the hypotenuse. Drag the foot of the ladder (or use the slider) until the top just reaches the window.

Walk round the road, or cut across the park?

To get from home to school, the road goes around the park with one corner; a path cuts straight across the park. Two friends walk at the same speed. Who gets there first?

Turn it around: checking for a right angle

The theorem also works backwards: if three sides fit a² + b² = c² (c is the longest), the triangle must have a right angle. Change the three sides and find the right triangles.

How people made right angles long ago

It is said that ancient Egyptians used a knotted rope split into 12 equal parts. Pulled into a triangle with sides of 3, 4 and 5 parts, it makes a right angle. Builders still measure 3, 4 and 5 to check that a corner is square.

How satellites find a car

A car’s satnav knows where the car is thanks to satellites in the sky, and the distance maths behind it is the Pythagorean theorem. Below is a 3D model you can drag to look around.

Satellites used
Show the right triangle for

  1. Measure the distance: each satellite keeps sending signals stamped with the time. The car works out how long the signal took and multiplies by the speed of light (about 300,000 km per second) to get its distance c to the satellite.
  2. Pythagoras: the satellite’s height a is known. A line straight down from the satellite, then across the ground to the car, makes a right triangle, so the distance along the ground is b = √(c² − a²).
  3. Draw circles, find the crossing: draw a circle on the ground with radius b around the point under the satellite; the car must be on it. One satellite gives a circle, two give two crossing points, and three circles meet at just one point: the car.

The model is simplified: the ground is flat and the satellites and car are drawn huge. Real GPS satellites orbit about 20,200 km up and the Earth is round; a car’s clock is not precise enough, so in practice at least 4 satellites are needed, the extra one to correct the time.

Quiz

8 questions — the more you get right, the more stars you earn. The questions change every round.

The story of the theorem

About 1800 BC · Babylon

Numbers on a clay tablet

A clay tablet called Plimpton 322 lists several sets of numbers that fit a² + b² = c². People were already using the rule.

Over 2,000 years ago · China

Gou 3, gu 4, xian 5

The old Chinese book Zhoubi Suanjing records Shang Gao saying “gou three, gu four, xian five”. The short leg was gou, the long leg gu and the hypotenuse xian, so in Chinese it is the Gougu theorem.

About 500 BC · Greece

Pythagoras

Tradition says Pythagoras and his followers proved it, which is why it carries his name in English.

3rd century AD · China

Zhao Shuang’s diagram

The mathematician Zhao Shuang drew a “hypotenuse diagram” made of 4 right triangles to prove it. It became the logo of the 2002 International Congress of Mathematicians in Beijing.

1876 · USA

A president’s proof

James Garfield, who later became US president, found a proof using a trapezoid. Today people have collected hundreds of different proofs.

Frequently asked questions

What is the Pythagorean theorem?

In a right triangle, the squares of the two legs add up to the square of the hypotenuse: a² + b² = c². For example, if the legs are 3 and 4, the hypotenuse is 5, because 9 + 16 = 25.

Which sides are a, b and c?

a and b are the legs, the two sides that form the right angle. c is the hypotenuse, opposite the right angle and the longest side. It doesn’t matter which leg you call a or b, but c must be the hypotenuse.

How do I find the hypotenuse from the two legs?

Square each leg, add them, then take the square root: c = √(a² + b²). Example: a = 6, b = 8 gives 36 + 64 = 100, so c = √100 = 10.

How do I find a missing leg?

Subtract the square of the known leg from the square of the hypotenuse, then take the square root: b = √(c² − a²). Example: c = 13, a = 5 gives 169 − 25 = 144, so b = √144 = 12.

What are Pythagorean triples?

Three whole numbers that fit a² + b² = c² exactly, such as 3-4-5, 5-12-13, 8-15-17 and 7-24-25. Multiplying a triple by 2, 3 and so on gives another triple, like 6-8-10 or 9-12-15.

Does it work for triangles that are not right triangles?

No, only for right triangles. The other way round, if the three sides fit a² + b² = c², the triangle must be a right triangle (the converse). If a² + b² is bigger than c², the triangle is acute; if it is smaller, the triangle is obtuse.

Where is it used in everyday life?

A “55-inch” TV or phone screen size is the length of its diagonal. Builders measure 3 and 4 and check the diagonal is 5 to make a square corner. It also gives straight-line distances on a map and how high a ladder will reach.

Want to go on to sin, cos and tan? Try the right triangle explorer (Chinese interface) to see all six trig ratios change as you drag.