On this page
Take a square of side 1 and n identical coins. How large can the coins be if all n must lie flat inside without overlapping? For small n, Pythagoras and a pencil are enough. A few dozen circles in, the proofs need serious computer time.
How do you turn circle packing into a points problem?
Shrink the square by r on every side. A circle of radius r fits inside the unit square exactly when its centre lies in the inner square of side 1 − 2r. Two circles do not overlap exactly when their centres are at least 2r apart.
So the question becomes: spread n points in a square so the closest pair is as far apart as possible. Wikipedia's article on circle packing in a square states this equivalence.
If the best spread of n points in a unit square has smallest distance d, scaling gives 2r = d(1 − 2r), so r = d/(2 + 2d). That one line does all the work below.
What is the largest radius for 2, 3, 4 and 5 circles?
Each hand-worked answer below matches the radius in Eckard Specht's Packomania table of circles in a square, which prints proven optimal radii in bold.
n = 2. Put the two points in opposite corners, so d = √2, the diagonal. Then r = √2/(2 + 2√2) = (2 − √2)/2 ≈ 0.2929.
n = 3. The three points form an equilateral triangle with one vertex in a corner, symmetric about the diagonal and tilted 15° from each side. Its side is 1/cos 15° = √6 − √2 ≈ 1.035, so r ≈ 0.2543.
n = 4. The four corners, d = 1, so r = 1/4: the familiar 2 × 2 grid.
n = 5. Four points in the corners and one in the centre. The centre is √2/2 from each corner, so d = √2/2 and r = (√2 − 1)/2 ≈ 0.2071.
Check n = 5 directly. A corner circle has its centre at (r, r) and the middle one at (1/2, 1/2). Their distance is √2(1/2 − r); setting it equal to 2r gives r(2 + √2) = √2/2, the same 0.2071. The five circles cover about 0.674 of the square, the density Packomania lists, down from about 0.785 for four circles.
If the jump from circles to points felt slippery, the Fermi Concept Library covers every concept in mathematics, each with its own lesson.
Why are some optimal packings irregular?
Tidiness runs out fast. The Wikipedia article notes that the plain square grid is optimal for 1, 4, 9, 16, 25 and 36 circles, but stops being optimal from 49 onwards.
Erich Friedman's Packing Center shows that the best square for six unit circles has side 2 + 12/√13, a layout proved optimal by Graham in 1963, and no grid gives that number.
Some optimal packings even contain rattlers: circles that are not jammed and can wobble without changing the answer. Packomania's table marks one loose circle in the proved optimal packings for n = 7, 13, 14, 17, 22, 28 and 29, and two for n = 11, 19, 21 and 26 (checking n up to 30). The tightest pairs fix the radius; a leftover circle needs room, not contact.
Where do proofs of circle packing stop?
Early proofs. Friedman's page credits Schaer (1964) for n = 7 and 9, De Groot (1990) for n = 10 and Nurmela and Östergård (1999) for n = 21 to 24.
By verified computer search. Markót and Csendes wrote in SIAM Journal on Optimization in 2005 that earlier computer methods could not go beyond 27 circles; their interval-arithmetic method solved 28, 29 and 30.
The current edge. Markót's 2021 paper in the Journal of Global Optimization gives computer-assisted proofs for 31, 32 and 33, taking 26, 61 and 13 CPU hours.
Beyond 33, Packomania lists packings up to n = 10,000. Apart from n = 36, where the 6 × 6 grid is proved optimal, the rest are records anyone could beat, not theorems. Any best layout is at least a local optimum: no small move of the points can push the closest pair further apart. That is the kind of condition you met in the KKT conditions for constrained optimisation; a proof must also rule out every other layout.
How close can a packing get to hexagonal density?
On an infinite plane, the densest arrangement of equal circles is the hexagonal one, with density π/(2√3) ≈ 0.9069, as Wikipedia's circle packing article records. Thue published a proof in 1890 that some considered incomplete; the first rigorous proof is credited to László Fejes Tóth in 1942. The lattice behind it is the one in our post on Eisenstein integers and the hexagonal lattice.
In a square, the walls waste space, and that matters less as n grows. In Packomania's records, density falls from about 0.785 at n = 4 to 0.674 at n = 5, yet the best known packings near n = 9,000 reach about 0.89 to 0.90, close to the hexagonal value but still below it.
To practise the coordinate steps behind each case, the Fermi Problem Library has a step-by-step solver that explains the reasoning.



