Guide

Pythagoras' theorem: finding the hypotenuse

By Viktor Lassen4 min readUpdated 3 September 2026

When you know the two shorter sides of a right-angled triangle, Pythagoras' theorem gives you the hypotenuse. Insert the values, add the squares, and remember the square root at the end.

With Pythagoras' theorem we can find one of the side lengths in a right-angled triangle, if we have the other two. In this guide we have the two shorter sides and want the long side, the hypotenuse. The formula is built for exactly this case, so all we have to do is insert our values. The one place people slip is the very last step, where a square root has to be taken.

When do I use this?

You use this when you have a right-angled triangle, you know the two sides that sit closest to the right angle, and you want the side opposite the right angle. That side is the hypotenuse, and in the formula it is cc:

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

If the triangle does not have a right angle, this does not apply. And if it is one of the shorter sides you are missing, the formula has to be turned around first, which is its own guide about finding a shorter side. What the three letters mean is explained in Pythagoras' theorem.

The procedure

  1. Insert the two shorter sides in the formula in place of aa and bb.
  2. Work out the two squares. A number squared is just the number multiplied by itself.
  3. Add them. Now you have c2c^2.
  4. Take the square root on both sides, so you get cc and not c2c^2.
  5. Work out the square root. That is the hypotenuse.

Worked example

Let's take an example:

A right-angled triangle where one shorter side is 3 and the other is 4. What is c?

Here we have a right-angled triangle where one shorter side is 33 and the other is 44. But what is cc?

Here we can use Pythagoras' theorem. All we have to do is insert our values in the formula:

32+42=c23^2 + 4^2 = c^2

33 squared is, after all, the same as 3×33 \times 3, which is 99, and 44 squared is just 4×44 \times 4, which is 1616. So:

9+16=c29 + 16 = c^2

99 plus 1616 is 2525:

25=c225 = c^2

Here we need to pay attention to something. We have got c2c^2 to be 2525, and not just cc. So we have to remove this squared, because we want cc and not c2c^2. We do that by taking the square root:

25=c2\sqrt{25} = \sqrt{c^2}

25=c\sqrt{25} = c

We have to remember to do it on both sides. (If this thing with the square root did not quite make sense, it is a good idea to read the guide on square roots and cube roots.) Now we just have to work out the square root of 2525, which is 55. So:

5=c5 = c

So the hypotenuse, the last side length in the triangle, is 55.

We can check that it fits: 55 is longer than both 33 and 44, and the hypotenuse is always the long side. If the number you get is shorter than one of the sides you started with, something has gone wrong along the way.

Common mistakes

  • Stopping at 2525. 9+16=259 + 16 = 25 is c2c^2, not cc. The hypotenuse is 25=5\sqrt{25} = 5. This is the step to slow down at: when you see $c^2 = $ something, the very next line is a square root on both sides.
  • Adding the sides instead of the squares. 3+4=73 + 4 = 7, but the hypotenuse is 55. It is the squared side lengths that add up. Insert the values, square them, and only then add.
  • Using the formula in a triangle without a right angle. Pythagoras' theorem only works in right-angled triangles. For other triangles you need the sine rule or the cosine rule from trigonometry.
  • Putting the hypotenuse in as aa or bb. cc is always the side opposite the right angle. If that is the side you already know, you are not finding the hypotenuse, you are finding a shorter side, and the formula has to be rearranged first.

Frequently asked questions

Read next

Want to get good at maths?

Mathara explains every topic step by step with videos, exercises and personal feedback.

👉 Get started for free