MathemagiciansLibraryExplorationsDeep Dives
← Mathematics · Lower Secondary
MathematicsLower Secondary

Pythagoras theorem — a²+b²=c²

L3.8 — Pythagoras TheoremLecture 1 of 3~2980 words

Three metres east, four metres north

Amara stands in a large, flat playground. She walks 3 m east. Then she turns a quarter turn to her left and walks 4 m north. She has walked 7 m in total. How far is she now from where she started, in a straight line? Decide before you read on.

Predict — how far from the start?

Amara walks 3 m east, then 4 m north. How far is she from her starting point, measured in a straight line?

The figure shows Amara's path drawn to scale on squared paper, with each square 1 m by 1 m. The straight line from the start to the finish measures exactly 5 m.

3 m east4 m north5 mstartfinish
Amara's path: 3 m east, a right angle, then 4 m north. The straight line back to the start is 5 m, not 7 m.

The answer is 5 m. Draw the path on squared paper and measure it: the straight line is exactly 5 squares long. The numbers 3 and 4 produce 5, but by what rule? Adding gives 7, which is too long.

Now try a second path, the arm "2 across, 1 up" that the lecture on enlargement asked about. Draw it and measure it. A ruler gives a little more than 2.2. This time the answer is not a whole number at all. So we need a rule that gives 5 for the first path and about 2.2 for the second. There is one, and this lecture builds it, with the reason it is true.

The side across from the right angle

Amara's path makes a triangle, and one of its angles is the quarter turn, a right angle. A triangle with a right angle is called a right-angled triangle. The two sides that meet at the right angle are sometimes called its legs. The third side has its own name: the hypotenuse.

To find the hypotenuse, find the right angle first. It is usually marked with a small square. The hypotenuse is the side directly across from that corner, the only side that does not touch it. This works however the triangle is turned.

The hypotenuse is always the longest side. Here is the reason. The three angles of a triangle add up to 180°. The right angle uses 90°, so the other two angles share the remaining 90°. This means that each of them is smaller than 90°, and the right angle is the largest angle. In any triangle, the longest side is across from the largest angle. So the hypotenuse is the longest side.

A square on every side

Now draw a square on each side of Amara's triangle, as in the figure. Count the small squares inside each one.

16925435
The right-angled triangle with sides 3, 4 and 5, with a square drawn on each side. The two smaller squares hold 9 and 16 small squares. The square on the hypotenuse holds 25.

The square on the side 3 holds small squares. The square on the side 4 holds 16. The square on the hypotenuse holds 25. And . The square on the hypotenuse has exactly the same area as the other two squares put together.

Is this an accident of the numbers 3, 4 and 5? Draw legs of 5 and 12 at a right angle instead. The hypotenuse measures 13, and again .

But does it work for every triangle, or only for right-angled ones? Keep the sides 3 and 4, and change the angle between them.

Explore — open and close the angle

Change the angle between the sides 3 and 4 with the slider or the − and + buttons. Watch the square on the third side, and compare it with 9 + 16 = 25.


The table keeps two sides at 3 and 4 and changes the angle between them. The two small squares always add to 9 + 16 = 25. The square on the third side equals 25 only when the angle is 90°.

Angle between 3 and 4Third side (≈)Square on the third side (≈)Compared with 25
30°2.054.22smaller
60°3.6113smaller
90°525equal
120°6.0837bigger
150°6.7745.78bigger

Did you find the one angle that works? When the angle is small, the third side is short, and its square is less than 25. When the angle is wide, the third side is long, and its square is more than 25. Only at exactly 90° does the square on the third side equal . So the right angle is not a detail. It is the condition that makes the pattern true.

Why it is always true

Counting small squares works for 3, 4 and 5, but legs of 2.7 cm and 6.1 cm do not fit on a grid. Here is an argument that works for any right-angled triangle. Call its legs and , and its hypotenuse . This is the hard part of the lecture. Spend time here, and look at each picture as you read.

Take a big square whose side is . Make four copies of the triangle. Place one in each corner of the big square, as in the first picture. Each side of the big square is now made of one leg and one leg .

c²ababababcccc a²b²abababab
Top: the big square with side , with the four triangles in its corners. The uncovered part in the middle is a square of side . Bottom: the same big square, with the same four triangles moved into two rectangles. The uncovered part is now a square of side and a square of side .

The four hypotenuses make a shape in the middle. Each of its sides is a hypotenuse, so all four sides are . Its corners are right angles too (the Stop-and-think below asks you why). So the middle shape is a square, and its area is . This means that

Now move the same four triangles. Put them together in pairs, so that each pair makes a rectangle by . Place the two rectangles in two corners of the big square, as in the second picture. The uncovered part is now two squares: one of side and one of side . So

It is the same big square, and the same four triangles. Only their positions changed. So the uncovered area must be the same in both pictures:

That is it. That is the whole idea. Nothing was measured, so it works for every right-angled triangle, with any lengths.

Stop and think

In the first picture, the middle shape has four equal sides. A rhombus also has four equal sides, and it is not a square. How do you know that each corner of the middle shape is exactly 90°?

Show the answer

Look at one corner of the middle shape, where it touches a side of the big square. Three angles sit together on a straight line there: an angle of one triangle, the corner of the middle shape, and an angle of the next triangle. Those two triangle angles are the two different smaller angles of the right-angled triangle, and they add up to 90°. This is because the triangle's angles add to 180° and the right angle takes 90°. Angles on a straight line add to 180°, so the corner of the middle shape is .

Pythagoras' theorem

In a right-angled triangle, the square on the hypotenuse is equal to the sum of the squares on the other two sides.

If the two sides that make the right angle are and , and the hypotenuse is , then .

To find the hypotenuse: square the two shorter sides, add, then take the square root: .

The arm "2 across, 1 up"

Now the question from the enlargement lecture has an answer. On a grid, "across" and "up" meet at a right angle. So the arm "2 across, 1 up" is the hypotenuse of a right-angled triangle with legs 2 and 1.

Check by squaring: , very close to 5. This is why the ruler showed a little more than 2.2. The exact length is .

Here is a second check, from that same lecture. An enlargement with scale factor 2 turns the arm into "4 across, 2 up". Pythagoras gives . And . The arm is twice as long, exactly as the enlargement lecture said it must be.

Worked examples

Worked Example 1 — The side of a rhombus

The lecture on quadrilaterals studied a rhombus PQRS with diagonals PR = 16 cm and QS = 12 cm. The diagonals cut each other in half at X, at right angles. So PX = 8 cm, QX = 6 cm and ∠PXQ = 90°. That lecture promised that Pythagoras would find the side. Find PQ.

Find the right angle. Triangle PXQ has its right angle at X.

Find the hypotenuse. The side across from X is PQ. So PQ is , and the legs are 8 and 6.

PQ = 10 cm. All four sides of a rhombus are equal, so every side is 10 cm, and the perimeter is 40 cm.

Check. 10 cm is longer than the longer leg, 8 cm, as a hypotenuse must be. It is shorter than cm, the path around the corner. ✓

Worked Example 2 — Name the hypotenuse first

In triangle KLM, the right angle is at L. KL = 5 cm and LM = 12 cm. Find KM.

Find the hypotenuse. The right angle is at L, so the hypotenuse is the side that does not touch L. Of the three sides KL, LM and KM, only KM has no letter L. So KM is the hypotenuse. This letter check works however the triangle is drawn.

KM = 13 cm.

Check. 13 is the longest of 5, 12 and 13. ✓ The three whole numbers 5, 12, 13 fit exactly. A set of three whole numbers like this is called a Pythagorean triple. The set 3, 4, 5 is another one. Any enlargement of a triple is also a triple, for example 6, 8, 10 and 10, 24, 26.

Worked Example 3 — An answer that is not a whole number

A right-angled triangle has legs 7 cm and 9 cm. Find the hypotenuse to 1 decimal place.

Estimate first. and . The number 130 is between them, and nearer to 121, so is between 11 and 12, nearer to 11.

Calculate. A calculator gives , so cm.

Check the rounding. , which is more than 130. So is less than 11.45, and it rounds down to 11.4. ✓ The exact answer is cm. 11.4 cm is its rounded value.

Working backwards: the builder's corner

Builders and gardeners use the numbers 3, 4 and 5 to check a square corner. They measure 3 m along one wall line and 4 m along the other. Then they move the lines until the distance between those two marks is exactly 5 m. For a bigger corner they use 6, 8 and 10.

Pythagoras' theorem says: if the angle is 90°, then . The builder uses it the other way round: if the sides are 3, 4 and 5, then the angle is 90°. A statement turned round like this is called the converse. A converse is not automatically true. For example, every square has four equal sides, but not every shape with four equal sides is a square. So the builder's rule needs its own reason.

Here it is. Imagine building a second triangle with a true right angle and legs 3 and 4. By Pythagoras, its hypotenuse is 5. Now the builder's triangle and this new triangle both have sides 3, 4 and 5. The lecture on congruent triangles showed that two triangles with the same three sides are exact copies (SSS). So the builder's triangle is a copy of the new one, and its angle between 3 and 4 must also be 90°. The same argument works for any three lengths with .

The converse of Pythagoras' theorem

If the sides of a triangle fit , with the longest side, then the angle across from is a right angle.

If is less than , that angle is smaller than 90°. If is more, that angle is larger than 90°.

Worked Example 4 — Right-angled or not?

Is each triangle right-angled? (a) Sides 20 cm, 21 cm and 29 cm. (b) Sides 6 cm, 7 cm and 9 cm.

(a) The longest side is 29, so test it as . The two shorter sides give . The longest side gives . They are equal, so the triangle is right-angled. The right angle is across from the 29 cm side, between the sides 20 cm and 21 cm.

(b) The two shorter sides give . The longest side gives . These are not equal, so the triangle is not right-angled. Since 81 is less than 85, the angle across from the 9 cm side is smaller than 90°.

Check. In (b), 81 and 85 are close, so the angle should be close to 90°. Drawn accurately and measured with a protractor, it is about 87°. ✓

Stop and think

A triangle has sides 5 cm, 12 cm and 13 cm. Is the right angle between the sides 5 and 12, or between the sides 12 and 13?

Show the answer

Between 5 and 12. The right angle is always across from the longest side, the hypotenuse, which is 13. So the right angle is at the corner where the two shorter sides meet. The sides 12 and 13 cannot meet at a right angle, because then the third side would be the hypotenuse, and it would have to be longer than 13.

Three classic traps

Trap 1 — Adding the sides before squaring them

For legs 6 and 8, a common slip is . That answer is shorter than the leg 8, and the hypotenuse is the longest side, so it must be wrong. The theorem adds the squares: . The opposite slip is . The lecture on square roots warned that is 5, not . This is where that warning matters. Square each leg, add the squares, and take the root once, at the end.

Trap 2 — Stopping at

After , some students write "the hypotenuse is 100 cm". But 100 is , the area of the square on the hypotenuse. It is not the length. A quick check catches this: 100 cm is far longer than cm, the path around the corner, which is impossible. The last step is always the square root.

Trap 3 — Treating the wrong side as

In , the letters and are the two sides that touch the right angle. If a question gives you the hypotenuse and one other side, adding their squares is wrong. For example, with a hypotenuse of 13 and a side of 5, the missing side is not . It must be shorter than 13. The next lecture shows how to find it. And if a triangle has no right angle, the theorem does not apply at all, as the explorer showed.

Try it yourself

Work each one on paper first. Open a hint only when you are stuck.

  1. A rectangular field is 40 m long and 9 m wide. A path runs straight across it, from one corner to the opposite corner. How long is the path? How much shorter is it than walking along two edges?

    Hint 1

    The diagonal of a rectangle cuts it into two right-angled triangles. The diagonal is the hypotenuse of each one.

    Hint 2

    The legs are 40 m and 9 m. Work out first.

    Full answer

    , so m. Walking along two edges is m, so the path is 8 m shorter.

    Check: 41 m is longer than 40 m and shorter than 49 m. ✓ The numbers 9, 40, 41 are another Pythagorean triple.

  2. A square has sides of 5 cm. How long is its diagonal, to 2 decimal places? What is the diagonal of a square with sides of 1 cm?

    Hint 1

    The diagonal cuts the square into two right-angled triangles. Both legs are sides of the square.

    Hint 2

    For the 5 cm square, .

    Full answer

    , so cm. The lecture on square roots found by trial and improvement; here is the length it describes. For a 1 cm square, , so cm.

    Check: , very close to 50. ✓ Notice that . The diagonal of every square is about 1.41 times its side, because every square is an enlargement of the 1 cm square.

  3. Two sets of sticks are laid out as triangles. Set A is 10 cm, 24 cm and 26 cm. Set B is 10 cm, 24 cm and 25 cm. Which set makes a right angle? For the other set, is its largest angle smaller or larger than 90°?

    Hint 1

    Use the converse. Compare the square of the longest side with the sum of the squares of the other two.

    Hint 2

    . Now square 26 and 25.

    Full answer

    . Set A: , equal, so Set A has a right angle, between the sides 10 and 24. Set B: , which is less than 676, so its largest angle (across from 25) is smaller than 90°.

    Check: Set A is the triple 5, 12, 13 enlarged with scale factor 2. ✓ In Set B the longest side is 1 cm shorter, so the angle across from it closes a little, to about 84°.

  4. A closed box is 3 cm wide, 4 cm deep and 12 cm tall. What is the longest straight thin stick that fits inside it, from one bottom corner to the opposite top corner?

    Hint 1

    Use Pythagoras twice. First find the diagonal of the bottom of the box.

    Hint 2

    The bottom diagonal is 5 cm. It makes a right angle with the upright edge of 12 cm at the corner below the top corner. The stick is the hypotenuse of that triangle.

    Full answer

    The bottom of the box is a 3 cm by 4 cm rectangle. Its diagonal is cm. The upright edge of 12 cm stands at a right angle to the bottom, so it makes a right angle with that diagonal. The stick is the hypotenuse of a triangle with legs 5 and 12: cm.

    Check: 13 cm is longer than the tallest edge, 12 cm, so the stick fits only because it leans across the box. ✓ Two Pythagorean triples, 3, 4, 5 and 5, 12, 13, join together here.

The bigger idea

The theorem carries the name of Pythagoras, a Greek thinker who lived about 2500 years ago, on the island of Samos and in southern Italy. None of his own writings survive, and nobody knows whether he proved the theorem himself. What is certain is that the rule is much older than he is.

A Babylonian clay tablet called Plimpton 322, written around 1800 BC in what is now Iraq, lists numbers from right-angled triangles with whole-number sides. Its first row comes from the triple 119, 120, 169: . The tablet is now at Columbia University in New York. In India, the Śulba Sūtras gave rules for laying out fire altars with stretched cords. The oldest of them dates from roughly 800 to 500 BC. They state that the diagonal of a rectangle makes as much area as its two sides together, which is the same theorem. In Egypt, surveyors called "rope-stretchers" measured land with knotted cords. A popular story says they used a 3-4-5 rope to make square corners, but no surviving evidence shows this.

The oldest written proof that survives is in Euclid's Elements, written in Greek around 300 BC. The theorem is Book I, Proposition 47. The very next one, Proposition 48, proves the converse, the builder's check. In 1940, the American teacher Elisha Loomis published a book of more than 360 different proofs. Many places, many centuries, one fact: it is true because of how area works, not because anyone said so.

The next lecture turns the theorem around, to find a shorter side when the hypotenuse is known.

Key concepts in this lesson