These 12 hard Pythagorean theorem problems are challenges, not exercises: the right triangle is never handed to you. You have to find it by unfolding a box, drawing a radius, dropping a perpendicular or rotating part of the figure. Each problem has a hint and a full solution, so try it for at least ten minutes before you peek.
You need only a2 + b2 = c2, some algebra and a willingness to draw. If you are still building speed on the basics, work through the practice problems first; the advanced level there is the right warm-up.
How to attack a hard problem
- Draw it big and accurately. A careful sketch often shows the answer before any algebra does. Mark every right angle you know about.
- Create a right triangle. Drop a perpendicular, draw a radius to a point of tangency, join a point to a corner, or draw a diagonal. Most hard problems hinge on one extra line.
- Name one unknown. Call a length x and write every other length in terms of it. Then the theorem gives you an equation.
- Flatten 3D surfaces. A path along the outside of a box becomes a straight line once you unfold the faces into a net.
- Check with numbers. Test your answer in a special case or with a quick calculation. It catches most slips.
Shortest paths and folds
1. The ant on a box
An ant sits at one corner of a closed box that measures 15 × 5 × 3. Food sits at the opposite corner. The ant must walk on the surface. What is the length of its shortest route?
Show hint
Unfold the two faces the ant crosses so they lie flat. In the flat picture, the shortest route is a straight line. Try each way of pairing faces.
Show solution
The ant must cross two faces that share an edge. Unfold them into a rectangle, and the shortest route is that rectangle's diagonal. There are three ways to pair the faces, depending on which edge the ant crosses:
√152 + (5 + 3)2= √289 = 17√(15 + 3)2 + 52= √349 ≈ 18.68√(15 + 5)2 + 32= √409 ≈ 20.22Answer: 17. The ant crosses the long 15 edge, reaching it 15 × 3 over 8 = 5.625 units from the near end. For comparison, walking along an edge and then across a face costs 15 + √34 ≈ 20.83, and the straight line through the inside (which the ant can't use) is √259 ≈ 16.09.
The rule: for a box with dimensions ℓ ≥ w ≥ h, the shortest surface path between opposite corners is √ℓ2 + (w + h)2. Compare the 3D diagonal, which goes through the inside.
2. The folded corner
A square sheet of paper ABCD has sides of 12 cm. It is folded so that corner A lands exactly on M, the midpoint of side DC. The crease meets side AD at Q. How far is Q from A? How long is the crease?
Show hint
After folding, QM is the same length as QA. Call it y and look at triangle QDM.
Show solution
Folding doesn't change lengths, so QM = QA = y, and QD = 12 − y. Triangle QDM has a right angle at D and DM = 6:
(12 − y)2 + 62= y2144 − 24y + y2 + 36= y224y= 180y= 7.5The crease is the perpendicular bisector of AM. In the same way it meets BC at P, 1.5 cm above B (solve 122 + t2 = 62 + (12 − t)2). So the crease runs from (0, 7.5) to (12, 1.5):
crease = √122 + 62 = √180 = 6√5 ≈ 13.42Answer: AQ = 7.5 cm; the crease is 6√5 ≈ 13.42 cm. The key move, "a fold makes two lengths equal", solves almost every paper-folding problem.
Right triangles hiding in shapes
3. The tilted square
A square of area 625 sits tilted inside a square of side 31, with one corner on each side of the big square. Each corner splits a side into two pieces. How long are the pieces?
Show hint
The four corner triangles are identical right triangles with legs x and y. What are x + y and x2 + y2?
Show solution
Each side of the tilted square is the hypotenuse of a corner triangle, so x2 + y2 = 625. Each side of the big square is x + y = 31. Square the second equation:
x2 + 2xy + y2= 961625 + 2xy= 961xy= 168Two numbers with sum 31 and product 168 solve t2 − 31t + 168 = 0, so (t − 7)(t − 24) = 0.
Answer: 7 and 24. Check: 49 + 576 = 625. This tilted-square picture is also a proof of the theorem itself: the big square's area is the tilted square plus four triangles, (x + y)2 = c2 + 2xy, which simplifies to x2 + y2 = c2. See the rearrangement proof.
4. The inradius of a right triangle
Prove that the radius of the circle inscribed in a right triangle with legs a, b and hypotenuse c is r = a + b − c over 2. Then find the inradius of the 20-99-101 right triangle.
Show hint
Tangent segments from the same point to a circle are equal. At the right angle, the two radii and the legs make a square of side r.
Show solution
The radii to the two legs are perpendicular to them, so at the right angle they form a square of side r. That leaves tangent lengths a − r and b − r from the other two vertices. From each of those vertices, the two tangent segments are equal, so the hypotenuse is made of those same two pieces:
c= (a − r) + (b − r)2r= a + b − cr= a + b − c over 2For 20, 99, 101: r = 20 + 99 − 101 over 2 = 9. Check another way: area = 1 over 2 · 20 · 99 = 990, semi-perimeter = 110, and r = area ÷ semi-perimeter = 9.
Answer: r = 9. Bonus: for every Pythagorean triple the inradius is a whole number, because a + b and c are always both odd or both even.
5. A circle in a square
A circle passes through two adjacent corners of a square of side 8 and just touches the opposite side. Find its radius.
Show hint
By symmetry the center lies on the line through the middle of the square. Join the center to one of the corners the circle passes through.
Show solution
The circle touches the top side at its midpoint, so the center is r below the top, which is 8 − r above the bottom. Joining the center to a bottom corner gives a right triangle with legs 4 and 8 − r and hypotenuse r:
42 + (8 − r)2= r216 + 64 − 16r + r2= r216r= 80r= 5Answer: r = 5. For a square of side s, the same steps give r = 5s over 8. The hidden triangle is a 3-4-5.
Ladder puzzles
6. The sliding ladder
A 6 m ladder leans against a wall. Its foot slides away along the floor while its top slides down the wall. What path does the midpoint of the ladder trace? How far is the midpoint from the corner when the foot is 2 m from the wall?
Show hint
Put the corner at the origin. If the foot is at (p, 0) and the top at (0, q), what do you know about p2 + q2? Where is the midpoint?
Show solution
The ladder always has length 6, so p2 + q2 = 36. The midpoint is (p over 2, q over 2), and its distance from the corner is
√(p over 2)2 + (q over 2)2 = 1 over 2√p2 + q2 = 1 over 2 · 6 = 3Answer: a quarter circle of radius 3 m centered at the corner; the midpoint is always 3 m away, including when the foot is 2 m out. Check: then the top is √36 − 4 = 4√2 high, the midpoint is (1, 2√2), and √1 + 8 = 3.
A geometric view: the midpoint of the hypotenuse of a right triangle is the same distance from all three vertices. Other points on the ladder trace quarter-ellipses, an idea used in a drawing tool called the trammel of Archimedes. See the equation of a circle for why x2 + y2 = 9 is a circle.
7. The crossed ladders
An alley is 8 m wide. A 17 m ladder leans from the foot of one wall to the opposite wall, and a 10 m ladder leans from the foot of the opposite wall back across. At what height do the ladders cross?
Show hint
First use the theorem to find how high each ladder reaches. Then use similar triangles: if the ladders reach heights A and B, the crossing height satisfies 1 over h = 1 over A + 1 over B.
Show solution
Heights reached on the walls:
A= √172 − 82 = √225 = 15B= √102 − 82 = √36 = 6Let the crossing point be x from the left wall. Similar triangles along each ladder give h over A = x over 8 and h over B = 8 − x over 8. Adding them:
h over A + h over B= 1h= AB over A + B = 15 · 6 over 21 = 30 over 7 ≈ 4.29Answer: 30 over 7 ≈ 4.29 m, at x = 16 over 7 ≈ 2.29 m from the foot of the 17 m ladder. The alley's width cancels out of 1 over h = 1 over A + 1 over B.
The famous harder version runs the other way. Given the ladder lengths and the crossing height, find the width. That leads to a fourth-degree equation. For ladders of 20 and 30 crossing at a height of 8, the width is about 16.2, which in practice you find numerically.
Angles, points and distances
8. Three squares, three angles
Three equal squares sit side by side. Lines from the top-left corner to the bottom-right corner of each square make angles α, β and γ with the bottom edge. Prove that α + β + γ = 90° without trigonometry.
Show hint
α = 45°, so you need β + γ = 45°. Put the angles on a square grid with slopes 1 over 2 and 1 over 3, side by side at one point, and look for an isosceles right triangle.
Show solution
The first line is the diagonal of a square, so α = 45°. For the others, a line with "rise 1, run 2" makes angle β with the horizontal, and "rise 1, run 3" makes angle γ. On a grid, draw OP to P(3, 1), above the horizontal, and OQ to Q(2, −1), below it. Then ∠POQ = β + γ.
Since OQ2 + QP2 = OP2, the converse says the angle at Q is 90°. And OQ = QP, so triangle OQP is an isosceles right triangle, with base angles of 45°. So β + γ = 45° and α + β + γ = 90°.
Proved. As a numerical check, β ≈ 26.57° and γ ≈ 18.43°.
9. The British flag theorem
A point P inside rectangle ABCD is 4 from A, 7 from B and 8 from C. How far is it from D? (You are not told the size of the rectangle.)
Show hint
Draw lines through P parallel to the sides. Each distance from P to a corner is the hypotenuse of a right triangle whose legs are distances from P to two sides.
Show solution
Let P be w from the left side, x from the right, y from the bottom and z from the top. Then
PA2= w2 + y2PB2= x2 + y2PC2= x2 + z2PD2= w2 + z2Both PA2 + PC2 and PB2 + PD2 equal w2 + x2 + y2 + z2. So for any point and any rectangle, PA2 + PC2 = PB2 + PD2, opposite corners paired:
PD2 = 42 + 82 − 72 = 16 + 64 − 49 = 31Answer: PD = √31 ≈ 5.57. The name comes from the picture: the four right triangles look like the crosses on the Union Jack. One rectangle that works is about 8.08 by 8.66, but you never needed it.
10. The 3-4-5 point in an equilateral triangle
A point P inside an equilateral triangle ABC is 3 from A, 4 from B and 5 from C. Find the side length s of the triangle.
Show hint
Rotate the whole picture 60° about A so that B lands on C. Where does P go, and what triangle appears?
Show solution
Rotate 60° about A, taking B to C. Point P goes to a new point P′ with AP′ = 3 and P′C = PB = 4. Because AP = AP′ and ∠PAP′ = 60°, triangle APP′ is equilateral, so PP′ = 3.
Now triangle PP′C has sides 3, 4 and 5, and 9 + 16 = 25, so the angle at P′ is 90°. So ∠AP′C = 60° + 90° = 150°.
To find AC, drop a perpendicular from C to the line AP′ extended past P′, with foot H. The angle at P′ outside the triangle is 30°, so triangle P′HC is a 30-60-90 triangle with hypotenuse 4: CH = 2 and P′H = 2√3. Then
s2= AH2 + CH2 = (3 + 2√3)2 + 22= 9 + 12√3 + 12 + 4= 25 + 12√3Answer: s = √25 + 12√3 ≈ 6.77. A check with coordinates confirms that the point at distances 3, 4 and 5 lies inside this triangle. (With the law of cosines the last step is one line, but you don't need it.)
Two classic puzzles
11. The broken bamboo
A bamboo stalk 10 units tall snaps, and its top touches the ground 3 units from the base, still attached at the break. How high up is the break?
Show hint
If the break is at height x, the part lying from the break to the ground has length 10 − x.
Show solution
The standing part, the ground and the broken part form a right triangle with legs x and 3 and hypotenuse 10 − x:
x2 + 32= (10 − x)2x2 + 9= 100 − 20x + x220x= 91x= 4.55Answer: 4.55 units (that is, 411 over 20). This problem, with these numbers, appears in the Nine Chapters on the Mathematical Art, a Chinese text compiled by about the 1st century CE, whose ninth chapter is devoted to right triangles. There the stalk is 1 zhang (10 chi) tall and the answer is given as 411 over 20 chi. Read more about the gougu theorem.
12. The spider and the fly
A room is 30 ft long, 12 ft wide and 12 ft high. A spider sits on one end wall, centered, 1 ft below the ceiling. A fly sits on the opposite end wall, centered, 1 ft above the floor. The spider crawls (it can't fly or drop). What is the shortest route to the fly?
Show hint
The obvious route (up 1, across the ceiling 30, down 11) is 42 ft. Try unfolding the room so the route crosses more faces: the ceiling, a side wall and the floor.
Show solution
Unfold the room so that one end wall, the ceiling, a side wall, the floor and the other end wall lie flat in a chain, as in the net below. In this net the spider and the fly are 32 ft apart horizontally (1 + 30 + 1) and 24 ft apart vertically (6 + 12 + 6).
The straight line really does pass through those five faces in order. It crosses from the ceiling onto the side wall 7 ft along the room, and onto the floor at 23 ft. Other unfoldings are longer: the obvious route over the ceiling is 42 ft, and the route via the ceiling and one side wall is √372 + 172 = √1658 ≈ 40.72 ft.
Answer: 40 ft, two feet shorter than the obvious route, by crossing five of the six faces. This is the "spider and the fly", popularized by the English puzzle writer Henry Dudeney in the early 1900s. It is a 3-4-5 triangle in disguise: 32 : 24 : 40 = 4 : 3 : 5.
Frequently asked questions
What makes a Pythagorean theorem problem hard?
Usually the right triangle isn't drawn for you. You have to create it by adding a line (a radius, a height, a diagonal), by unfolding a 3D surface, or by rotating part of the figure. The algebra afterwards is rarely difficult; spotting the triangle is the challenge.
Do I need trigonometry for these problems?
No. All twelve can be solved with the Pythagorean theorem and its converse, plus basic geometry (similar triangles, tangents to a circle, a rotation) and some algebra. Problem 10 uses the side ratios of a 30-60-90 triangle, which come from the theorem too.
Why is the unfolded straight line the shortest path on a box?
Unfolding a box's faces into a flat net doesn't stretch any distances, and on a flat sheet the shortest path between two points is a straight line. You then compare the different ways of unfolding, because the best route may cross different faces, as in the spider and the fly.
How can I get better at hard geometry problems?
Draw large, accurate diagrams, keep a list of "extra lines" that have worked before, and redo problems you solved a week later without notes. When you're stuck, solve a simpler version with easy numbers first, then generalize.
Where can I find more problems like these?
Classic puzzle collections by Henry Dudeney and Martin Gardner are full of them, and math competitions for middle and high school use similar ideas. On this site, try the theorem in n dimensions, Fermat's Last Theorem or the proofs for more depth.
Keep exploring
- PracticePythagorean Theorem Practice Problems30 Pythagorean theorem practice problems in three levels: missing sides, radicals, the converse, coordinates and algebra, each with a worked solution.
- ProofsProofs of the Pythagorean TheoremProofs of the Pythagorean theorem: an animated proof, how a proof differs from checking examples, all 12 proofs on this site by type, and where to start.
- LearnThe Pythagorean Theorem in 3DThe Pythagorean theorem in 3D: find the space diagonal of a box or cube, d = √(l² + w² + h²), with an animated two-step proof, fit problems and 3D distance.
- TriplesPythagorean TriplesWhat Pythagorean triples are, the common ones to know (3-4-5, 5-12-13, 8-15-17…), how to generate and recognize them, and the patterns every triple shares.
- LearnThe Geometric Mean TheoremThe geometric mean theorem: the altitude on the hypotenuse makes three similar triangles, so h² = pq, a² = pc and b² = qc. Proof, examples and constructions.
- PracticePythagorean Theorem PracticePythagorean theorem practice in five levels, from finding the hypotenuse to challenge problems, with warm-ups, a one-week plan and every worksheet and quiz.