The Pythagorean theorem
In a right triangle a² + b² = c². See why it works, how to find the hypotenuse and a leg, what Pythagorean triples are, and how the converse lets you check whether a corner really is square.
Before you start
This topic builds on earlier ideas. Before you start, it's worth working through the lessons below — they'll make everything click:
- AnglesAngles are measured in degrees: acute below 90°, right exactly 90°, obtuse above it. Meet the kinds of angle, complementary and supplementary pairs, and the single most useful rule in plane geometry — the angles of a triangle always add up to 180°.
- RootsA root is the inverse of raising to a power. Learn square and cube roots, arithmetic with roots, taking a factor out of a radical, and rationalising a denominator.
All formulas
The Pythagorean theorem
a and b are the legs, c is the hypotenuse
The hypotenuse
the longest side, opposite the right angle
A leg
the theorem the other way round — subtraction, not addition
Diagonal of a square
the theorem applied to a triangle with legs a and a
The 3-4-5 triple
the next ones: 5-12-13, 8-15-17, 7-24-25
The Pythagorean theorem ties together the three sides of a right triangle — and only that kind. It is what lets you compute a length nobody can measure directly: the diagonal of a screen, the height a ladder reaches up a wall, a distance as the crow flies.
Naming the sides
- The legs and — the two sides forming the right angle.
- The hypotenuse — the side opposite the right angle, always the longest.
Before substituting anything, work out which side is the hypotenuse. You can spot it without arithmetic: it is the one that does not touch the right-angle mark.
The theorem
In words: the squares on the two legs add up to the square on the hypotenuse.
Why? The square built on side has area , the square on side has area . The theorem says those two squares together have exactly the area of the square built on the hypotenuse. It is a statement about areas, not about lengths alone — which is why second powers appear everywhere in it.
Finding the hypotenuse
Finding a leg
The theorem works in reverse too. Given the hypotenuse and one leg, the other comes from subtraction:
Pythagorean triples
Some triples of whole numbers satisfy the theorem exactly. They are worth memorising, because problems reach for them most often:
| 3 | 4 | 5 |
| 5 | 12 | 13 |
| 8 | 15 | 17 |
| 7 | 24 | 25 |
| 9 | 40 | 41 |
Each one scales: since works, so do and .
Outside those cases the answer usually is not a whole number. For legs of and we get — and that is a perfectly normal answer. The form is exact, is its approximation.
The converse
It also holds the other way round: if the sides of a triangle satisfy , then that triangle is right-angled.
So a right angle can be checked without a protractor — just measure the three sides. That is the basis of the builder's 3-4-5 method: mark units along one wall, along the other, and if the distance between the marks is exactly , the corner is square.
An application: the diagonal of a rectangle
The diagonal splits a rectangle into two right triangles whose legs are its sides.
The special case is a square, where both legs are equal:
For a side of the diagonal is .
The answer is a length, so it is given in centimetres or metres. If your data is in inches or feet — and screen diagonals are quoted in inches — convert it first with our length converter.
Exercises
Type the answer together with its unit, e.g. 5 cm. Every question is built on a Pythagorean triple, so the answers are whole numbers.
Practice
Work through a set of exercises — they get harder as you go. At the end you'll see your score and the mistakes worth reviewing.
Common mistakes
- Using the theorem in a triangle with no right angle — holds only in a right triangle.
- Mistaking the hypotenuse for a leg — is always the side opposite the right angle, and always the longest.
- Adding instead of subtracting when finding a leg — that one is , not .
- Forgetting the square root — is not the answer yet; the answer is .
- — the root of a sum is not the sum of the roots; , not .
- Expecting a whole number every time — outside the Pythagorean triples the answer is irrational, and that is correct.
Formula card
Topic: The Pythagorean theorem
The Pythagorean theorem
a and b are the legs, c is the hypotenuse
The hypotenuse
the longest side, opposite the right angle
A leg
the theorem the other way round — subtraction, not addition
Diagonal of a square
the theorem applied to a triangle with legs a and a
The 3-4-5 triple
the next ones: 5-12-13, 8-15-17, 7-24-25
