Pythagoras' theorem: formula, method and GCSE exam questions
Find the hypotenuse or a shorter side step by step, know when the theorem applies, and practise on three exam questions with answers.
On this page
Pythagoras' theorem says that in a right-angled triangle, the squares of the two shorter sides add up to the square of the hypotenuse. The hypotenuse, c, is the side opposite the right angle, and it is always the longest side.
a² + b² = c²
This page follows Pearson Edexcel GCSE Mathematics (1MA1). Pythagoras' theorem in right-angled triangles in two-dimensional figures is in Edexcel's specification for both tiers.
What is the Pythagoras theorem formula?
The formula is a² + b² = c². The one rule about the letters: the hypotenuse must be c. The other two sides are a and b, in either order.
That gives you two ways to use it:
- To find the hypotenuse, add the squares of the two shorter sides, then square root.
- To find a shorter side, subtract the square of the shorter side you know from the square of the hypotenuse, then square root.
Edexcel's formula sheet prints Pythagoras' theorem for both tiers: our formula sheet guide shows the whole sheet. It uses the same letters as this page, a² + b² = c² with c the hypotenuse.
When to use Pythagoras' theorem
Use it in a right-angled triangle when you know two sides and want the third. It only works for right-angled triangles, so if a triangle has no right angle marked or stated, don't assume one.
Before you choose a method, find the right angle and the hypotenuse, note what you know (lengths, angles), and decide whether you want a length or an angle.
| What you know and what you want | Method | Why |
|---|---|---|
| Two sides, and you want the third side | Pythagoras' theorem | Everything is a side length. |
| An angle and one side, and you want another side | Sin, cos or tan | The angle links the pair of sides. |
| Two sides, and you want an angle | Sin, cos or tan | An inverse function (sin⁻¹, cos⁻¹ or tan⁻¹) gives the angle. |
| The length and width of a rectangle, and you want the diagonal | Pythagoras' theorem | The diagonal makes a right-angled triangle. |
When an acute angle is one of the things you know or want, you need trigonometry instead: our SOHCAHTOA page takes you through it. For a triangle with no right angle there is the cosine rule. Edexcel's specification prints the sine rule and the cosine rule in bold type, which marks content that only Higher tier papers test.
How to find the hypotenuse
- Find the side opposite the right angle. That is the hypotenuse, c.
- Write a² + b² = c² and substitute the two shorter sides.
- Square each one and add.
- Square root the total.
- Check: the hypotenuse must be longer than both of the other sides.
Worked example: finding the hypotenuse
This is worked without a calculator, as Paper 1 needs.
A right-angled triangle has shorter sides of 9 cm and 12 cm. Find the length of the hypotenuse.
- The side you want is opposite the right angle, so it is c.
- 9² + 12² = c²
- 81 + 144 = c², so c² = 225
- c = √225 = 15
- The hypotenuse is 15 cm. That makes sense: it is longer than both 9 cm and 12 cm.
How to find a shorter side
- Check which side is the hypotenuse, c. It is one of the sides you know.
- Rearrange the formula: a² = c² − b².
- Substitute, square, then subtract.
- Square root the result.
- Check: your answer must be shorter than the hypotenuse.
Worked example: finding a shorter side
This is worked without a calculator, as Paper 1 needs.
A right-angled triangle has a hypotenuse of 13 cm and one shorter side of 5 cm. Find the length of the other shorter side.
- Call the side you want a: a² + 5² = 13²
- Subtract 5² from both sides: a² = 13² − 5²
- a² = 169 − 25 = 144
- a = √144 = 12
- The missing side is 12 cm, which is shorter than the 13 cm hypotenuse, as it should be.
Pythagoras' theorem in a rectangle
Right-angled triangles often sit inside bigger shapes. A diagonal across a rectangle cuts it into two right-angled triangles, and the diagonal is the hypotenuse of each one. So find the right-angled triangle first, then use the theorem on it.
Worked example: the diagonal of a rectangle
This is worked without a calculator, as Paper 1 needs.
A rectangle is 12 cm long and 9 cm wide. Find the length of its diagonal.
- The length, the width and the diagonal make a right-angled triangle, with the diagonal, d, as the hypotenuse.
- 9² + 12² = d²
- 81 + 144 = d², so d² = 225
- d = √225 = 15
- The diagonal is 15 cm.
If the question then asks for the angle between the diagonal and a side, that is a job for sin, cos or tan, covered on our SOHCAHTOA page.
Pythagoras' theorem exam questions with answers
Each question below is an exam-style question from Medly, marked with Medly's mark scheme.
Question 1: (2 marks)
This needs a calculator, so it is a Paper 2 or Paper 3 question.
A tower at a zipline site is vertical. A support cable is attached 8.4 m above the level ground. The cable is fixed to the ground 11.2 m horizontally from the base of the tower.
Calculate the length of the support cable.
Answer
- The tower is vertical and the ground is level, so they meet at a right angle. The cable is opposite that right angle, so it is the hypotenuse. Use Pythagoras' theorem: √(8.4² + 11.2²) (1 mark). Any equivalent route using Pythagoras' theorem is accepted.
- 8.4² + 11.2² = 70.56 + 125.44 = 196, and √196 = 14, so the support cable is 14 m long (1 mark, needed for full marks). 14 with the unit left off is accepted.
Question 2: (4 marks)
This needs a calculator, so it is a Paper 2 or Paper 3 question.
A ramp goes from the ground up to a doorway. The ramp covers a horizontal distance of 4.8 m and rises 1.4 m.
(a) Work out the length of the ramp. (2 marks)
(b) The sloping surface of the ramp is a rectangle 1.2 m wide. Work out the area of the sloping surface of the ramp. (2 marks)
Answer
(a)
- The horizontal distance and the rise meet at a right angle, and the ramp is the hypotenuse: 4.8² + 1.4² = 23.04 + 1.96 = 25, or √(4.8² + 1.4²) (1 mark).
- √25 = 5, so the ramp is 5 m long (1 mark, needed for full marks). 5 with the unit left off is accepted.
(b)
- The sloping surface is a rectangle 5 m long and 1.2 m wide, so multiply your length from part (a) by 1.2: 5 × 1.2 (1 mark, given for your own length × 1.2).
- 5 × 1.2 = 6, so the area is 6 m² (1 mark, needed for full marks). 6 with the unit left off is accepted. If your length in part (a) was wrong, this mark is still given when that length × 1.2 is worked out correctly.
Question 3: (4 marks)
This needs a calculator, so it is a Paper 2 or Paper 3 question.
A ladder 18.4 m long leans against a vertical wall. The foot of the ladder is on horizontal ground, 5.8 m from the wall.
Work out how far up the wall the ladder reaches. Give your answer correct to the nearest metre.
Answer
- The wall is vertical and the ground is horizontal, so they meet at a right angle. The ladder is the hypotenuse. Call the height up the wall h: h² + 5.8² = 18.4² (1 mark). h² = 18.4² − 5.8² is accepted too.
- h² = 338.56 − 33.64 = 304.92 (1 mark).
- h = √304.92 = 17.46... m (1 mark). If h² was wrong earlier, this mark is still given for the square root of your value.
- h = 17 m, correct to the nearest whole number (1 mark, needed for full marks).
Where marks are lost on Pythagoras' theorem questions
Both of these come from the mark schemes above.
- Not rounding as asked. In Question 3 the last mark, needed for full marks, is for 17 m, correct to the nearest whole number. The question asks for the nearest metre, so 17.46... m is a step in the working, not the final answer.
- Giving up on part (b). In Question 2, part (b) follows through from part (a): if your ramp length was wrong but you multiply it by 1.2 correctly, both marks in (b) are still given. Always finish the later parts.
Pythagoras' theorem turns up inside lots of longer questions, so it's worth getting the "which side is c?" check down to a reflex. Medly has Edexcel GCSE Mathematics courses at Foundation and Higher. Medly's free plan includes 5 marked questions, 20 AI tutor messages and 1 uploaded paper a day, with no card needed.
Which paper is Pythagoras' theorem on?
Any of the three. Edexcel's specification says the content for each tier is assessed across all three papers. Paper 1 is the non-calculator paper, and a calculator is allowed in Papers 2 and 3. Our specification guide has the papers and their dates.
The mathematics on this page does not change with the exam board. What it says about tiers, papers and the formula sheet is Edexcel's: if you sit another board, check those in your own specification.
Frequently asked questions
What is the formula for Pythagoras' theorem?
The formula is a² + b² = c², where c is the hypotenuse: the side opposite the right angle. The other two sides are a and b, in either order.
How do you find a shorter side with Pythagoras' theorem?
Subtract instead of adding: a² = c² − b², then square root. For a hypotenuse of 13 cm and a side of 5 cm, a² = 169 − 25 = 144, so a = 12 cm.
Does Pythagoras' theorem work for any triangle?
It works only for right-angled triangles. If a triangle has no right angle marked or stated, you can't assume the theorem holds for it.
Is Pythagoras' theorem on the formula sheet?
Edexcel's formula sheet prints it for both tiers, as a² + b² = c² with c the hypotenuse. You still need to know which side is c and when to subtract.
Is Pythagoras' theorem on Foundation or Higher?
Pythagoras' theorem in right-angled triangles in two-dimensional figures is in Edexcel's specification for both tiers. Statement G20 in its Foundation tier list reads "know the formulae for: Pythagoras' theorem a² + b² = c², and the trigonometric ratios, sin θ = opposite/hypotenuse, cos θ = adjacent/hypotenuse and tan θ = opposite/adjacent; apply them to find angles and lengths in right-angled triangles in two-dimensional figures". In the Higher tier list, Edexcel's specification adds "and, where possible, general triangles" and "and three" (so that the statement ends "in two and three dimensional figures") in bold type, which marks content that only Higher tier papers test.