Constructible Polygons: Why Gauss Could Draw a 17-gon but Not a 7-gon

June 13, 2026 · math, algebra

Euclidean geometry, as the Greeks played it, is a game with absurdly restrictive rules. You get a straightedge with no markings on it — it can extend a line, but it cannot measure anything. You get a compass that collapses the instant you lift it off the page, so it can draw a circle through a given point but cannot be used to “carry” a fixed length from one part of the drawing to another (though, as Euclid himself showed, you can simulate a rigid compass with a collapsing one anyway, so this restriction turns out to cost nothing). And you get two starting points to work with. That’s the whole toolkit. From it, the Greeks built an impressive catalogue: bisect a segment, bisect an angle, drop a perpendicular, construct an equilateral triangle, a square, a regular pentagon. All classically known, all a few pages into Euclid’s Elements.

Then the catalogue stalls. Nobody could construct a regular heptagon — a regular 7-gon. Or a regular 9-gon, or an 11-gon, or a 13-gon. Centuries passed. The obvious guess is that these are just harder, waiting for a cleverer construction, the way the pentagon presumably felt hard before someone found it. That guess turns out to be exactly backwards. The heptagon isn’t a hard case of an easy problem — it’s impossible, and provably so, in a precise sense that took over two thousand years to nail down. Meanwhile the pentagon, which looks about as complicated, is perfectly fine. So is the 17-gon, which a 19-year-old Carl Friedrich Gauss constructed in 1796, to general astonishment, using a method nobody expected to work at all. What separates 17 from 7? What separates 15 (constructible!) from 9 (not)? The answer, when it finally arrived, came not from geometry but from algebra — specifically, from asking how big certain field extensions of Q\mathbb{Q} have to be. That’s the payoff this post is building toward. Getting there means being honest and careful about what “constructible” means, translating it into algebra with an actual proof, and then doing some very satisfying number theory with Euler’s totient function.

What compass and straightedge actually allow

Fix two points in the plane, call them P0P_0 and P1P_1; set up coordinates so P0=(0,0)P_0 = (0,0) and P1=(1,0)P_1 = (1,0). A constructible point is any point obtainable from P0,P1P_0, P_1 by a finite sequence of the following moves:

  1. Draw the line through two already-constructed points.
  2. Draw the circle centered at an already-constructed point, passing through another already-constructed point.
  3. Mark a new point at the intersection of two already-drawn lines, a line and a circle, or two circles.

A constructible number is a real number that appears as a coordinate of some constructible point (equivalently, as the length of some segment between two constructible points, or the distance you can mark off from the origin along the xx-axis). This is the entire formal content of “compass and straightedge” — no eyeballing, no marked rulers, nothing but repeatedly intersecting lines and circles determined by points you already have.

It’s worth actually building a couple of these to see the rules in action, because the standard tricks recur constantly. Bisecting a segment ABAB: draw the circle centered at AA through BB, and the circle centered at BB through AA; these two circles (both radius AB|AB|) meet at two points, and the line through those two points crosses ABAB exactly at its midpoint — this is also, incidentally, how you drop a perpendicular to a line at a given point. Bisecting an angle at a vertex OO with rays through AA and BB: draw a circle centered at OO meeting the two rays at points equidistant from OO (relabel these AA, BB); then draw two circles of equal radius, one centered at AA and one at BB, and let CC be one of their intersection points. Ray OCOC bisects the angle, because OA=OBOA = OB makes triangle OABOAB isosceles and CC sits on its axis of symmetry by construction.

An equilateral triangle on P0P1P_0P_1 is even simpler: draw the circle centered at P0P_0 through P1P_1, the circle centered at P1P_1 through P0P_0, and take either intersection point as the third vertex — both new sides automatically equal P0P1|P_0P_1| by construction. From triangles, squares, and pentagons, Euclid could get quite far. The question this post is actually about is: how far, exactly, and why does the road stop where it does?

From geometry to algebra

The key move — due, in its rigorous modern form, to Pierre Wantzel in 1837 — is to stop thinking about lines and circles and start thinking about which field the coordinates of a constructible point can live in. This section proves the central theorem of the whole subject, so it’s worth doing carefully.

Suppose every point constructed so far has both coordinates in some field FRF \subseteq \mathbb{R} containing Q\mathbb{Q} (initially F=QF = \mathbb{Q}, since P0=(0,0)P_0=(0,0) and P1=(1,0)P_1=(1,0) have rational coordinates). I’ll show that any single new point — obtained from one of the three intersection operations above — has coordinates lying either in FF itself, or in a degree-2 extension F(d)F(\sqrt{d}) for some dFd \in F.

Lines and circles have coefficients in FF. The line through (x1,y1)(x_1,y_1) and (x2,y2)(x_2,y_2), both in FF, has equation ax+by=cax + by = c with a=y2y1a = y_2 - y_1, b=x1x2b = x_1 - x_2, c=ax1+by1c = ax_1+by_1 — all polynomial combinations of coordinates in FF, hence all in FF, since FF is closed under addition, subtraction, and multiplication. A circle centered at (h,k)F(h,k) \in F through a point at squared-distance r2r^2 from it (and r2r^2 is itself a sum of squares of differences of FF-coordinates, hence in FF, even when rr itself might not be) has equation

x2+y2+Dx+Ey+G=0,D=2h, E=2k, G=h2+k2r2,x^2 + y^2 + Dx + Ey + G = 0, \qquad D = -2h,\ E = -2k,\ G = h^2+k^2-r^2,

with D,E,GFD, E, G \in F.

Line meets line: no extension needed. Solving

a1x+b1y=c1,a2x+b2y=c2a_1x + b_1y = c_1, \qquad a_2x+b_2y=c_2

by elimination gives xx and yy as ratios of FF-elements (Cramer’s rule), so the intersection point already has coordinates in FF. Straightedge alone never forces an extension — that’s the compass’s job.

Line meets circle: a quadratic appears. Substitute a line y=mx+cy = mx+c (with m,cFm,c \in F; a vertical line is handled the same way with xx and yy swapped) into the circle equation:

x2+(mx+c)2+Dx+E(mx+c)+G=0,x^2 + (mx+c)^2 + Dx + E(mx+c) + G = 0,

which expands to

(1+m2)x2+(2mc+D+Em)x+(c2+Ec+G)=0.(1+m^2)\,x^2 + (2mc+D+Em)\,x + (c^2+Ec+G) = 0.

This is Ax2+Bx+C=0Ax^2+Bx+C=0 with A,B,CFA,B,C \in F, so by the quadratic formula

x=B±B24AC2AF(Δ),Δ=B24ACF,x = \frac{-B \pm \sqrt{B^2-4AC}}{2A} \in F(\sqrt{\Delta}), \qquad \Delta = B^2-4AC \in F,

and then y=mx+cy = mx+c lands in the same field F(Δ)F(\sqrt{\Delta}), since m,cFm,c \in F. Either Δ\Delta is already a square in FF (and the point was in FF all along), or [F(Δ):F]=2[F(\sqrt{\Delta}):F] = 2 exactly.

Circle meets circle: reduces to the line case. Two circles x2+y2+D1x+E1y+G1=0x^2+y^2+D_1x+E_1y+G_1=0 and x2+y2+D2x+E2y+G2=0x^2+y^2+D_2x+E_2y+G_2=0 (both with FF-coefficients) both contain the quadratic terms x2+y2x^2+y^2; subtracting one equation from the other cancels them and leaves

(D1D2)x+(E1E2)y+(G1G2)=0,(D_1-D_2)x + (E_1-E_2)y + (G_1-G_2) = 0,

a line with coefficients in FF (the radical axis of the two circles). Any intersection point of the two circles lies on this line and on either original circle, so it’s found by intersecting a line with a circle — exactly the case just handled. Degree at most 2 again.

So every single construction step produces coordinates lying in F(d)F(\sqrt{d}) for some dd in the current field FF — an extension of degree 1 or 2. Chaining these together, a constructible point reached after kk construction steps has coordinates in some field at the top of a tower

Q=F0F1F2Fk,[Fi+1:Fi]2 for every i.\mathbb{Q} = F_0 \subseteq F_1 \subseteq F_2 \subseteq \cdots \subseteq F_k, \qquad [F_{i+1}:F_i] \le 2 \text{ for every } i.

By the tower law for field extensions — degrees multiply up a chain, [Fk:Q]=i=0k1[Fi+1:Fi][F_k:\mathbb{Q}] = \prod_{i=0}^{k-1}[F_{i+1}:F_i] — the total degree [Fk:Q][F_k:\mathbb{Q}] is a product of 1’s and 2’s, hence a power of 2.

That’s a statement about FkF_k, the field generated by all the coordinates constructed along the way. To get a statement about one specific constructible number αFk\alpha \in F_k, apply the tower law once more to the sub-tower QQ(α)Fk\mathbb{Q} \subseteq \mathbb{Q}(\alpha) \subseteq F_k:

[Fk:Q]=[Fk:Q(α)][Q(α):Q],[F_k:\mathbb{Q}] = [F_k:\mathbb{Q}(\alpha)]\cdot[\mathbb{Q}(\alpha):\mathbb{Q}],

so [Q(α):Q][\mathbb{Q}(\alpha):\mathbb{Q}] divides [Fk:Q]=2s[F_k:\mathbb{Q}] = 2^s. A divisor of a power of 2 has no prime factors other than 2 (unique factorization), so it is itself a power of 2. That gives the theorem this whole subject rests on:

Theorem (Wantzel, necessity direction). If α\alpha is a constructible real number, then [Q(α):Q][\mathbb{Q}(\alpha):\mathbb{Q}] is a power of 2.

This is a one-way statement — it says constructibility forces degree to be a power of 2, not that every power-of-2-degree number is constructible (that converse is subtler, and gets its honest due later). But the forward direction alone is already enough to prove things are impossible, which is exactly what’s needed for the heptagon.

Regular polygons, roots of unity, and the totient function

Constructing a regular nn-gon means constructing nn equally spaced points on a circle, which — once you have a circle and one vertex — comes down to constructing a single central angle of 2π/n2\pi/n, since compass and straightedge can copy a given angle around a center repeatedly (mark off an angle equal to a given one is itself a three-line ruler-and-compass construction, no new field theory needed). So constructing the regular nn-gon reduces to constructing the point (cos(2π/n),sin(2π/n))\bigl(\cos(2\pi/n), \sin(2\pi/n)\bigr) on the unit circle centered at a constructed center. Conversely, from cos(2π/n)\cos(2\pi/n) alone you can recover sin(2π/n)=1cos2(2π/n)\sin(2\pi/n) = \sqrt{1-\cos^2(2\pi/n)} by building a right triangle with hypotenuse 1 — one more degree-2\le 2 step, which cannot change whether an overall degree is a power of 2. So: the regular nn-gon is constructible if and only if the single real number cos(2π/n)\cos(2\pi/n) is constructible.

Now bring in the primitive nn-th root of unity ζn=e2πi/n=cos(2π/n)+isin(2π/n)\zeta_n = e^{2\pi i/n} = \cos(2\pi/n) + i\sin(2\pi/n). Its minimal polynomial over Q\mathbb{Q} is the nn-th cyclotomic polynomial Φn(x)\Phi_n(x), of degree φ(n)\varphi(n) (Euler’s totient — the count of integers in {1,,n}\{1,\dots,n\} coprime to nn), so [Q(ζn):Q]=φ(n)[\mathbb{Q}(\zeta_n):\mathbb{Q}] = \varphi(n). This is a standard fact about cyclotomic fields; I’ll use it rather than reprove it here, since it would be a detour of its own.

ζn\zeta_n is not a real number for n3n \ge 3, so Q(cos(2π/n))\mathbb{Q}(\cos(2\pi/n)), sitting inside R\mathbb{R}, is a proper subfield of Q(ζn)\mathbb{Q}(\zeta_n). Concretely, ζn\zeta_n and its conjugate ζn1=ζn\zeta_n^{-1} = \overline{\zeta_n} satisfy ζn+ζn1=2cos(2π/n)\zeta_n + \zeta_n^{-1} = 2\cos(2\pi/n) and ζnζn1=1\zeta_n \cdot \zeta_n^{-1} = 1, so ζn\zeta_n is a root of

t22cos(2π/n)t+1=0,t^2 - 2\cos(2\pi/n)\,t + 1 = 0,

a quadratic over Q(cos(2π/n))\mathbb{Q}(\cos(2\pi/n)). It’s irreducible there — if it factored, ζn\zeta_n would already lie in Q(cos(2π/n))R\mathbb{Q}(\cos(2\pi/n)) \subseteq \mathbb{R}, but ζn\zeta_n isn’t real for n3n \ge 3. So [Q(ζn):Q(cos(2π/n))]=2[\mathbb{Q}(\zeta_n):\mathbb{Q}(\cos(2\pi/n))] = 2 exactly, and by the tower law,

[Q(cos(2π/n)):Q]=φ(n)2.[\mathbb{Q}(\cos(2\pi/n)):\mathbb{Q}] = \frac{\varphi(n)}{2}.

Combine this with the theorem from the previous section: cos(2π/n)\cos(2\pi/n) is constructible only if φ(n)/2\varphi(n)/2 is a power of 2 — and since φ(n)\varphi(n) is always even for n3n \ge 3, that’s exactly the same as saying φ(n)\varphi(n) itself is a power of 2. The geometric question “which regular polygons can be built?” has become the number-theoretic question “for which nn is φ(n)\varphi(n) a power of 2?”

Which nn make φ(n)\varphi(n) a power of 2

Write n=2kq1b1q2b2qrbrn = 2^k \cdot q_1^{b_1} q_2^{b_2} \cdots q_r^{b_r} with the qjq_j distinct odd primes. Euler’s totient is multiplicative over coprime factors, and φ(pb)=pb1(p1)\varphi(p^b) = p^{b-1}(p-1) for any prime pp, so

φ(n)=φ(2k)j=1rqjbj1(qj1).\varphi(n) = \varphi(2^k) \cdot \prod_{j=1}^r q_j^{b_j-1}(q_j - 1).

A product of positive integers is a power of 2 exactly when every one of those integers is itself a power of 2 (if any factor had an odd prime divisor pp, that pp would divide the whole product, and a power of 2 has no odd prime divisors). φ(2k)=2k1\varphi(2^k) = 2^{k-1} for k1k \ge 1 (or 11 for k=0k=0) is automatically a power of 2 for any kk — the factor of 2 in nn is never the obstruction. So the whole question comes down to each factor qjbj1(qj1)q_j^{b_j-1}(q_j-1).

Repeated odd prime factors are fatal. If bj2b_j \ge 2, then qjbj1q_j^{b_j-1} contributes a factor of the odd prime qjq_j itself to φ(n)\varphi(n), which can never divide a power of 2. So every odd prime dividing nn must appear to exactly the first power: nn‘s odd part must be squarefree. (This is exactly why n=9=32n=9=3^2 fails: φ(9)=32=6\varphi(9) = 3\cdot 2 = 6, and that stray factor of 3 is unavoidable.)

Single odd prime factors need qj1q_j - 1 to be a power of 2. With bj=1b_j = 1, the constraint on φ(qj)=qj1\varphi(q_j) = q_j - 1 being a power of 2 means qj=2e+1q_j = 2^e + 1 for some positive integer ee.

And ee itself must be a power of 2. Suppose ee has an odd divisor d>1d > 1, and write e=dfe = df with f1f \ge 1. Then, using the factorization ad+1=(a+1)(ad1ad2+a+1)a^d + 1 = (a+1)(a^{d-1} - a^{d-2} + \cdots - a + 1) that holds whenever dd is odd (apply it with a=2fa = 2^f):

2e+1=(2f)d+1=(2f+1)((2f)d1(2f)d2+2f+1).2^e + 1 = (2^f)^d + 1 = (2^f+1)\bigl((2^f)^{d-1} - (2^f)^{d-2} + \cdots - 2^f + 1\bigr).

Since d>1d>1, f<ef<e, so 2f+12^f+1 is a genuine factor of 2e+12^e+1 with 1<2f+1<2e+11 < 2^f+1 < 2^e+1 — a nontrivial factorization, so 2e+12^e+1 is composite. Contrapositive: if 2e+12^e+1 is prime, ee has no odd divisor greater than 1, meaning ee is itself a power of 2.

Putting the three constraints together: nn‘s odd part must be a product of distinct primes, each of the special form 22m+12^{2^m}+1. Primes of this form have a name.

The Fermat primes

Fm=22m+1F_m = 2^{2^m}+1 is the mm-th Fermat number. Checking the first few by direct arithmetic:

F0=21+1=3,F1=22+1=5,F2=24+1=17,F3=28+1=257,F4=216+1=65537.\begin{aligned} F_0 &= 2^{1}+1 = 3, \\ F_1 &= 2^{2}+1 = 5, \\ F_2 &= 2^{4}+1 = 17, \\ F_3 &= 2^{8}+1 = 257, \\ F_4 &= 2^{16}+1 = 65537. \end{aligned}

All five are prime, and these are the five known Fermat primes: 3,5,17,257,655373, 5, 17, 257, 65537. Fermat himself conjectured every FmF_m is prime; the conjecture broke at the very next case. Euler showed F5=232+1=4,294,967,297F_5 = 2^{32}+1 = 4{,}294{,}967{,}297 factors as 641×6,700,417641 \times 6{,}700{,}417, so F5F_5 is composite. Every Fermat number beyond F4F_4 that anyone has managed to test has turned out composite too — a long list of them, well into the hundreds and thousands in index, all checked and none prime. Whether 3,5,17,257,655373, 5, 17, 257, 65537 are the only Fermat primes that will ever exist is a genuinely open problem in number theory. Nobody has proved there are finitely many, nobody has found a sixth. It sits there, unresolved, at the exact spot where this very classical geometry problem bottoms out.

The Gauss–Wantzel theorem

Assembling everything: φ(n)\varphi(n) is a power of 2 exactly when nn‘s odd part is a product of distinct Fermat primes (possibly the empty product, i.e., no odd prime factors at all), with no restriction on how many factors of 2 divide nn. That gives the full classification.

Theorem (Gauss–Wantzel). For n3n \ge 3, the regular nn-gon is constructible with compass and straightedge if and only if

n=2kp1p2pr,n = 2^k \, p_1 p_2 \cdots p_r,

where k0k \ge 0 and p1,,prp_1, \dots, p_r are distinct Fermat primes.

Gauss established the sufficiency half — that these cases really are constructible — in 1796, as a teenager, famously via the regular 17-gon; Wantzel supplied the necessity half — that no other nn works — in 1837, using essentially the field-degree argument above.

Running through small nn: 3,4,5,6,8,10,12,15,16,17,203, 4, 5, 6, 8, 10, 12, 15, 16, 17, 20 are all constructible (check 15=3×515 = 3 \times 5, two distinct Fermat primes, φ(15)=2×4=8\varphi(15) = 2 \times 4 = 8 — a case the Greeks themselves handled by combining the triangle and pentagon constructions). Meanwhile:

Every one of those fails for a checkable, arithmetic reason — not “nobody’s found it yet,” but “the totient function provably isn’t a power of 2 for this nn.”

Building the cases that work — a sketch, honestly labeled

Wantzel’s necessity direction is a clean, complete argument, and the section above proved it in full. The other half — that every Fermat-prime case genuinely is constructible — is the harder, more constructive direction, and I want to be upfront that this post sketches it rather than carries it out. Doing it properly for n=17n=17, the way Gauss actually did, means exhibiting cos(2π/17)\cos(2\pi/17) as an explicit tower of nested square roots, and that computation is genuinely intricate.

The modern way to see why it must work uses Galois theory (which postdates Gauss’s construction by a few decades — Galois’s own work dates to the early 1830s, so Gauss couldn’t have used this framing in 1796, and didn’t). The extension Q(ζn)/Q\mathbb{Q}(\zeta_n)/\mathbb{Q} is Galois, with Galois group isomorphic to (Z/nZ)×(\mathbb{Z}/n\mathbb{Z})^\times, of order φ(n)\varphi(n). When φ(n)\varphi(n) is a power of 2, that Galois group is a 2-group, and every finite 2-group has a chain of subgroups of every intermediate order — index 2 in the next one up, all the way from the trivial group to the whole thing. The Galois correspondence turns that chain of subgroups into a matching tower of subfields between Q\mathbb{Q} and Q(ζn)\mathbb{Q}(\zeta_n), each a degree-2 step above the last. And a degree-2 extension over a field of characteristic 0 is always obtained by adjoining a square root — solve the relevant quadratic. So ζn\zeta_n, and with it cos(2π/n)\cos(2\pi/n), sits at the top of a tower built entirely from square roots: constructible, by the very moves this post opened with.

Gauss’s actual route in 1796 didn’t have any of that machinery available and instead worked directly with Gaussian periods: since (Z/17Z)×(\mathbb{Z}/17\mathbb{Z})^\times is cyclic of order 16, its unique subgroups of orders 8, 4, 2, 1 give a chain of ways to partition the 16 nontrivial 17th roots of unity into sums invariant under successively smaller subgroups. Each successive sum (period) turns out to satisfy a quadratic equation over the previous one — first a sum of two “8-periods,” then splitting each into a sum of two “4-periods,” and so on down to cos(2π/17)\cos(2\pi/17) itself — which is precisely a hand-built version of the same degree-2 tower, discovered before the group theory that now explains why it had to exist. I won’t carry that computation through to the actual nested-radical formula for cos(2π/17)\cos(2\pi/17) here; it’s correct, it’s beautiful, and it’s also several pages of bookkeeping that would be a full post of its own. The honest summary is: the existence of a square-root tower for every Fermat-prime case is something this post’s tools can prove in outline; exhibiting one explicitly, the way Gauss did by hand, is a separate and substantially harder undertaking.

The same toolkit kills two other classical problems

Wantzel’s 1837 paper didn’t stop at polygons — the identical degree argument disposes of two other famously stubborn Greek problems in a couple of lines each.

Doubling the cube asks for a cube with twice the volume of a given one, i.e., constructing 23\sqrt[3]{2} from a unit length. Its minimal polynomial x32x^3 - 2 is irreducible over Q\mathbb{Q} (Eisenstein’s criterion at p=2p=2 applies directly), so [Q(23):Q]=3[\mathbb{Q}(\sqrt[3]{2}):\mathbb{Q}] = 3 — not a power of 2. Impossible, by the same theorem.

Trisecting an arbitrary angle fails for the same reason on a specific case: trisecting 60°60° would require constructing cos(20°)\cos(20°), and the triple-angle identity cos(3θ)=4cos3θ3cosθ\cos(3\theta) = 4\cos^3\theta - 3\cos\theta with θ=20°\theta = 20°, cos60°=12\cos 60° = \tfrac12, gives x=cos(20°)x=\cos(20°) as a root of 8x36x1=08x^3-6x-1=0 — a cubic with no rational root (a short check of the candidates ±1,±12,±14,±18\pm1,\pm\tfrac12,\pm\tfrac14,\pm\tfrac18 rules each out), hence irreducible, hence degree 3 again. Not a power of 2, not constructible — so the general angle cannot be trisected by compass and straightedge, even though some angles (like 90°90°) trisect just fine.

Why this is satisfying

What makes this whole story land is how little it resembles a coincidence once you see the mechanism. The Greeks stared at the heptagon for two thousand years with no algebra to explain the wall they’d hit; it took turning “can I draw this” into “what’s the degree of this field extension” to see that the wall was made of number theory the entire time — specifically, of a still-open question about how many primes of the form 22m+12^{2^m}+1 exist. That’s a genuinely rare kind of payoff in mathematics: a two-millennia-old, purely geometric puzzle, resolved completely on one side and reduced to an unsolved problem on the other, by a change of lens nobody involved in the original question could have anticipated.