The Pythagorean Theorem

Learning goals

  • Identify the legs and the hypotenuse of a right triangle from where its right angle is
  • Explain why a2+b2=c2a^2 + b^2 = c^2 by rearranging four copies of the triangle inside one square
  • Find the hypotenuse from the two legs by adding their squares and taking the square root
  • Work out a missing leg by subtracting squares, keeping the root exact when it is not whole
  • Apply the theorem to real lengths such as ladders, diagonals and square corners

Right triangles and their sides

A right triangle is a triangle with a right angle, a square corner of exactly 90∘90^\circ like the ones you met in the lesson on angles. Its three sides do different jobs, so they get different names. The two sides that form the right angle are the legs. The third side, the one across from the right angle, is the hypotenuse. It is the only side that does not touch the right angle, which is the quickest way to find it whichever way the triangle is turned.

The legs and the hypotenuse of a right triangleA right triangle whose right angle sits at the bottom-left corner. The horizontal bottom side is leg a and the vertical left side is leg b; both touch the right angle. The slanted side running from the top of leg b down to the right end of leg a is the hypotenuse c, which does not touch the right angle.leg aleg bhypotenuse c
The two legs meet at the right angle. The hypotenuse is the side across from it, the one side that does not touch the square corner.

It is usual to call the legs aa and bb and the hypotenuse cc. The letters are only a habit. What matters is the position: cc always stands for the side across from the right angle. Which leg you call aa and which you call bb makes no difference to anything below.

One more fact about the hypotenuse will turn out to be true: it is always the longest of the three sides. That is not obvious from a sketch, so it waits until the rule below can prove it.

Check your understanding

Triangle PQRPQR has its right angle at QQ. Which side is the hypotenuse?

Answer choices

Squares on the three sides

Take the right triangle with legs 33 and 44 units and a hypotenuse of 55 units. Build a square outward on each side, and rule each square into unit squares so you can count its area.

The squares on the legs add up to the square on the hypotenuseThe right angle of the triangle is at the lower left of the triangle. To its left is a 3 by 3 square of unit squares labeled 9. Below it is a 4 by 4 square of unit squares labeled 16. On the slanted side, tilted to match it, is a 5 by 5 square of unit squares labeled 25. To the right a note reads 9 plus 16 equals 25.916259 + 16 = 25
A right triangle with legs 3 and 4 and hypotenuse 5, with a square drawn on each side. The squares on the legs hold 9 and 16 unit squares, and the tilted square on the hypotenuse holds 25.

The square on the leg of length 33 holds 32=93^2 = 9 unit squares, and the square on the leg of length 44 holds 42=164^2 = 16. The tilted square on the hypotenuse holds 52=255^2 = 25. Now notice how those three numbers fit together:

9+16=25.9 + 16 = 25.

The two squares on the legs, put together, have exactly the area of the square on the hypotenuse. The next section shows that this happens in every right triangle, not only in this one.

The right angle is not optional. Try the same sum on a triangle with no right angle, such as one whose three sides are all 22 units long. It has no legs at all, but suppose you squared two of its sides and added anyway. You would get 22+22=82^2 + 2^2 = 8, while the third side squared is only 22=42^2 = 4. Without a right angle the sum can fail, so everything below is about right triangles.

Why the squares always balance

Counting unit squares for one triangle proves nothing about the next. The argument below works for every right triangle at once.

The figure shows a right triangle with a short leg aa and a long leg bb, drawn in the ratio 55 to 1212, and the same triangle completed to an aa by bb rectangle. Its other two angles are marked xx (at the far end of leg aa) and yy (at the far end of leg bb).

The other two angles of a right triangle add to 90 degreesA rectangle 5 units wide and 12 units tall, with corners at the top left, top right, bottom right and bottom left. The diagonal runs from the top-left corner to the bottom-right corner. The triangle under it is shaded and has its right angle at the bottom left, marked with a small square. The short leg a runs along the bottom and the long leg b up the left side. The triangle’s angle at the bottom right is marked x. At the top-left corner, the angle between the top side and the diagonal is also marked x, and the angle between the diagonal and the left side, which is the triangle’s own angle there, is marked y.xxyab
The hypotenuse is a diagonal of an a by b rectangle. It crosses the parallel top and bottom sides, so the two angles marked x are equal. At the top-left corner, x and y together fill a right angle.

The second figure shows the big square that the proof fills in two different ways. Keep both figures in view.

One square filled two ways proves the Pythagorean theoremLeft: a square whose sides are each split into a shorter piece a and a longer piece b, going round in one direction. Joining the split points cuts off four copies of the right triangle in the corners and leaves a tilted square in the middle, shaded and labeled c squared. Right: an identical square cut by one vertical and one horizontal line into a small square labeled a squared at the bottom left, a large square labeled b squared at the top right, and two rectangles, each split by a diagonal into two copies of the triangle. The two shaded squares on the right are dashed.c²ababababa²b²abab
Two squares of side a + b, each holding four copies of the right triangle. On the left the triangles leave the square on the hypotenuse, of area c squared. On the right they leave the squares on the two legs, of areas a squared and b squared.

Why a2+b2=c2a^2 + b^2 = c^2 in every right triangle#

Start with the angles, and first with numbers. Suppose the triangle’s angle at the bottom right is x=60∘x = 60^\circ. The top and bottom sides of the rectangle are parallel, and the hypotenuse runs across both of them, so it is a transversal of two parallel lines. Its alternate interior angles are therefore equal, so the angle it makes with the top side is 60∘60^\circ too. At the top-left corner that 60∘60^\circ and the triangle’s angle yy sit side by side and fill the rectangle’s right angle, so y=90∘−60∘=30∘y = 90^\circ - 60^\circ = 30^\circ. Then x+y=60∘+30∘=90∘x + y = 60^\circ + 30^\circ = 90^\circ.

Nothing depended on 60∘60^\circ. Whatever xx is, the angle beside yy at the top-left corner is also xx, and the two pieces still fill the right angle, so x+y=90∘x + y = 90^\circ. The two angles of a right triangle other than the right angle are complementary, so each of them is acute.

Now the areas, first with numbers. Take the right triangle with legs a=5a = 5 and b=12b = 12. Each copy of it is half of a 55 by 1212 rectangle, so its area is 12×5×12=30\tfrac12 \times 5 \times 12 = 30. Draw a big square with sides 5+12=175 + 12 = 17, so its area is 172=28917^2 = 289. Fill it in two different ways.

In the first way, mark each side of the big square into a piece of 55 and a piece of 1212. Go round in the same direction each time, then join the marks. That cuts off a piece in each corner with legs 55 and 1212 at a right angle, which is a copy of the triangle. In the middle it leaves a tilted shape whose four sides are hypotenuses. Each corner of that shape is a right angle. At a mark, two triangles meet. One has its leg of 55 ending there, so it brings its angle xx. The other has its leg of 1212 ending there, so it brings its angle yy. Those two angles and the shape’s corner sit side by side along the straight side of the big square. The three angles make a straight angle, so the corner is 180∘−(x+y)=180∘−90∘=90∘180^\circ - (x + y) = 180^\circ - 90^\circ = 90^\circ. A shape with four equal sides and four right angles is a square, so the middle is the square on the hypotenuse. Its area is what the triangles leave:

289−4×30=289−120=169.289 - 4 \times 30 = 289 - 120 = 169.

In the second way, cut the big square along a line 55 from the left and a line 55 from the bottom. That gives a 55 by 55 square, a 1212 by 1212 square, and two 55 by 1212 rectangles. Each rectangle splits along its diagonal into two copies of the triangle, so the four triangles are used up again. What they leave this time is the two squares on the legs:

289−120=25+144=169.289 - 120 = 25 + 144 = 169.

Both ways start from the same big square and take away the same four triangles, so what remains must have the same area. The square on the hypotenuse is 169169, which is 13213^2, and the squares on the legs total 52+122=1695^2 + 12^2 = 169 as well. So this triangle’s hypotenuse is 1313.

Nothing in the argument used the numbers 55 and 1212, or needed one leg to be longer than the other. For legs aa and bb and hypotenuse cc, the big square has side a+ba + b and each triangle has area 12ab\tfrac12 ab. The first filling leaves the square on the hypotenuse, of area c2c^2. The second leaves the squares on the legs, of area a2+b2a^2 + b^2. Equal leftovers from equal starts give

a2+b2=c2.a^2 + b^2 = c^2.

The right angle did all the work. It made x+y=90∘x + y = 90^\circ, so the middle shape was a square; it made each corner piece a copy of the triangle; and it made each triangle exactly half of a rectangle.

That result is the Pythagorean theorem: in a right triangle with legs aa and bb and hypotenuse cc,

a2+b2=c2.a^2 + b^2 = c^2.

In words, the square of the hypotenuse equals the sum of the squares of the two legs. Use it once you know the triangle has a right angle.

It also settles the claim from the first section. For legs 55 and 1212, the hypotenuse’s square is 169=25+144169 = 25 + 144. So 169169 is more than 144144 and more than 2525, and a bigger number has a bigger square root, so 1313 is longer than 1212 and longer than 55. In general, c2c^2 is a2a^2 with b2b^2 added on, and b2b^2 is more than zero because bb is a length greater than zero. So c2c^2 is bigger than a2a^2, and cc is longer than aa. The same reasoning shows cc is longer than bb. The hypotenuse is always the longest side of a right triangle.

Check your understanding

Four copies of a right triangle with legs 11 and 33 are placed in the corners of a square with sides 1+3=41 + 3 = 4, exactly as in the first filling. What is the area of the tilted square left in the middle?

Answer choices

Finding the hypotenuse

When you know both legs, the theorem hands you c2c^2, and one square root finishes the job. Square each leg, add the two squares, and take the square root of the total. Only the non-negative root counts, because a length cannot be negative, which is exactly what the radical sign gives.

Worked example 1 Legs of 88 cm and 1515 cm

A right triangle has legs of 88 cm and 1515 cm. Find its hypotenuse.

Put the legs in for aa and bb:

c2=82+152=64+225=289.c^2 = 8^2 + 15^2 = 64 + 225 = 289.

So cc is the number whose square is 289289. Since 17×17=28917 \times 17 = 289,

c=289=17 cm.c = \sqrt{289} = 17 \text{ cm}.

Check it against the section above: 1717 is longer than both legs, as a hypotenuse must be. Notice too that 1717 is not 8+15=238 + 15 = 23. The theorem adds squares, not sides.

Most pairs of whole-number legs do not give a perfect square. When the sum of their squares is a whole number that is not a perfect square, the hypotenuse is irrational. You leave it as an exact square root, simplified the way you learned with square roots.

Worked example 2 Legs of 44 m and 66 m

A right triangle has legs of 44 m and 66 m. Find the exact length of its hypotenuse, and then about how long it is.

Add the squares of the legs:

c2=42+62=16+36=52.c^2 = 4^2 + 6^2 = 16 + 36 = 52.

So c=52c = \sqrt{52}. The number 5252 is not a perfect square, but it has the perfect-square factor 44, since 52=4×1352 = 4 \times 13:

c=4×13=213 m.c = \sqrt{4 \times 13} = 2\sqrt{13} \text{ m}.

That is the exact answer. To estimate it, trap 5252 between perfect squares: 49<52<6449 < 52 < 64, so cc is between 77 and 88, and close to 77. To round to the nearest tenth, square 7.27.2 and the halfway value 7.257.25: 7.22=51.847.2^2 = 51.84, which is less than 5252, and 7.252=52.56257.25^2 = 52.5625, which is more. So 52\sqrt{52} lies between 7.27.2 and 7.257.25, and the hypotenuse is about 7.27.2 m. The rounded value gets an “about”, because 7.27.2 squared is not quite 5252.

Check your understanding

A right triangle has legs of 1212 cm and 1616 cm. How long is its hypotenuse?

Answer choices

Finding a missing leg

The same equation works backward. Take a right triangle with a hypotenuse of 1010 and one leg of 66. The theorem says

62+b2=102,that is36+b2=100.6^2 + b^2 = 10^2, \quad\text{that is}\quad 36 + b^2 = 100.

Take 3636 away from both sides, just as you would undo an addition in any equation. That leaves b2=100−36=64b^2 = 100 - 36 = 64, so b=8b = 8. Nothing depended on 1010 and 66. For any hypotenuse cc and known leg aa, removing a2a^2 from both sides gives

b2=c2−a2.b^2 = c^2 - a^2.

So for a leg you subtract. This only works when the hypotenuse is longer than the leg you know. If it is not, the subtraction gives zero or less, and no right triangle has those sides.

Worked example 3 Hypotenuse 2525, one leg 77

A right triangle has a hypotenuse of 2525 units and one leg of 77 units. Find the other leg.

The 2525 is the hypotenuse, so it plays the part of cc. Subtract the square of the known leg from the square of the hypotenuse:

b2=252−72=625−49=576.b^2 = 25^2 - 7^2 = 625 - 49 = 576.

Now find the root. Since 202=40020^2 = 400 and 252=62525^2 = 625, the root is between 2020 and 2525, and much closer to 2525. Try 2424: 24×24=57624 \times 24 = 576. So

b=576=24 units.b = \sqrt{576} = 24 \text{ units}.

Check: 72+242=49+576=625=2527^2 + 24^2 = 49 + 576 = 625 = 25^2. Had you added instead, 625+49=674625 + 49 = 674 would give a “leg” longer than 2525, which a hypotenuse cannot allow.

Check your understanding

A right triangle has a hypotenuse of 99 and one leg of 33. What is the exact length of the other leg, in simplest form?

Answer choices

Measuring with the theorem

Any side of a right triangle can be found this way once you know the other two, as long as all the lengths are in the same unit. A ladder against a wall is the classic case, provided the wall stands at a right angle to level ground.

How high does the ladder reach?Level ground runs along the bottom and a vertical wall rises on the right. A ladder leans from a point on the ground to a point on the wall. The ground distance from the ladder’s foot to the wall is 2.5 m, the ladder itself is 6.5 m long, and the height on the wall from the ground to the top of the ladder is the unknown h. The corner where the wall meets the ground is marked as a right angle.2.5 m6.5 mh
A 6.5 m ladder leans against a wall, with its foot 2.5 m from the wall. The wall meets the level ground at a right angle, so the ladder is the hypotenuse and the unknown height h is a leg.

Worked example 4 How high does the ladder reach?

A 6.56.5 m ladder leans against a wall. Its foot is 2.52.5 m from the wall on level ground. How high up the wall does it reach?

The ground and the wall meet at a right angle, so the ladder is the hypotenuse. The height hh is a leg, and that means subtracting:

h2=6.52−2.52=42.25−6.25=36.h^2 = 6.5^2 - 2.5^2 = 42.25 - 6.25 = 36.

So h=36=6h = \sqrt{36} = 6 m. The ladder reaches 66 m up the wall. If the ground sloped, or the wall leaned, there would be no right angle and this calculation would not apply.

A rectangle’s diagonal is the same kind of length. Its corners are right angles, so the diagonal cuts it into two right triangles with the rectangle’s sides as legs. A park 2020 m by 2121 m has a diagonal path of 202+212=841=29\sqrt{20^2 + 21^2} = \sqrt{841} = 29 m. Cutting across saves 1212 m on the 4141 m walk round two edges.

The builders’ rope from the start of the lesson works the same way. If a corner is square, marks 33 and 44 steps along its two sides must be 55 steps apart. So if the gap comes out at anything other than 55, the corner is certainly not square. Does a gap of exactly 55 prove the corner is square? That is the theorem run backward, starting from the sides and concluding the angle. It is a different statement, and this lesson does not prove it. Geometry takes it up.

Check your understanding

A builder marks 9090 cm along one edge of a frame and 120120 cm along the other, both measured from the same corner. If the corner is a right angle, how far apart should the two marks be?

Answer choices

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Core practice

Practice problems at the level of the course, to be worked out on paper. Hints one at a time, then the answer or the full worked solution, with your progress kept in this browser.

Core practice Work it out on paper 10 problems Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (optional)

The rule carries the name of Pythagoras, a Greek teacher from about 2,5002{,}500 years ago. Nobody knows whether he proved it himself. Others knew it too, in places he never visited.

In China, an old book about the sky and the calendar works through the triangle with sides 33, 44 and 55. About 1,8001{,}800 years ago, a scholar who wrote notes on that book drew a picture to go with it. The picture is a square seven units wide, ruled into small unit squares. A copy of the 33, 44, 55 triangle sits in each corner, and a tilted square fills the middle.

Count the picture and the rule appears. The big square holds 4949 unit squares. Each triangle is half of a 33 by 44 rectangle, so it covers 66 of them. The four triangles cover 2424 together, which leaves 2525 for the tilted square in the middle. That is 5×55 \times 5, the square on the long side.

That picture is the first filling from this lesson’s proof, with legs 33 and 44. The same square, filled the second way, would leave 9+169 + 16 instead.

Your progress

See all your progress →