Pythagorean theorem formula explained with an example
The formula a² + b² = c² looks like a piece of code, but each part of it describes something you can draw. Take a right-angled triangle and build a square on each of its three sides. The theorem says the area of the square on the hypotenuse is exactly equal to the areas of the two smaller squares added together. That is the whole claim, and once you can picture those three squares, the symbols stop being mysterious.
What the letters stand for
The letters are just labels for the three sides. By agreement, c always means the hypotenuse — the side opposite the right angle, and the longest side of the triangle. The letters a and b mean the two shorter sides, the ones that meet at the right angle. There is no rule about which short side is a and which is b; swapping them changes nothing, because a² + b² is the same total either way.
The small 2 after each letter means “multiply the number by itself”. So a² for a side of 5 is 5 × 5 = 25, and that 25 is also the area of a square with sides of 5. This is why the theorem is about squares: each squared side is the area of the square built on that side, and the theorem says the two smaller areas add up to the largest one.
A full example: 5, 12, 13
Take legs of 5 and 12. Square them: 5² = 25 and 12² = 144. Add the squares: 25 + 144 = 169. Take the square root: √169 = 13. So the hypotenuse is 13, and the triangle’s area is (5 × 12) ÷ 2 = 30 square units. Check it the other way: 13² = 169, and 25 + 144 = 169, so both sides agree.
The same formula runs backwards when a shorter side is missing. If the hypotenuse is 13 and one leg is 5, the missing leg is √(13² − 5²) = √(169 − 25) = √144 = 12. Notice the subtraction: you are taking the smaller square away from the largest one, which is why the hypotenuse must be the longest side. If someone claims a hypotenuse of 12 with a leg of 13, the subtraction gives 144 − 169 = −25, and no real length has a negative square — the triangle simply cannot exist.
Hypotenuse or shorter side: reading the question first
The formula a² + b² = c² is usually written with the hypotenuse as the unknown, but the same equation answers both kinds of question. If the hypotenuse is missing, you add the two squares, as the 5, 12, 13 example does. If a shorter side is missing, you rearrange the same equation instead of learning a new one: a² = c² − b², so the missing leg is √(c² − b²). The question tells you which version you need — “find the hypotenuse” means add, “find the other side” means subtract — and reading it carefully is half the work.
Take legs of 9 and 40. Square them: 9² = 81 and 40² = 1,600. Add: 81 + 1,600 = 1,681, and √1,681 = 41, so the hypotenuse is 41. Now turn it round: a hypotenuse of 41 and a known leg of 9 give the other leg as √(41² − 9²) = √(1,681 − 81) = √1,600 = 40. The area check works for both directions: the triangle’s area is (9 × 40) ÷ 2 = 180 square units, whichever side you were solving for. One formula, two directions — the only choice is whether the missing side is the longest one.
What to check before you trust the answer
The squares picture from the start of this post gives you a check that needs no calculator at all. For legs of 5 and 12, the two smaller squares have areas 25 and 144, and they must add to the largest square: 25 + 144 = 169. So if someone claims the hypotenuse is 12, square it — 144 — and compare: 144 is not 169, so the claim is wrong before any square root is taken. The check works the other way too: a claimed hypotenuse of 13 squares to 169, which matches exactly.
Two more checks cost nothing. The hypotenuse must be the longest side, so any answer shorter than a leg is wrong on its face. And it must be shorter than the two legs added together — for 5 and 12, the hypotenuse has to sit between 12 and 17, and 13 does. An answer of 18 for the same triangle fails that test, because no straight line across a corner can be longer than going round the two sides. Three checks, ten seconds, and a wrong answer has nowhere to hide.
Frequently asked questions
Why do we square the sides at all?
Because the theorem is a statement about areas, not lengths. Squaring turns each side into the area of the square on that side, and those areas are the things that add up. Adding the lengths themselves — 3 + 4 = 7 — gives a number with no geometric meaning here.
Does the formula work for any triangle?
No. It works only for right-angled triangles, where one angle is exactly 90 degrees. If the angle is 80 or 100 degrees, the squares do not add up this way, and the answer will be wrong even with perfect arithmetic.
What do a, b and c stand for?
The three sides: c is always the hypotenuse, the side opposite the right angle, and a and b are the two shorter sides. Which short side is a and which is b does not matter.
More guides on the Pythagorean Theorem Calculator
- How to calculate Pythagorean theorem step by step
- Pythagorean theorem: a worked example from start to finish
- Pythagorean theorem mistakes most people make
- Pythagorean theorem for beginners: no maths background needed
- Pythagorean theorem FAQ: the questions everyone asks
- Pythagorean theorem on mobile: doing it without an app
- Pythagorean theorem shortcut method for quick answers
- Pythagorean theorem with units: converting inputs correctly
- Pythagorean theorem history: where the formula comes from
Enter two sides of a right-angled triangle to find the missing side, with the area shown too.