Home / IGCSE Mathematics 0580 / Pythagoras’ theorem
Cambridge IGCSE Mathematics 0580 · Trigonometry

Pythagoras' theorem

What Pythagoras' theorem says and why it is true, how to find the hypotenuse or a shorter side of a right-angled triangle with and without a calculator, how to test whether a triangle is right-angled, and how to spot the right-angled triangle hidden in a problem. Extended: exact answers as surds, and Pythagoras with algebra.

C6.1E6.1Core and ExtendedFree lesson
What the syllabus says

C6.1 (Core)

  • Know and use Pythagoras’ theorem.

E6.1 (Extended)

  • Know and use Pythagoras’ theorem.

Quoted from the Cambridge IGCSE Mathematics 0580 syllabus for 2025 to 2027.

What Pythagoras' theorem says

In a right-angled triangle, the side opposite the right angle is called the hypotenuse. It is always the longest side. The other two sides are the shorter sides, and they meet at the right angle.

Pythagoras' theorem: in any right-angled triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides.

a2+b2=c2

Here c is the hypotenuse and a and b are the two shorter sides. It does not matter which shorter side you call a and which you call b, but it matters very much which side is c.

"Square" can be read literally. Draw a square on each side of the triangle, facing outwards. The area of the square on the hypotenuse is exactly the total area of the squares on the other two sides. For the triangle with sides 3, 4 and 5: 32+42=9+16=25=52.

The theorem is true only for right-angled triangles. If there is no right angle, you cannot use it.

bac (hypotenuse)NOT TO SCALE

The hypotenuse c is opposite the right angle. Find it first in every question: it is the side that does not touch the right-angle mark.

Why the theorem is true

Take four copies of a right-angled triangle with shorter sides a and b and hypotenuse c. Arrange them inside a large square of side a+b, one in each corner, as in the diagram below.

The shape left in the middle has four sides, each of length c. Each of its corners is a right angle, because the angles on a straight line add up to 180°, and the two acute angles of a right-angled triangle add up to 90°, leaving 180°−90°=90°. So the middle shape is a square of side c.

Now work out the area of the large square in two ways.

  • As one square: (a+b)2=a2+2ab+b2.
  • As four triangles plus the middle square: 4×12ab+c2=2ab+c2.

These are the same area, so a2+2ab+b2=2ab+c2. Take 2ab from both sides and you are left with a2+b2=c2.

You will not be asked to prove the theorem, but knowing why it works helps you remember the most important fact about it: the hypotenuse is on its own on one side of the equation.

ababababcccc

The large square has area (a+b)2. It is also four triangles, each of area 12ab, plus the shaded square of area c2.

Finding the hypotenuse

When you know the two shorter sides and want the hypotenuse:

  1. Identify the hypotenuse: the side opposite the right angle.
  2. Square each of the two shorter sides and add.
  3. Take the square root.
  4. Check that your answer is longer than each of the other two sides, but shorter than the two of them added together.

Write the working as an equation, c2=a2+b2, then c=…. An examiner gives a method mark for the squares added, even if the final answer goes wrong.

Worked example 1

In triangle PQR, angle PQR =90°, PQ =6.4 cm and QR =11.5 cm. Calculate the length of PR. Give your answer correct to 3 significant figures.

PQR6.4 cm11.5 cmNOT TO SCALE
  1. PR is opposite the right angle at Q, so PR is the hypotenuse.

  2. PR2=6.42+11.52=40.96+132.25=173.21

  3. PR=173.21=13.160…

  4. Check: 13.2 is longer than 11.5 and shorter than 6.4+11.5=17.9, so it is sensible.

Answer: PR=13.2 cm

Finding a shorter side

When you know the hypotenuse and one shorter side, rearrange the theorem: a2=c2−b2.

  1. Square the hypotenuse and square the side you know.
  2. Subtract: the hypotenuse squared minus the other side squared.
  3. Take the square root.

Why subtract? The square on the hypotenuse is the total of the other two squares. If you know the total and one of the parts, the other part is what is left when you take the known part away.

A quick check catches the most common error: a shorter side must come out shorter than the hypotenuse. If your answer is longer, you added instead of subtracting.

Worked example 2

A rectangular gate is 1.4 m high. A straight diagonal strut joins opposite corners and is 3.15 m long. Calculate the width of the gate, w m. Give your answer correct to 3 significant figures.

w m1.4 m3.15 mNOT TO SCALE
  1. The height, the width and the strut form a right-angled triangle. The strut is opposite the right angle, so it is the hypotenuse.

  2. w2=3.152−1.42=9.9225−1.96=7.9625

  3. w=7.9625=2.821…

  4. Check: 2.82 is shorter than the hypotenuse, 3.15, as it must be.

Answer: w=2.82 m

Check yourself

A right-angled triangle has shorter sides of 5 cm and 9 cm. Calculate the length of the hypotenuse. Give your answer correct to 3 significant figures.

Answer it in the portal, where your answer is checked as you type →

Pythagorean triples and working without a calculator

On the non-calculator papers the numbers are chosen so that the squares are easy and the square root comes out exactly. Sets of three whole numbers that fit a2+b2=c2 are called Pythagorean triples. The ones worth knowing are:

  • 3, 4, 5
  • 5, 12, 13
  • 8, 15, 17
  • 7, 24, 25

Any multiple of a triple is also a triple, because multiplying every side by the same number gives a triangle of the same shape. So 6, 8, 10 and 30, 40, 50 and even 1.5, 2, 2.5 are all right-angled triangles.

Spotting a triple tells you the answer quickly, but still show the working. Write 102+242=100+576=676 and 676=26; a bare 26 risks losing the method mark if it is wrong.

Without a calculator you need your squares up to 152=225, and a way of finding a square root by trying: 576 ends in 4 or 6 (because 42 and 62 end in 6) and lies between 20 and 25 because 202=400 and 252=625. Try 242=576. It works.

Worked example 3

A kite is flying on a straight string 26 m long. The kite is directly above a point on level ground that is 10 m from where the string is fixed. Work out the height, h m, of the kite above the ground.

10 mh m26 mkiteNOT TO SCALE
  1. The string is opposite the right angle, so it is the hypotenuse. The height is a shorter side, so subtract.

  2. h2=262−102=676−100=576

  3. h=576=24, because 242=576.

  4. Check: 10, 24, 26 is the triple 5, 12, 13 doubled.

Answer: h=24

Check yourself

A right-angled triangle has a hypotenuse of 17 cm and one shorter side of 8 cm. Without using a calculator, work out the length of the third side.

Answer it in the portal, where your answer is checked as you type →

Is a triangle right-angled?

The theorem also works backwards. If the square of the longest side equals the sum of the squares of the other two sides, then the triangle has a right angle, and the right angle is opposite the longest side. This is called the converse of Pythagoras' theorem.

To test a triangle:

  1. Square the longest side.
  2. Square the other two sides and add.
  3. Compare. Equal means right-angled. Not equal means not right-angled.

For example, a triangle with sides 9 cm, 40 cm and 41 cm: 412=1681 and 92+402=81+1600=1681. They are equal, so the triangle is right-angled, with the right angle opposite the 41 cm side.

A triangle with sides 7 cm, 9 cm and 12 cm: 122=144 but 72+92=49+81=130. They are not equal, so there is no right angle.

In a "show that" question you must write both numbers and a conclusion in words: "841=841, so the triangle is right-angled." Builders use exactly this idea: a rope with 12 equally spaced knots pegged out as a 3, 4, 5 triangle gives a true right angle for the corner of a building.

Spotting the right-angled triangle in a problem

Exam questions rarely hand you a bare triangle. Look for the right angle in these places:

  • Rectangles and squares: a diagonal splits the shape into two right-angled triangles, with the diagonal as the hypotenuse.
  • Isosceles triangles: the line of symmetry from the top vertex meets the base at right angles and cuts the base in half. Use half the base, not the whole base.
  • Journeys: "due north" then "due east" makes a right angle at the turning point.
  • Walls, poles and ladders: a wall is vertical and the ground is horizontal, so they meet at a right angle. The ladder is the hypotenuse.
  • Two triangles sharing a side: find the shared side from the first triangle, then use it in the second. Keep its full calculator value; do not round it.

Always draw a sketch if there is no diagram, mark the right angle, and label the hypotenuse before you write any numbers.

Worked example 4

Triangle ABC is isosceles with AB = AC =13 cm and BC =10 cm. Work out the area of triangle ABC.

BCAM13 cm13 cmBC = 10 cmNOT TO SCALE
  1. To find the area you need the perpendicular height. Draw the line of symmetry from A to M, the midpoint of BC. Angle AMB =90°.

  2. BM is half of BC: BM=5 cm.

  3. In triangle ABM, AB is the hypotenuse: AM2=132−52=169−25=144.

  4. AM=144=12 cm.

  5. Area =12×base×height=12×10×12=60.

Answer: 60 cm2

Exact answers in surd form Extended

On Paper 2 the square root does not always come out as a whole number. The question then asks for the exact length, which means leaving the answer as a surd, simplified as far as it will go.

To simplify n, look for the largest square number that divides n: 52=4×13=4×13=213.

Two results come up so often that they are worth knowing:

  • The diagonal of a square of side s is s2, because s2+s2=2s2 and 2s2=s2.
  • An equilateral triangle of side 2 split down its line of symmetry gives a right-angled triangle with hypotenuse 2 and base 1, so its height is 4−1=3.

A decimal such as 7.21 is not exact, and 52 is not in its simplest form. Both lose the final mark when the question says "exact" or "simplest surd form".

Worked example 5 Extended

The diagonal of a square is 10 cm long. Find the exact length of a side of the square. Give your answer in its simplest surd form.

  1. Let the side be s cm. The diagonal is the hypotenuse of a right-angled triangle whose shorter sides are both s.

  2. s2+s2=102, so 2s2=100 and s2=50.

  3. s=50=25×2=52.

Answer: 52 cm

Pythagoras' theorem with algebra Extended

When the sides are given in terms of x, Pythagoras' theorem gives you an equation to solve.

  1. Write (shorter)2+(shorter)2=(hypotenuse)2 with the expressions in brackets.
  2. Expand every bracket carefully: (x+2)2=x2+4x+4, not x2+4.
  3. Collect everything on one side to get a quadratic equal to zero, and solve it.
  4. Reject any solution that makes a length zero or negative. A quadratic usually gives two answers, but a triangle has only one size.

Worked example 6 Extended

A right-angled triangle has shorter sides x cm and (x+2) cm, and a hypotenuse of 10 cm. Find the value of x.

  1. x2+(x+2)2=102

  2. x2+x2+4x+4=100

  3. 2x2+4x−96=0, and dividing by 2, x2+2x−48=0.

  4. (x+8)(x−6)=0, so x=−8 or x=6.

  5. A length cannot be negative, so x=6. Check: 62+82=36+64=100=102.

Answer: x=6

Check yourself Extended

A right-angled triangle has shorter sides of 2 cm and 6 cm. Find the exact length of the hypotenuse, giving your answer in its simplest surd form.

Answer it in the portal, where your answer is checked as you type →

Key points

  • The hypotenuse is the side opposite the right angle. It is always the longest side.

  • a2+b2=c2, where c is the hypotenuse.

  • To find the hypotenuse, square, add, square root. To find a shorter side, square, subtract, square root.

  • If the longest side squared equals the sum of the squares of the other two, the triangle is right-angled.

  • Know the triples 3, 4, 5; 5, 12, 13; 8, 15, 17; 7, 24, 25 and their multiples for non-calculator questions.

  • In problems, find the right angle first: rectangles, isosceles triangles, north and east journeys, walls and ladders.

  • Keep full calculator values through a multi-step problem and round only the final answer, normally to 3 significant figures.

  • Extended: an exact answer is a surd in its simplest form, such as 213.

Where marks are lost

  • Adding the squares when finding a shorter side. The answer then comes out longer than the hypotenuse, which is impossible.

  • Forgetting the square root, and giving c2 as the answer.

  • Adding the sides instead of their squares: 6+8=14, but the hypotenuse is 10.

  • Using the whole base of an isosceles triangle instead of half of it.

  • Rounding a length found in the first step, then using the rounded value in the next step.

  • Using Pythagoras' theorem in a triangle that has no right angle.

  • In a "show that" question, working out only one side of the comparison, or giving no conclusion.

  • Extended: giving a decimal, or an unsimplified surd such as 52, when an exact answer is asked for.

Related IGCSE Mathematics 0580 lessons

All IGCSE Mathematics 0580 lessons →

An original lesson written to the Cambridge IGCSE Mathematics 0580 syllabus (2025 to 2027). The worked examples and questions are our own, not Cambridge questions. Back to every IGCSE Mathematics 0580 lesson.