Maths dictionary

Pythagoras' theorem

By Viktor Lassen5 min readUpdated 3 September 2026

Pythagoras' theorem is a kind of formula that says how the side lengths in a right-angled triangle are related. Here is what a² + b² = c² means, with the sides named and one worked example.

Pythagoras' theorem is a kind of formula that says something about how the side lengths in a right-angled triangle are related to each other. In a right-angled triangle we have, of course, three side lengths:

A right-angled triangle with the sides a, b and c. The right angle sits between a and b, and c is the hypotenuse

We typically call the sides aa, bb and cc. That is the whole setup. Three sides, one right angle, and a formula that ties the three lengths together.

The two shorter sides and the hypotenuse

The three sides have names. The two sides (aa and bb) that sit closest to the right angle are the shorter sides of the triangle, and the long side, the one that sits opposite the right angle, is what we call the hypotenuse.

It is worth getting that last part exactly right. The hypotenuse is the side opposite the right angle. It happens to be the longest side as well, but the way you find it in a drawing is to look at the right angle and then look across the triangle to the side that does not touch it.

What the theorem says

Pythagoras' theorem then says that if we take the length of one shorter side squared (a2a^2) and add the length of the other shorter side squared (b2b^2), that gives us the length of the hypotenuse squared (c2c^2). It looks like this:

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

Squared just means the number multiplied by itself. 33 squared is the same as 3×33 \times 3. (If squares and square roots do not quite make sense yet, it is a good idea to read about indices and roots first.)

So we can use Pythagoras' theorem to find one of the side lengths in a right-angled triangle, if we have the other two. That is what the theorem is for. It is not a deep fact to admire, it is a tool: two sides in, the third side out.

An 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, and we have to remember to do it on both sides:

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

25=c\sqrt{25} = c

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. The full walkthrough of this kind of problem is in the guide on finding the hypotenuse.

When you need a shorter side instead

Sometimes we are not asked to find cc, but aa or bb instead. The formula is built to find cc, because cc stands alone on one side. So we have to move things around a bit so it is bb that stands alone.

If we look at the formula as an equation, we can get bb on its own by simply subtracting a2a^2 on both sides:

b2=c2−a2b^2 = c^2 - a^2

Smart, isn't it? Suddenly we have Pythagoras' theorem again, just rearranged for bb instead. All we did was get bb on its own, exactly like we get xx on its own in an equation. From here it is the same as before: insert the values, and take the square root at the end. That version gets its own guide about finding a shorter side.

Common misunderstandings

Pythagoras' theorem is short, so the mistakes people make with it are short too. They are almost always one of these:

  • "The hypotenuse is just the longest side." It is the longest side, but that is not how you should find it. The hypotenuse is the side that sits opposite the right angle. Look at the right angle first, then across the triangle.
  • "I can use Pythagoras' theorem on any triangle." No. It only works in right-angled triangles. That is why there is a right angle drawn in every figure here. For other triangles we use the sine rule and the cosine rule from trigonometry.
  • "I got 25, so c is 25." No. The formula gives you c2c^2. When c2=25c^2 = 25, you still have to take the square root to get cc itself, which is 55. This is the step people most often forget, so it is worth slowing down at exactly that line.
  • "Why is everything squared?" Because that is what the theorem says: it is the squared lengths that add up, not the lengths themselves. 3+43 + 4 is 77, but the hypotenuse is 55. If the squaring itself feels unclear, read about indices and roots and come back.

Guides on this topic

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