Pythagoras' theorem: finding the hypotenuse, a shorter side and distances
TutorAura guide · Updated
Pythagoras' theorem says that in a right-angled triangle, the square of the longest side (the hypotenuse) equals the sum of the squares of the other two:
The hypotenuse is always opposite the right angle. The theorem lets you find any side of a right-angled triangle from the other two, which is why it turns up in distances between points, diagonals of boxes, ladders against walls and the roots of trigonometry.
Key takeaways
- a² + b² = c², where c is the hypotenuse (opposite the right angle).
- Finding the hypotenuse: square, add, square root.
- Finding a shorter side: square, subtract, square root.
- The theorem only works for right-angled triangles; use it backwards to test for a right angle.
Finding the hypotenuse
A right-angled triangle has shorter sides 6 cm and 8 cm. Find the hypotenuse.
With sides 5 cm and 7 cm: , so cm (to 2 d.p.). Leave the answer as if the question asks for an exact value.
Finding a shorter side
The hypotenuse is 13 cm and one shorter side is 5 cm. Find the other side.
Subtract when finding a shorter side. The hypotenuse must be the longest side, so if your answer comes out longer than the hypotenuse, you've added instead of subtracting.
Pythagorean triples
Some whole-number sets fit the theorem exactly and are worth recognising: 3, 4, 5; 5, 12, 13; 8, 15, 17; 7, 24, 25. Multiples work too: 6, 8, 10 and 9, 12, 15 are both scaled from 3, 4, 5. Spotting a triple saves the arithmetic and tells you the answer is exact.
Is the triangle right-angled?
Use the theorem backwards. If for the longest side , the angle opposite is a right angle; if not, it isn't.
A triangle has sides 7, 9 and 11. , but . They're not equal, so the triangle is not right-angled (the largest angle is slightly less than 90° because ).
Distance between two points
The distance between and is the hypotenuse of a triangle whose legs are the differences in and :
Between and : . Our midpoint and distance guide covers this with more examples.
Pythagoras in 3D
To find the long diagonal of a cuboid, use the theorem twice, or the 3D version in one go:
A box measures 3 cm by 4 cm by 12 cm. The diagonal across the base is cm; the diagonal from corner to opposite corner is cm. Checking with the 3D formula: cm. ✓
Draw the right-angled triangle you're using each time; 3D questions are mostly about finding it.
Practice questions
- Shorter sides 9 cm and 12 cm. Find the hypotenuse.
- Hypotenuse 25 cm, one side 7 cm. Find the other side.
- Is a triangle with sides 20, 21 and 29 right-angled?
- Find the distance between and .
- A 5 m ladder leans against a wall with its foot 1.4 m from the base. How high up the wall does it reach, to 2 d.p.?
Answers: 1. 15 cm. 2. 24 cm. 3. Yes: . 4. . 5. m.
More practice in our Pythagoras questions, or check working with the Pythagoras calculator.
Frequently asked questions
Which side is the hypotenuse?
The longest side, always opposite the right angle. In a² + b² = c², it's c.
Do I add or subtract?
Add the squares to find the hypotenuse; subtract (hypotenuse squared minus the known side squared) to find a shorter side.
Does Pythagoras work for any triangle?
No, only right-angled triangles. For other triangles you need the sine rule or the cosine rule.
Sources
- GCSE mathematics: subject content and assessment objectives. Department for Education.
- Cambridge IGCSE Mathematics 0580 syllabus. Cambridge International.
Keep reading
Pythagoras' theorem questions and answers
8 GCSE and IGCSE questions with worked answers, checked as you type.
Pythagoras theorem calculator: find the missing side
The missing side of a right-angled triangle, with exact surds, decimals and the working.
Trigonometry with SOHCAHTOA: finding sides and angles in right-angled triangles
Labelling opposite, adjacent and hypotenuse, choosing the ratio, finding sides and angles, and the exact values.
Midpoint and distance formulas: coordinates, gradients and line segments
The midpoint formula, the distance formula from Pythagoras, finding a missing endpoint, and gradients.