Skip to main content

Pythagorean Theorem

Pythagorean Theorem Word Problems: 20 Real-World Examples

Twenty Pythagorean theorem word problems solved in full: ladders, room and screen diagonals, ramps, guy wires and navigation, with units and rounding shown.

A right triangle labelled with legs a and b and hypotenuse c, surrounded by small icons for a ladder, a screen diagonal and a ramp.

Every Pythagorean theorem word problem is solved with the same four moves: find the right angle in the situation, label the two sides that meet at it as the legs a and b, label the side opposite it as the hypotenuse c, then apply a² + b² = c². If the unknown is the hypotenuse you compute c = √(a² + b²). If the unknown is a leg you rearrange to a = √(c² − b²). The 20 worked problems below cover ladders, diagonals, ramps, guy wires, navigation and squareness checks, and every one of them is solved with that single relationship. No sine, cosine or tangent is used anywhere on this page.

a² + b² = c²c = √(a² + b²) (hypotenuse unknown)a = √(c² − b²) (leg unknown)

The three forms you need. Everything on this page is one of these.

The working method, in order

Do these four steps every time and word problems stop being word problems.

  1. Locate the right angle. In a ladder problem the wall meets the ground at 90°. In a rectangle the two adjacent edges meet at 90°. On a coordinate grid the horizontal and vertical steps meet at 90°. If nothing in the situation is perpendicular, the Pythagorean theorem does not apply.
  2. Label the two legs. The legs are the two sides that form the right angle. They are the wall height and the ground distance, the length and the width, the rise and the run.
  3. Identify the hypotenuse. It is the side opposite the right angle, and it is always the longest side. The ladder itself, the diagonal of the room, the guy wire, the straight-line shortcut.
  4. Choose the form and substitute. Hypotenuse unknown means add the squares then take the root. Leg unknown means subtract the squares then take the root.

Rearranging the formula to find a leg

Most real problems give you the hypotenuse, because the hypotenuse is usually the object you can measure directly: the ladder, the wire, the cable, the screen. So the rearranged form matters more than the textbook form. Here is the algebra in full, with nothing skipped.

Start from the theorem, with a as the unknown leg:

a² + b² = c²a² + b² − b² = c² − b²a² = c² − b²√(a²) = √(c² − b²)a = √(c² − b²)

Subtract the known leg squared from both sides, then take the positive square root. Lengths are positive, so the negative root is discarded.

Two things to watch. First, c² − b² is a subtraction inside the root, and it is not the same as c − b. For c = 13 and b = 5, √(13² − 5²) = √144 = 12, while 13 − 5 = 8. Second, if you ever get a negative value under the root, you have mislabelled the hypotenuse. The number you called c was actually a leg.

Which formula do I use?

What is unknownFormula
Hypotenuse c, both legs knownc = √(a² + b²)
Leg a, hypotenuse and other leg knowna = √(c² − b²)
Leg b, hypotenuse and other leg knownb = √(c² − a²)
Diagonal of a rectangle, sides L and Wd = √(L² + W²)
Side of a rectangle, diagonal d and side L knownW = √(d² − L²)
Distance between two grid pointsd = √((x₂ − x₁)² + (y₂ − y₁)²)
Is this triangle right angled? (converse)Test whether a² + b² = c², with c the longest side
Space diagonal of a box L à - W à - HApply the theorem twice: first √(L² + W²), then √((L² + W²) + H²)

Where the numbers happen to form a Pythagorean triple, the answer lands exactly on a whole number and no rounding is needed at all. Several problems below are built on triples for that reason.

Ladders and walls

A ladder problem is the purest form of the theorem. The wall is one leg, the ground is the other leg, and the ladder is always the hypotenuse because it leans opposite the 90° corner where the wall meets the floor.

Figure 1

6.0 m (wall) 2.5 m (ground) 6.5 m (ladder) 67.38° 22.62°
Problem 1 drawn to scale. The ladder is the hypotenuse; the wall height and the base distance are the legs.

Problem 1 Ladder against a wall: find the height

Given
Ladder length 6.5 m, foot of the ladder 2.5 m from the wall
Find
Height the ladder reaches up the wall
Formula
a = √(c² − b²)
Substitution
a = √(6.5² − 2.5²)
Calculation
a = √(42.25 − 6.25) = √36 = 6

Answer 6.0 m exactly (19.7 ft)

The numbers 2.5, 6 and 6.5 are the 5-12-13 triple halved, so the answer is exact and needs no rounding. For reference, the ladder is 21.3 ft and the base sits 8.2 ft out.

Problem 2 Ladder against a wall: find the base distance

Given
Ladder 25 ft long, top resting 24 ft up the wall
Find
Distance from the foot of the ladder to the wall
Formula
b = √(c² − a²)
Substitution
b = √(25² − 24²)
Calculation
b = √(625 − 576) = √49 = 7

Answer 7 ft exactly (2.13 m)

A 25 ft ladder reaching 24 ft is steep. Safety guidance usually puts the base at about a quarter of the ladder length, which would be 6.25 ft here, so 7 ft is a sensible working position.

Problem 3 A ladder slips: how far does the foot move out?

Given
Ladder 10 m. Initially the foot is 6 m from the wall. The top then slips down so it rests 7 m up the wall.
Find
How much further from the wall the foot has moved
Formula
Apply a = √(c² − b²) twice, then subtract the two base distances
Substitution
Start: height = √(10² − 6²). After slipping: base = √(10² − 7²)
Calculation
Start height = √(100 − 36) = √64 = 8 m. New base = √(100 − 49) = √51 = 7.14142… m. Movement = 7.14142… − 6 = 1.14142…

Answer The foot moves out 1.14 m (2 d.p.), from 6.00 m to 7.14 m

Notice that the top dropped 1 m (from 8 m to 7 m) but the foot moved 1.14 m. The two distances are not equal, and they never are, because the relationship between them is quadratic rather than linear.

Diagonals of rectangles and screens

Every rectangle is two right triangles glued along the diagonal. The length and the width are the legs, the diagonal is the hypotenuse. That one observation solves rooms, fields, pools, screens and packing problems.

Figure 2

4.2 m 5.6 m 7.0 m 36.87° 53.13°
Problem 4. Half of a 5.6 m by 4.2 m room, cut along the diagonal. The diagonal is the hypotenuse of the triangle.

Problem 4 Diagonal of a rectangular room

Given
A room measures 5.6 m long and 4.2 m wide
Find
The straight-line distance from one corner to the opposite corner
Formula
d = √(L² + W²)
Substitution
d = √(5.6² + 4.2²)
Calculation
d = √(31.36 + 17.64) = √49 = 7

Answer 7.00 m exactly (23.0 ft)

That is the 3-4-5 triangle scaled by 1.4, which is why it comes out whole. The same trick run in reverse is the 3-4-5 triangle rule builders use to set out a square corner.

Problem 5 Diagonal of a rectangular playing field

Given
A full-size football pitch measures 105 m by 68 m
Find
The distance from one corner flag to the diagonally opposite one
Formula
d = √(L² + W²)
Substitution
d = √(105² + 68²)
Calculation
d = √(11025 + 4624) = √15649 = 125.09596…

Answer 125.10 m to 2 d.p. (410.4 ft)

A sprint down the touchline and along the goal line covers 105 + 68 = 173 m. The diagonal covers 125.10 m, so cutting the corner saves 47.90 m.

Problem 6 Monitor screen diagonal

Given
A monitor's visible panel measures 60.0 cm wide and 33.8 cm tall
Find
The advertised diagonal size
Formula
d = √(w² + h²)
Substitution
d = √(60.0² + 33.8²)
Calculation
d = √(3600 + 1142.44) = √4742.44 = 68.86537…

Answer 68.87 cm to 2 d.p., which is 27.1 in, so it is sold as a 27-inch monitor

Screen sizes are always quoted as the diagonal, never the width. That is why a 27-inch monitor is only 23.6 in wide. Two screens with the same diagonal can have different widths if their aspect ratios differ, so the diagonal alone never tells you how much desk a screen takes.

Problem 7 Diagonal of a swimming pool

Given
A rectangular pool is 25 m long and 12.5 m wide
Find
The length of a lane rope stretched corner to corner
Formula
d = √(L² + W²)
Substitution
d = √(25² + 12.5²)
Calculation
d = √(625 + 156.25) = √781.25 = 27.95084…

Answer 27.95 m to 2 d.p. (91.7 ft)

The pool is 82.0 ft by 41.0 ft in imperial units, and the diagonal swim is 91.7 ft.

Problem 8 Diagonal of a square patio, kept in exact form

Given
A square patio has sides of 5 m
Find
The exact diagonal, then a decimal value
Formula
d = √(a² + a²) = √(2a²) = a√2
Substitution
d = √(5² + 5²) = √(25 + 25) = √50
Calculation
√50 = √(25 à - 2) = 5√2 = 7.07106781…

Answer Exactly 5√2 m, which is 7.07 m to 2 d.p. (23.2 ft)

Keep the surd. 5√2 is the true value; 7.07 is a rounded picture of it. Any square of side a has diagonal a√2, and it is worth memorising because square-diagonal problems appear constantly.

Distance and navigation

When two journeys are at right angles to each other, the straight-line distance between start and finish is the hypotenuse. This is the same calculation whether the legs are north and east, a walk and a turn, or two axes on a grid.

Figure 3

28 m 45 m 53 m 31.89° 58.11°
Problem 9. Walking the two edges of the car park covers 73 m; the diagonal covers 53 m.

Problem 9 Shortest way across a car park

Given
A rectangular car park is 45 m by 28 m. You can walk round two edges, or straight across the diagonal.
Find
The diagonal distance, and how much walking it saves
Formula
d = √(L² + W²)
Substitution
d = √(45² + 28²)
Calculation
d = √(2025 + 784) = √2809 = 53

Answer 53 m exactly, saving 73 − 53 = 20 m of walking

The sides 28, 45, 53 form a Pythagorean triple, so the diagonal is a whole number. The saving is large here (27% of the distance), which is exactly why worn shortcut paths appear across the corners of grassed rectangles.

Problem 10 Two people walking perpendicular routes

Given
Two hikers leave the same point. One walks 9.6 km due east, the other walks 2.8 km due north.
Find
How far apart they are
Formula
c = √(a² + b²)
Substitution
c = √(9.6² + 2.8²)
Calculation
c = √(92.16 + 7.84) = √100 = 10

Answer 10 km exactly (6.21 mi)

East and north are perpendicular by definition, so the two routes form the legs and the gap between the hikers is the hypotenuse. Their separation of 10 km is less than the 12.4 km they have walked between them.

Problem 11 A boat sailing two perpendicular legs

Given
A boat sails 15 km due east, then turns 90° to port and sails 8 km due north.
Find
Its straight-line distance from the harbour
Formula
c = √(a² + b²)
Substitution
c = √(15² + 8²)
Calculation
c = √(225 + 64) = √289 = 17

Answer 17 km exactly

The boat has sailed 23 km of water but is only 17 km from home. The 8-15-17 triple makes this one exact. Note the wording: “turns 90°” is what guarantees a right angle. If the turn were 70° or 110°, the Pythagorean theorem would not apply and you would need the cosine rule instead.

Problem 12 Distance between two points on a coordinate grid

Given
Point A at (−3, 2) and point B at (5, 8) on a map grid where 1 unit = 1 km
Find
The straight-line distance AB
Formula
d = √((x₂ − x₁)² + (y₂ − y₁)²)
Substitution
d = √((5 − (−3))² + (8 − 2)²) = √(8² + 6²)
Calculation
d = √(64 + 36) = √100 = 10

Answer 10 units, so 10 km exactly

The distance formula is not a separate rule to memorise. The horizontal gap of 8 and the vertical gap of 6 are the two legs of a right triangle, and the distance is its hypotenuse. Watch the double negative in 5 − (−3) = 8, which is where most grid errors happen.

Problem 13 Drone altitude from slant range

Given
A drone is 200 m horizontally from its launch point and the controller reports a direct-line distance of 250 m
Find
The drone's altitude
Formula
a = √(c² − b²)
Substitution
a = √(250² − 200²)
Calculation
a = √(62500 − 40000) = √22500 = 150

Answer 150 m exactly (492.1 ft)

This is the classic “find a leg when the hypotenuse is known” shape. The slant range is always the longest of the three distances, so it must be the hypotenuse. If a problem ever gives you a slant distance shorter than the ground distance, the data is wrong.

Problem 14 Baseball diamond: home plate to second base

Given
The bases are 90 ft apart and the diamond is a perfect square
Find
The throw from home plate to second base
Formula
d = a√2, from d = √(a² + a²)
Substitution
d = √(90² + 90²) = √(8100 + 8100) = √16200
Calculation
√16200 = √(8100 à - 2) = 90√2 = 127.27922…

Answer Exactly 90√2 ft, which is 127.28 ft to 2 d.p. (38.79 m)

First base to third base is the same distance, because it is the other diagonal of the same square. Catchers quote this throw as “about 127 feet”, and the exact form 90√2 tells you where that number comes from.

Construction and layout

Building work is full of right angles by design, which makes it the richest source of Pythagorean problems. Anything anchored to the ground and leaning, rising or bracing is a hypotenuse.

Figure 4

18 m (mast) 7.5 m (anchor) 19.5 m (wire) 67.38° 22.62°
Problem 15. The mast and the ground distance are the legs; the guy wire is the hypotenuse.

Problem 15 Guy wire on a mast

Given
A vertical mast is 18 m tall. A guy wire runs from the top of the mast to a ground anchor 7.5 m from the base.
Find
The length of the guy wire
Formula
c = √(a² + b²)
Substitution
c = √(18² + 7.5²)
Calculation
c = √(324 + 56.25) = √380.25 = 19.5

Answer 19.5 m exactly (64.0 ft)

The mast stands at 59.1 ft and the anchor sits 24.6 ft out. In practice you would order extra wire for the fixings at each end, but the geometric length is exactly 19.5 m because 7.5, 18, 19.5 is the 5-12-13 triple multiplied by 1.5.

Problem 16 Length of a wheelchair ramp

Given
A ramp must rise 0.75 m over a horizontal run of 9 m (a 1:12 gradient)
Find
The length of the sloping ramp surface
Formula
c = √(a² + b²)
Substitution
c = √(0.75² + 9²)
Calculation
c = √(0.5625 + 81) = √81.5625 = 9.03119…

Answer 9.03 m to 2 d.p. (29.63 ft)

At shallow gradients the ramp surface is barely longer than the run: 9.03 m against 9.00 m, a difference of just 31 mm. That is why builders often quote the run and the slope length interchangeably on gentle ramps, though the approximation breaks down fast as the slope steepens.

Problem 17 Roof rafter from rise and run

Given
A roof rises 1.8 m over a horizontal run of 4.2 m from the wall plate to the ridge
Find
The rafter length along the slope
Formula
c = √(rise² + run²)
Substitution
c = √(1.8² + 4.2²)
Calculation
c = √(3.24 + 17.64) = √20.88 = 4.56946…

Answer 4.57 m to 2 d.p. (15.0 ft)

Compare this with the ramp. Here the rise is a substantial fraction of the run, so the rafter at 4.57 m is 0.37 m longer than the 4.20 m run. Steeper slopes mean the hypotenuse pulls away from the longer leg much faster.

Problem 18 Checking a picture frame is square

Given
A frame is built to be 80 cm by 60 cm. The measured diagonal is 101.5 cm.
Find
Whether the corners are true right angles
Formula
If square, d = √(L² + W²)
Substitution
d = √(80² + 60²)
Calculation
d = √(6400 + 3600) = √10000 = 100

Answer The diagonal should be exactly 100 cm. At 101.5 cm the frame is 1.5 cm out, so the corners are not 90° and the frame is racked into a parallelogram.

This is the theorem used as a test rather than a calculator. A rectangle that is out of square still has the same four side lengths, so measuring the sides proves nothing. The diagonal is the only measurement that changes, and a diagonal that is too long means the corner has opened past 90°. Measuring both diagonals and adjusting until they match is the same idea in its fastest form.

The converse and multi-step problems

The last two problems use the theorem in less direct ways: once run backwards to identify a right angle, and once applied twice in a row.

Problem 19 Is this plot of land right angled?

Given
A triangular plot has sides of 20 m, 21 m and 29 m
Find
Whether the corner between the 20 m and 21 m sides is a right angle
Formula
Converse: the triangle is right angled if a² + b² = c², with c the longest side
Substitution
Test 20² + 21² against 29²
Calculation
20² + 21² = 400 + 441 = 841, and 29² = 841. √841 = 29, so the two sides match exactly.

Answer Yes. 841 = 841, so the plot is right angled, and the 90° corner is the one opposite the 29 m side

The converse is a genuinely different statement from the theorem, and it is the one that makes on-site checks possible, because a tape measure reads lengths but never angles. Try a triangle with sides 8, 14 and 16: 8² + 14² = 64 + 196 = 260, while 16² = 256. Since 260 is not 256, that triangle is not right angled. The sum coming out larger than c² tells you the angle opposite the longest side is slightly less than 90°. Any set of three whole numbers that does pass the test is itself a triple, and 20-21-29 is one of the less familiar ones.

Problem 20 Will a pole fit? Two applications of the theorem

Given
A storage room is 8 m long, 6 m wide and 3 m high. A straight pole is to be carried in corner to corner, floor to ceiling.
Find
The longest pole that fits, the space diagonal of the room
Formula
First d_floor = √(L² + W²), then d_space = √(d_floor² + H²)
Substitution
d_floor = √(8² + 6²) = √(64 + 36) = √100 = 10. Then d_space = √(10² + 3²) = √(100 + 9) = √109
Calculation
√109 = 10.44030650… Substituting back: 10.44030650…² = 109, and 109 = 64 + 36 + 9. ✓

Answer √109 m exactly, which is 10.44 m to 2 d.p. (34.25 ft)

The second triangle is the important idea. Its legs are the floor diagonal (10 m) and the room height (3 m), and its hypotenuse runs from a bottom corner to the opposite top corner. Carry the exact 10 into the second step, never a rounded version. In general the space diagonal of a box is √(L² + W² + H²), which is just the two steps folded into one line.

Common mistakes

Treating the hypotenuse as a leg. If a problem gives a ladder of 13 ft and a base of 5 ft, writing 13² + 5² = c² gives √194 ≈ 13.93 ft, which is nonsense: the wall height cannot exceed the ladder. The ladder is the hypotenuse, so the calculation is √(13² − 5²) = √144 = 12 ft. Sanity test: your answer for a leg must always come out smaller than the hypotenuse.

Forgetting to take the square root. Stopping at c² = 169 and writing “169 m” is the most frequent slip under time pressure. The equation gives you the square of the answer, not the answer. Get into the habit of writing the root line explicitly, as every problem above does.

Adding the sides instead of the squares. 3 + 4 = 7, but the hypotenuse of a 3-4 right triangle is 5. The theorem is about areas of squares built on the sides, not about the lengths themselves, so √(3² + 4²) is not 3 + 4.

Mixing units. A common trap gives one measurement in centimetres and the other in metres, or a rise in inches and a run in feet. Convert everything to a single unit before squaring. Squaring magnifies the error: 30 cm entered as 30 when the other leg is in metres contributes 900 instead of 0.09, which is ten thousand times too large.

Rounding before the square root. In Problem 5, rounding 15649 to 15600 before rooting gives 124.90 rather than 125.10, an error of 20 cm across a pitch. Keep full precision through every intermediate step and round once, at the end, then state the precision you used.

Practice set, with answers

Work these the same way: right angle, legs, hypotenuse, formula. Answers follow.

  1. A 4 m ladder stands with its foot 1.2 m from a wall. How high up the wall does it reach?
  2. A rug is 3 m by 4 m. How long is its diagonal?
  3. A television panel measures 110.7 cm by 62.3 cm. What diagonal size is it sold as?
  4. A guy wire 26 m long runs from the top of a mast to an anchor 10 m from the base. How tall is the mast?
  5. A triangle has sides 12 m, 16 m and 21 m. Is it right angled?
  6. A square field has sides of 40 m. Give the diagonal in exact form and to 2 d.p.

Answers. (1) √(4² − 1.2²) = √(16 − 1.44) = √14.56 = 3.82 m to 2 d.p. (2) √(3² + 4²) = √25 = 5 m exactly. (3) √(110.7² + 62.3²) = √16135.78 = 127.03 cm to 2 d.p., which is 50.0 in, so a 50-inch TV. (4) √(26² − 10²) = √(676 − 100) = √576 = 24 m exactly. (5) No. 12² + 16² = 144 + 256 = 400, but 21² = 441, and 400 is not 441. (6) √(40² + 40²) = √3200 = 40√2 m exactly, which is 56.57 m to 2 d.p.

If you want the working checked, or you also need the angles and the area, put the two known sides into the right triangle calculator and it returns every remaining value at once.

Frequently Asked Questions

How do I know which side is the hypotenuse in a word problem?

The hypotenuse is the side opposite the right angle, and in practice it is the leaning, sloping or straight-line object: the ladder, the ramp surface, the guy wire, the rafter, the shortcut across the field, the screen diagonal. The two legs are the ones that meet at 90°, which are almost always vertical and horizontal: a wall and the ground, a length and a width, a rise and a run. The hypotenuse is also always the longest side, so if your answer for a leg comes out larger than the hypotenuse, you have swapped them.

Do any of these problems need sine, cosine or tangent?

No. Every problem on this page gives two sides and asks for the third, which is exactly what a² + b² = c² handles. You need trigonometry only when an angle other than the right angle is given or asked for, for example “a ladder leans at 72°, how high does it reach?”. Problems that mix both kinds are covered separately in the mixed right triangle word problems guide.

When should I leave the answer as a square root instead of a decimal?

Leave it as a surd whenever the root does not simplify to a whole number and the answer will be used in further calculation, as in Problem 20 where √109 feeds nothing further but is still the exact value. Exact form also matters in geometry answers: a square of side 5 has diagonal exactly 5√2 m, and writing 7.07 m throws away precision permanently. Simplify surds by pulling out square factors: √50 = √(25 à - 2) = 5√2, and √3200 = √(1600 à - 2) = 40√2. For a practical measurement, give the surd and then the rounded decimal, as every problem above does.

How can the theorem prove a corner is square if it only deals with lengths?

That is the converse of the theorem: if a triangle’s sides satisfy a² + b² = c², the angle opposite c must be 90°. It turns three length measurements into a statement about an angle, which is why builders use it to set out foundations and check frames. Problems 18 and 19 are both converse problems. The smallest whole-number version is the 3-4-5, described in full in the guide to setting out a square corner.

What precision should I round real-world answers to?

Match the precision of your inputs. If the measurements are given to the nearest 0.1 m, an answer to 2 d.p. is honest arithmetic but false precision as a measurement, so quote it to 0.1 m and say so. The rule that never changes is to carry full precision through every intermediate step and round only the final figure. To check a result quickly, enter both known sides into the triangle solver on the homepage and compare the hypotenuse it reports with your own.