Yes — the Pythagorean theorem works with semicircles, equilateral triangles and any other shape, as long as the three shapes are similar and each is built on its side in the same way. Then the areas on the two legs add up to the area on the hypotenuse. Euclid proved this version as Proposition 31 of Book VI of the Elements.
The usual statement, a2 + b2 = c2, is about the areas of three squares (see what the Pythagorean theorem says). This page shows that the squares can be swapped for any shape you like, explains the single idea that makes it true, and works through the classic semicircle and triangle problems that appear in textbooks and contests.
Euclid VI.31: the theorem for any similar figures
In Book I of the Elements, Euclid proves the theorem for squares (Proposition I.47, explained on our Euclid's proof page). In Book VI, after developing the theory of similar figures, he returns to it with a far more general statement. In David Joyce's translation:
In right-angled triangles the figure on the side opposite the right angle equals the sum of the similar and similarly described figures on the sides containing the right angle. — Euclid, Elements VI.31
Two words do all the work. Similar means the figures have the same shape and differ only in size: one is a scaled copy of another. Similarly described means each figure is attached to its side by the corresponding edge — if a semicircle sits on the leg with its diameter along the leg, the other two semicircles must also sit with their diameters along their sides.
Strictly, Euclid's Book VI deals with polygons ("rectilinear figures"). Curved shapes need one more fact, Proposition XII.2: circles are to one another as the squares on their diameters, which Euclid proves with the method of exhaustion. That is enough to cover semicircles, quarter circles and any shape built from circular arcs.
Why it works: area scales with the square of length
Enlarge a shape by a scale factor r — every length multiplied by r — and its area is multiplied by r2. Double the sides of a triangle and four copies of the original fit inside it; triple them and nine copies fit.
Now fix a shape and build it on a side of length s. Because every copy is a scaled version of one model, its area is always some fixed number times s2:
area = k · s2The constant k depends only on the shape and how it is attached, never on the size. For a square k = 1. For a semicircle whose diameter is the side, the radius is s/2, so the area is 1 over 2π(s/2)2 = π over 8s2 and k = π over 8.
Put the same shape on all three sides of a right triangle. The ordinary theorem says a2 + b2 = c2; multiply both sides by k:
ka2 + kb2 = k(a2 + b2) = kc2That one line is the whole proof. The area on the hypotenuse equals the sum of the areas on the legs, whatever the shape. It also shows why the figures must be similar: the argument needs the same k on all three sides.
Key ideaThe Pythagorean theorem is really a statement about a2, b2 and c2. Squares are just the simplest shapes with those areas. Any family of similar shapes has areas ka2, kb2 and kc2, so the relationship survives unchanged.
Area constants for common shapes
| Shape built on a side of length s | Area | k (rounded) |
|---|---|---|
| Square | s2 | 1 |
| Semicircle (diameter on the side) | π over 8s2 | 0.393 |
| Full circle (diameter = the side) | π over 4s2 | 0.785 |
| Equilateral triangle | √3 over 4s2 | 0.433 |
| Regular hexagon | 3√3 over 2s2 | 2.598 |
| Regular n-gon | n s2 over 4tan(180°/n) | — |
Any of these, used on all three sides, gives a true "Pythagorean theorem". So does a shape with no name at all — an outline of your hand, scaled so that the same two fingertips touch the ends of each side.
A proof that uses the triangle itself
The general version is not just a corollary; it can also prove the ordinary theorem. The trick is to choose, as the similar figure on each side, a copy of the right triangle itself, with that side as its hypotenuse.
Drop the altitude from the right angle C to the hypotenuse. It splits triangle ABC into two smaller triangles, and both are similar to ABC (each shares an acute angle with it and has a right angle). Their hypotenuses are a and b, and the big triangle's hypotenuse is c. So their areas are ka2, kb2 and kc2 for one constant k. The two pieces fill the whole triangle exactly, so
ka2 + kb2 = kc2 ⇒ a2 + b2 = c2This is essentially Euclid's own route to VI.31, and it is the argument often credited to the young Albert Einstein — see the Einstein proof and the similar triangles proof. The same altitude produces the geometric mean theorem.
Worked examples with semicircles and triangles
Example 1: semicircles on a 6-8-10 triangle
A right triangle has legs 6 cm and 8 cm and hypotenuse 10 cm (a doubled 3-4-5 triangle). Semicircles are drawn outward on all three sides. Check that the areas fit the theorem.
π over 8(62)= 4.5π ≈ 14.14π over 8(82)= 8π ≈ 25.13π over 8(102)= 12.5π ≈ 39.274.5π + 8π = 12.5π, so the two smaller semicircles exactly equal the largest (areas in cm², decimals rounded to the nearest hundredth).
Example 2: equilateral triangles on a 5-12-13 triangle
Equilateral triangles are built on the sides of a 5-12-13 triangle. Using √3 over 4s2:
√3 over 4(25) + √3 over 4(144)= √3 over 4(169)10.83 + 62.35≈ 73.18The areas are 25√3 over 4, 36√3 and 169√3 over 4 square units, and the first two add up to the third.
Example 3: find the hypotenuse from two semicircle areas
The semicircles on the legs of a right triangle have areas 8π and 18π. How long is the hypotenuse?
area on c= 8π + 18π = 26ππ over 8c2= 26πc2= 208c= √208 = 4√13 ≈ 14.42The hypotenuse is 4√13 ≈ 14.42 units. (The legs are 8 and 12, since π over 8 · 64 = 8π and π over 8 · 144 = 18π.)
Example 4: no π required
The semicircle on the hypotenuse has area 50 cm² and the semicircle on one leg has area 18 cm². Find the area of the semicircle on the other leg.
18 + x= 50x= 3232 cm². You never need the side lengths: the areas themselves obey "leg + leg = hypotenuse". If you do want that leg, solve π over 8b2 = 32 to get b = 16/√π ≈ 9.03 cm.
The lunes of Hippocrates
The most famous application of the semicircle version is about 2,400 years old. Hippocrates of Chios (active around 440 BCE, not to be confused with the physician Hippocrates of Kos) found areas of lunes — crescent shapes bounded by two circular arcs. His book is lost; we know the work through Eudemus's History of Geometry, as quoted by Simplicius in the 6th century CE.
Here is the version for any right triangle. Draw the semicircle on the hypotenuse on the same side as the triangle; by Thales' theorem it passes through the right-angle vertex. Then draw semicircles outward on the two legs. The two crescents that stick out beyond the big arc together have exactly the same area as the triangle.
The proof is pure bookkeeping with VI.31. The two leg semicircles plus the triangle cover the same region as the hypotenuse semicircle plus the two lunes:
π over 8a2 + π over 8b2 + triangle = π over 8c2 + lunesSince π over 8a2 + π over 8b2 = π over 8c2, those terms cancel and the lunes equal the triangle. For the 3-4-5 triangle in the figure the two lunes measure about 2.51 and 3.49 square units, and the triangle measures 1 over 2 · 3 · 4 = 6.
Hippocrates himself worked with the special case of an isosceles right triangle (the 45-45-90 triangle), where each lune equals half the triangle. The general right-triangle version is often called the lunes of Alhazen, after Ibn al-Haytham (c. 965–c. 1040), who studied it. The result mattered because Hippocrates had found a curved region whose area equals that of a polygon, which raised hopes of "squaring the circle" — building a square with the same area as a circle using only straightedge and compass. That turned out to be impossible, as Ferdinand von Lindemann proved in 1882 by showing that π is transcendental. See the history of the Pythagorean theorem for the wider story.
When the general version fails
- Shapes that are not similar. A square on one leg, a semicircle on the other and an equilateral triangle on the hypotenuse have different constants k, so nothing adds up.
- Similar shapes attached differently. A 1-by-2 rectangle attached by its long edge to the legs but by its short edge to the hypotenuse is not "similarly described". Its area is 1 over 2s2 in one position and 2s2 in the other.
- Triangles that are not right. The general version is exactly as strong as the original: for an acute or obtuse triangle the areas on the two shorter sides add up to more or less than the area on the longest. Conversely, if similar figures on the three sides satisfy "two equal the third", then a2 + b2 = c2 and the triangle is right, by the converse of the Pythagorean theorem.
- Volumes. Solids scale with the cube of length, so cubes on the sides do not work: 33 + 43 = 91, not 53 = 125. In fact a3 + b3 < c3 for every right triangle, because a3 + b3 = a · a2 + b · b2 < c · a2 + c · b2 = c3. For whole numbers the equation a3 + b3 = c3 has no solutions at all, the first case of Fermat's last theorem.
Areas do have a genuine three-dimensional version — de Gua's theorem for a corner of a box — and lengths generalize to any number of dimensions, as shown on the Pythagorean theorem in n dimensions. Repeating squares on the sides of ever-smaller right triangles produces the Pythagoras tree fractal.
Frequently asked questions
Does the Pythagorean theorem work with semicircles?
Yes. If semicircles are drawn with their diameters on the three sides of a right triangle, the areas of the two on the legs add up to the area of the one on the hypotenuse. Each semicircle has area π over 8s2, so the theorem is just a2 + b2 = c2 multiplied by π over 8.
Does it work with full circles?
Yes, as long as all three circles are built the same way — for example with each side as a diameter (area π over 4s2) or each side as a radius (area πs2). The circle on the hypotenuse then has the same area as the other two combined.
What is Euclid VI.31?
It is Proposition 31 in Book VI of Euclid's Elements: in a right triangle, the figure on the hypotenuse equals the sum of the similar and similarly described figures on the two legs. It generalizes Proposition I.47, the version with squares, and Euclid proves it using similar triangles.
Do the shapes have to point outward?
No. Area does not depend on which way a shape faces, so shapes drawn inward (overlapping the triangle) obey the same relationship. Pictures usually draw them outward only so they don't overlap.
What are the lunes of Hippocrates?
They are crescent-shaped regions bounded by two circular arcs whose areas Hippocrates of Chios computed exactly in the 5th century BCE. In the right-triangle version, the two crescents formed by the leg semicircles and the circle through all three vertices have a total area equal to the triangle's area.
Can I use rectangles or other polygons?
Yes, if they are similar and attached by corresponding sides. Three rectangles with sides in the ratio 1 : 2, each attached by its long side, work perfectly; their areas are 1 over 2a2, 1 over 2b2 and 1 over 2c2.
Sources and further reading
- Euclid, Elements, Book VI, Proposition 31, in David E. Joyce's online edition: Proposition VI.31.
- Thomas L. Heath, The Thirteen Books of Euclid's Elements, 2nd ed., Cambridge University Press, 1926 (Book VI and Book XII, Proposition 2).
- MacTutor History of Mathematics: Hippocrates of Chios.
- Wikipedia: Lune of Hippocrates (including the lunes of Alhazen).
- Thomas L. Heath, A History of Greek Mathematics, Vol. 1, Oxford, 1921 (chapter on Hippocrates of Chios).
Keep exploring
- ProofsSimilar Triangles Proof of the Pythagorean TheoremProve the Pythagorean theorem with similar triangles: the altitude to the hypotenuse makes three similar right triangles, so a² = cp, b² = cq and a² + b² = c².
- ProofsEuclid's Proof of the Pythagorean TheoremEuclid's windmill proof of the Pythagorean theorem, Book I Proposition 47, step by step: congruent triangles, an animated shear and the converse, I.48.
- LearnThe Pythagoras Tree FractalThe Pythagoras tree fractal (Albert E. Bosman, 1942): how it is built from squares, why every level has the same area, lopsided trees and code to draw one.
- LearnDe Gua's TheoremDe Gua's theorem says the squared area of the slanted face of a right-corner tetrahedron equals the sum of the other three. Proofs, examples and history.
- LearnThe Pythagorean Theorem in n DimensionsThe Pythagorean theorem in n dimensions: the Euclidean norm, orthogonal vectors and the dot product, inner-product spaces, Parseval's identity and data science.
- 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.