Skip to content

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:

a2+b2=c2a^2 + b^2 = c^2

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.

c2=62+82=36+64=100  ⇒  c=100=10 cmc^2 = 6^2 + 8^2 = 36 + 64 = 100 \;\Rightarrow\; c = \sqrt{100} = 10 \text{ cm}

With sides 5 cm and 7 cm: c2=25+49=74c^2 = 25 + 49 = 74, so c=74=8.60c = \sqrt{74} = 8.60 cm (to 2 d.p.). Leave the answer as 74\sqrt{74} 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.

b2=132−52=169−25=144  ⇒  b=12 cmb^2 = 13^2 - 5^2 = 169 - 25 = 144 \;\Rightarrow\; b = 12 \text{ cm}

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 a2+b2=c2a^2 + b^2 = c^2 for the longest side cc, the angle opposite cc is a right angle; if not, it isn't.

A triangle has sides 7, 9 and 11. 72+92=49+81=1307^2 + 9^2 = 49 + 81 = 130, but 112=12111^2 = 121. They're not equal, so the triangle is not right-angled (the largest angle is slightly less than 90° because 130>121130 > 121).

Distance between two points

The distance between (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) is the hypotenuse of a triangle whose legs are the differences in xx and yy:

d=(x2−x1)2+(y2−y1)2d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}

Between (1,2)(1, 2) and (7,10)(7, 10): d=62+82=10d = \sqrt{6^2 + 8^2} = 10. 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:

d=l2+w2+h2d = \sqrt{l^2 + w^2 + h^2}

A box measures 3 cm by 4 cm by 12 cm. The diagonal across the base is 9+16=5\sqrt{9 + 16} = 5 cm; the diagonal from corner to opposite corner is 52+122=13\sqrt{5^2 + 12^2} = 13 cm. Checking with the 3D formula: 9+16+144=169=13\sqrt{9 + 16 + 144} = \sqrt{169} = 13 cm. ✓

Draw the right-angled triangle you're using each time; 3D questions are mostly about finding it.

Practice questions

  1. Shorter sides 9 cm and 12 cm. Find the hypotenuse.
  2. Hypotenuse 25 cm, one side 7 cm. Find the other side.
  3. Is a triangle with sides 20, 21 and 29 right-angled?
  4. Find the distance between (−3,1)(-3, 1) and (2,13)(2, 13).
  5. 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: 400+441=841=292400 + 441 = 841 = 29^2. 4. 25+144=13\sqrt{25 + 144} = 13. 5. 25−1.96=23.04=4.80\sqrt{25 - 1.96} = \sqrt{23.04} = 4.80 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

  1. GCSE mathematics: subject content and assessment objectives. Department for Education.
  2. Cambridge IGCSE Mathematics 0580 syllabus. Cambridge International.