Pythagoras Theorem
Why This Matters
Picture a ladder leaning against a wall. Its foot is 6 metres out from the wall, and its top reaches 8 metres up. How long is the ladder?
You cannot stretch a measuring tape along a ladder that is high in the air. But you can measure along the flat ground, and you can measure up the wall. From just those two numbers, there is a way to know the ladder’s length exactly — without ever touching the ladder.
That “way” is one of the oldest and most useful rules in all of mathematics. It connects the three sides of a right-angled triangle. Once you know it, you can find a hidden distance from two known ones: the length of a ramp, the diagonal of a TV screen, the straight-line distance between two points on a map, the height of a tree from its shadow and the slant of a string.
The rule was written down in India by a scholar named Baudhāyana around 800 BCE — long before the Greek thinker Pythagoras. So it is fairly called the Baudhāyana-Pythagoras theorem. By the end of this chapter you will understand why it is true, not just that it is true — and you will be able to use it with confidence.
The Big Idea
In a right-angled triangle, the square on the longest side is exactly equal to the squares on the other two sides added together. If the two shorter sides are a and b, and the longest side (the hypotenuse) is c, then a² + b² = c². This one short rule lets you find any one side of a right triangle as soon as you know the other two.
Let’s Break It Down
The right triangle and its hypotenuse
A right-angled triangle (or just “right triangle”) is a triangle with one angle equal to exactly 90° — a perfect square corner, like the corner of this page. We mark that corner with a small square.
The two sides that form the right angle are called the legs. The third side — the one opposite the right angle — has a special name: the hypotenuse. It is always the longest side of the triangle.
Before we go further, let us quickly refresh what “square of a number” and “square root” mean, since the whole chapter leans on them.
Figure 2.1 below names the three sides of a right triangle and marks the right angle.
So whenever you meet a right triangle, find the right angle first. The side facing it, across the triangle, is the hypotenuse c. The other two are the legs a and b.
In a right triangle, which side is the hypotenuse, and how do you spot it?
The hypotenuse is the side directly opposite the right angle (the 90° corner). You spot it by finding the right-angle corner first; the side that does not touch that corner is the hypotenuse. It is always the longest side of the triangle.
Baudhāyana’s clever start: doubling a square
Long ago, Baudhāyana asked a simple-sounding question while designing fire altars: how do you make a square with exactly double the area of a given square?
A first guess is to double the length of each side. But that is wrong, and it is worth seeing why. If you double each side, you do not double the area — you make it four times bigger. A 2×2 square has area 4; a 4×4 square has area 16, which is 4 times as much, not 2 times. Doubling the side multiplies the area by 2 × 2 = 4.
So how do you double the area? Baudhāyana’s beautiful answer: build the new square on the diagonal of the old one.
Here is the reason, and it is the key idea behind the whole theorem. Let’s see it in a picture first.
Look carefully. The original square is made of 2 of these triangles in each half — but let us count the whole square as built from triangles. The square on the diagonal is made of 4 of the same triangles. Four against two: the diagonal square is exactly double the area. No measuring needed — just counting equal triangles.
This is the seed of everything. It already tells us something about a special right triangle.
The isosceles right triangle: a first taste
An isosceles triangle has two equal sides. An isosceles right triangle has a right angle and its two legs equal. Take a square of side 1. A diagonal cuts it into two isosceles right triangles, each with two legs of length 1.
What is the length of the hypotenuse (the diagonal)? Call it c. The square built on that diagonal has double the area of the unit square, so its area is 2. But the area of a square of side c is c². So:
c² = 2 × (area of unit square)
c² = 2 × 1 = 2
So c = √2 (a number a little more than 1.4)
So the diagonal of a 1×1 square is √2. This number √2 is about 1.414, and its digits go on for ever without repeating — but that is a story for a later class. For now, notice what just happened: we found a side length using only areas of squares. That is the trick we are about to make general.
If you double the length of every side of a square, how many times bigger does its area become?
Four times bigger, not two. Area depends on side × side. If the side doubles, the area is multiplied by 2 × 2 = 4. (This is exactly why Baudhayana could not just double the side to double the area — he used the diagonal instead.)
The theorem: a² + b² = c²
Now the big result. It works for any right triangle, not just the equal-legged one.
Baudhāyana-Pythagoras theorem: In a right-angled triangle with legs a and b and hypotenuse c,
a² + b² = c²
In words: the square on the hypotenuse equals the sum of the squares on the two legs. Remember, “the square on a side” means a real square drawn on that side, and its area is the side length times itself.
Let us see it before we prove it. We will use the most famous right triangle of all, with sides 3, 4 and 5.
Count the cells. The square on leg 3 has 9 cells. The square on leg 4 has 16 cells. Together that is 9 + 16 = 25 cells — exactly the number of cells in the square on the hypotenuse 5, which is 5² = 25. The two small squares, added, fill the big square perfectly.
But one picture of one triangle is not a proof. Why should this work for every right triangle? Let us prove it.
Why it is true: the four-triangles proof
This proof is short, visual, and convincing. Here is the plan: take four copies of the same right triangle and fit them inside a big square in two different ways. Figure 2.4 shows the arrangement.
Follow the area count. The big square has side (a + b), so its area is (a + b)².
Inside it sit four copies of our right triangle. Each triangle has area ½ × a × b (half of base times height), so four of them have area 4 × ½ab = 2ab.
The shape left in the middle is a tilted square. Each of its sides is a hypotenuse of length c, so its area is c².
Now the leftover (the tilted square) is the big square minus the four triangles:
c² = (a + b)² − 2ab
c² = a² + 2ab + b² − 2ab (because (a + b)² = a² + 2ab + b²)
c² = a² + b²
The two +2ab and −2ab cancel out, and we are left with a² + b² = c². That holds for any a and b, so the theorem is true for every right triangle. Beautiful, isn’t it?
Finding a missing side
Once you trust a² + b² = c², you can find any one side from the other two. There are two cases.
Case 1 — you have both legs and want the hypotenuse. Add the squares of the legs, then take the square root.
A right triangle has legs of length 3 cm and 4 cm. Find the hypotenuse c.
- Write the theorem with the legs as a and b: a² + b² = c². Here a = 3 and b = 4.
- Square each leg: 3² = 9 and 4² = 16.
- Add them: 9 + 16 = 25. So c² = 25.
- Take the square root: c = √25 = 5. The hypotenuse is 5 cm.
Case 2 — you have the hypotenuse and one leg, and want the other leg. Here you must subtract. Rearrange a² + b² = c² into b² = c² − a².
A right triangle has one leg of 8 cm and a hypotenuse of 17 cm. Find the other leg.
- The hypotenuse is the longest side, so c = 17. One leg is a = 8. We want the other leg b.
- Start from a² + b² = c². Move a² to the other side: b² = c² − a².
- Put in the numbers: b² = 17² − 8² = 289 − 64 = 225.
- Take the square root: b = √225 = 15. The other leg is 15 cm.
The big thing to watch: the hypotenuse is always c, the longest side. If a problem gives you the longest side, you are in the subtract case. If it gives you the two shorter sides, you are in the add case.
You are given the hypotenuse and one leg of a right triangle. To find the other leg, do you add or subtract the squares?
Subtract. The theorem is a² + b² = c². If you know c (the hypotenuse) and one leg, rearrange to b² = c² − a² and subtract. You only add the squares when you have both legs and want the hypotenuse.
Pythagorean triples: whole-number triangles
Notice something nice about the 3, 4, 5 triangle: all three sides are whole numbers, with no fractions or square-root signs. Such a set of three whole numbers that fits a² + b² = c² is called a Pythagorean triple (Baudhāyana listed many of these, so they are also called Baudhāyana triples).
The classic ones are (3, 4, 5) and (5, 12, 13). Figure 2.5 draws both to scale and shows how to make many more.
Why does multiplying work? Take (3, 4, 5) and multiply each number by, say, 2 to get (6, 8, 10). Check it: 6² + 8² = 36 + 64 = 100 = 10². It works! The reason is that squaring a multiplied number just multiplies the square by that factor squared, and the factor cancels on both sides. So from one triple you get infinitely many.
A triple with no common factor bigger than 1 — like (3, 4, 5) or (5, 12, 13) — is called a primitive triple. The others, like (6, 8, 10), are just scaled copies. Knowing a few primitive triples by heart (3-4-5, 5-12-13, 8-15-17, 7-24-25) makes many problems instant.
The converse: a test for a right angle
So far we used the theorem forwards: “this triangle is right-angled, so a² + b² = c².” It also works backwards, and this is incredibly handy:
Converse: If the three sides of a triangle satisfy a² + b² = c² (with c the longest side), then the triangle is right-angled — and the right angle is opposite the longest side.
This gives a quick test for a right angle using only a ruler. Builders use a version of it: a rope knotted into a 3-4-5 triangle makes a perfect square corner with no protractor. Figure 2.6 shows the test passing and failing.
To use the test: square all three sides, add the squares of the two shorter sides, and see if you get the square of the longest side. Equal means right-angled; not equal means not.
A triangle has sides 9 cm, 12 cm and 15 cm. Is it a right-angled triangle?
- Find the longest side: it is 15 cm. So if there is a right angle, 15 must be the hypotenuse c, and the other two are the legs.
- Square the two shorter sides and add: 9² + 12² = 81 + 144 = 225.
- Square the longest side: 15² = 225.
- The two results match (225 = 225), so by the converse the triangle IS right-angled, with the right angle opposite the 15 cm side.
A real-life distance: the ladder
Now back to the ladder from the start of the chapter. The wall, the ground, and the ladder make a right triangle. The right angle is where the wall meets the ground. The ladder is the slanting side — the hypotenuse.
The legs are 6 m and 8 m, so:
c² = 6² + 8² = 36 + 64 = 100
c = √100 = 10 m
The ladder is 10 metres long — found from two ground-level measurements, just as promised.
This same idea finds the straight-line (“crow-flies”) distance between two points when you know how far apart they are east-west and north-south. Walk 6 km east and 8 km north, and you are exactly 10 km in a straight line from where you started. The Pythagoras theorem is the bridge between flat measurements and slant distances everywhere — screens, ramps, maps, and roofs.
Common Mistakes
Read these three slips once and you will avoid the traps that cost most students marks.
In a² + b² = c², you can put any of the three sides as c.
The letters a, b, c look interchangeable, like in other formulas, so it feels like it should not matter which side you call c.
c must always be the hypotenuse — the longest side, opposite the right angle. The two legs go in a and b. If you put a leg where c belongs, the sum comes out wrong. Always find the right angle first and make the side opposite it your c.
To find a missing leg, you add the squares of the two sides you are given.
The theorem is famous as 'add the squares', so students add every time without checking which side is missing.
You only add when both given sides are legs and the hypotenuse is missing. If the hypotenuse is one of the given sides, you must subtract: b² = c² − a². Check whether the unknown is the longest side (add) or a leg (subtract) before you start.
After getting c² = 25, the answer is c = 25.
The number 25 is sitting right there after the addition, so it is tempting to stop and call it the side length.
c² = 25 means c squared is 25, not c itself. You must take the square root to undo the square: c = √25 = 5. The side is 5, not 25. Always finish by square-rooting to get the actual length.
Quick Check
Try each one. They check the key ideas of the chapter.
In a right triangle, which side is the hypotenuse?
A right triangle has legs 5 cm and 12 cm. What is its hypotenuse?
A triangle has sides 8, 15 and 17. Is it right-angled?
If c² = 100, what is c?
Practice Problems
Try each one yourself first. Only then tap to see the full solution.
Easy
A right triangle has legs 6 cm and 8 cm. Find the hypotenuse.
Both given sides are legs, and we want the hypotenuse, so we add the squares. a² + b² = c² 6² + 8² = c² 36 + 64 = c² c² = 100 c = √100 = 10. The hypotenuse is 10 cm.
Is (7, 24, 25) a Pythagorean triple? Check using a² + b² = c².
The longest number is 25, so test it as c. Square the two smaller: 7² + 24² = 49 + 576 = 625. Square the largest: 25² = 625. Both sides give 625, so 7² + 24² = 25². Yes, (7, 24, 25) is a Pythagorean triple — it can be the sides of a right triangle.
Medium
A right triangle has a hypotenuse of 13 cm and one leg of 5 cm. Find the other leg.
Here the hypotenuse (longest side) is c = 13, and one leg is a = 5. We want the other leg b, so we subtract. Start from a² + b² = c² and rearrange: b² = c² − a². b² = 13² − 5² = 169 − 25 = 144. b = √144 = 12. The other leg is 12 cm. (This is the triple 5, 12, 13.)
Find the length of the diagonal of a square whose side is 5 cm.
A diagonal of a square cuts it into two right triangles. The two sides of the square are the legs, and the diagonal is the hypotenuse. So the legs are both 5 cm. Let the diagonal be c. c² = 5² + 5² = 25 + 25 = 50. c = √50. Now √50 is between 7 and 8 (since 7² = 49 and 8² = 64), and is about 7.07 cm. So the diagonal is √50 cm, roughly 7.07 cm.
A lotus flower stands 1 unit above the surface of a still lake. A breeze pushes its tip until it just touches the water 3 units away from where it started. How deep is the lake at that spot? (This is a classic problem from Bhāskarāchārya's Lilavati.)
Let the depth of the lake be x. The stem under water is x, and since the flower stuck out 1 unit, the full stem length is x + 1. When the breeze bends it, the stem (length x + 1) becomes the slanting hypotenuse, the depth x is the vertical leg, and the 3 units across the water is the horizontal leg. So: 3² + x² = (x + 1)² 9 + x² = x² + 2x + 1 (because (x + 1)² = x² + 2x + 1) Subtract x² from both sides: 9 = 2x + 1 2x = 8, so x = 4. The lake is 4 units deep.
Challenge
A rhombus has diagonals of length 24 units and 70 units. Find the length of each side. (Hint: the diagonals of a rhombus cross at right angles and cut each other in half.)
In a rhombus the two diagonals cross at the centre at a right angle, and each diagonal is split into two equal halves there. So half of the first diagonal is 24 ÷ 2 = 12, and half of the second is 70 ÷ 2 = 35. These two halves are the legs of a right triangle, and a side of the rhombus is the hypotenuse. side² = 12² + 35² = 144 + 1225 = 1369. side = √1369 = 37. Each side of the rhombus is 37 units. (12, 35, 37 is a Pythagorean triple.)
Show that the hypotenuse must be the longest side of any right triangle.
Let the legs be a and b and the hypotenuse be c, with a² + b² = c². Since a and b are real lengths, both a² and b² are positive numbers (bigger than 0). So c² = a² + b² is bigger than a² on its own, and also bigger than b² on its own. If c² is bigger than a², then c is bigger than a. In the same way, c is bigger than b. So c is longer than each leg. The hypotenuse is the longest side of every right triangle. (This is why, in the converse test, we always match the longest side with c.)
Summary
- A right-angled triangle has one 90° angle. The two sides forming it are the legs (a and b); the side opposite it is the hypotenuse (c), always the longest side.
- The Baudhāyana-Pythagoras theorem says a² + b² = c²: the square on the hypotenuse equals the sum of the squares on the two legs.
- It can be proved by fitting four copies of the same right triangle into a square of side (a + b); the leftover middle square has area c², which works out to a² + b².
- To find a side: if both legs are known, add the squares and square-root for the hypotenuse; if the hypotenuse and one leg are known, subtract the squares for the other leg.
- A Pythagorean (Baudhāyana) triple is three whole numbers with a² + b² = c² — like (3, 4, 5), (5, 12, 13), (8, 15, 17). Multiplying a triple by any whole number gives another triple, so there are infinitely many.
- The converse is a test: if a² + b² = c² holds (c the longest side), the triangle is right-angled. Builders use a 3-4-5 rope to make a perfect square corner.
- The theorem turns flat measurements into slant distances — ladders, diagonals, screens, and straight-line (“crow-flies”) distances on a map.
What’s Next
You can now find any side of a right triangle, test whether an angle is a right angle, and you have seen a real proof of why the theorem is true — not just memorised it. That habit of asking “but why?” is what real mathematics is about.
Next we return to comparing quantities and scaling them up and down. The next chapter is Proportional Reasoning - 2, where you will use ratios and proportions to solve everyday problems about speed, price, and sharing. See you there!
Frequently Asked Questions
What is the Pythagoras theorem in simple words?
In any right-angled triangle, the square on the longest side equals the sum of the squares on the other two sides. If the two shorter sides are a and b, and the longest side (the hypotenuse) is c, then a squared plus b squared equals c squared. It lets you find one side when you know the other two.
Why is it also called the Baudhayana theorem?
An Indian scholar named Baudhayana stated this rule in his Sulba-Sutra around 800 BCE, hundreds of years before the Greek thinker Pythagoras. Baudhayana was the first in history to write it in a clear, general form, so the rule is fairly called the Baudhayana-Pythagoras theorem.
What is the hypotenuse of a right triangle?
The hypotenuse is the side directly opposite the right angle. It is always the longest side of a right-angled triangle. In the rule a squared plus b squared equals c squared, the hypotenuse is c, the side whose square equals the sum of the other two squares.
What is a Pythagorean triple?
A Pythagorean triple is a set of three whole numbers a, b and c that fit a squared plus b squared equals c squared, so they can be the sides of a right triangle with no fractions. The most famous is 3, 4, 5. Others are 5, 12, 13 and 8, 15, 17. Multiplying every number in a triple by the same whole number gives another triple.
How do you check if a triangle is right-angled?
Use the converse of the theorem. Square each of the three sides. Add the squares of the two shorter sides. If that sum equals the square of the longest side, the triangle is right-angled. If it does not, the triangle has no right angle.