Geometry · Nature · Proof
Why bees build hexagons
A Roman farmer wrote it down in 36 BC. A mathematician proved it in 1999. In between, the bees went on building the most economical wall in geometry, six sides at a time.
regular shapes can tile a flat surface. Only one is best.
at every corner of the comb, where three walls meet.
years between the first written claim and the proof.
the least wall a cell of area 1 can get away with: 1.861.
The observation
Lift a frame out of a beehive and hold it to the light. Thousands of cells, every one six-sided, every wall the same thickness, every corner the same angle, row after row with no ruler and no plan. People have been staring at this for as long as they have kept bees, and for almost as long they have suspected that the pattern is not only pretty. It is correct.
The oldest surviving statement comes from Marcus Terentius Varro, a Roman scholar who in 36 BC, at the age of eighty, wrote a handbook on farming for his wife. In the chapter on bees he repeats two explanations for the shape of the cell. One is charming: a bee has six feet, so naturally it builds with six sides. The other is the one that mattered. The geometers, Varro says, have shown that a hexagon drawn inside a circle “encloses the greatest amount of space”. It is the first hint of the real claim: the most room for a given length of wall.
About three and a half centuries later, Pappus of Alexandria, the last great geometer of the ancient world, made the argument properly. He opens the fifth book of his Collection with an essay now known as “On the Sagacity of Bees”. Honey, he says, is too precious to pour on the ground, so the bees build vessels for it, “all equal, similar and contiguous to one another, and hexagonal in form”. And they do this, in a phrase that has been quoted ever since, “by virtue of a certain geometrical forethought”.

Pappus’s reasoning is simple and exactly right as far as it goes. The cells must fit together with no gaps, so that nothing foreign can get into the spaces between them. Only three regular figures can do that. Of the three, the bees chose “the figure which has the most angles, because they conceived that it would contain more honey than either of the two others”.
That is the honeycomb conjecture in its first form: hexagons hold the most for the least. It sounds like something that should take an afternoon to prove. It took until 1999, and the reason it took so long is the most interesting part of the story.
The geometry
Start where Pappus started. Suppose every cell must be the same regular polygon, and the cells must cover the comb completely. How many choices are there?
Wherever several cells meet at a corner, their angles have to add up to a full turn, 360 degrees. An equilateral triangle has corners of 60°, so six of them fit. A square has 90°, so four fit. A regular hexagon has 120°, so three fit. And that is the complete list. A pentagon’s 108° does not divide 360: three pentagons leave a gap, four overlap. Anything with seven sides or more has corners wider than 120°, so not even three of them can meet.
Six meet at a point. Tiles.
Four meet at a point. Tiles.
Three leave a 36° gap. Fails.
Three meet at a point. Tiles.
So a bee that wants identical, regular, gapless cells has three options. Now compare them the way an accountant would. Give every cell the same floor area, so that each holds the same amount of honey, and ask how much wall each design needs. Walls are the expensive part. A worker bee sweats wax in tiny flakes from glands under her abdomen, and the colony pays for every gram of it in honey that could have been stored instead.
+7.5%more wax than hexagons
Squares are easy to build and waste no space. They still cost 7.5% more wax than hexagons for exactly the same storage.
The numbers are not close. For the same storage, a comb of squares needs 7.5% more wax than a comb of hexagons, and a comb of triangles needs 22.5% more. Among the three shapes that tile, the hexagon wins easily, and the reason is visible in the picture: it is the roundest. A circle is the most efficient fence there is, and the hexagon is the nearest thing to a circle that can still stand shoulder to shoulder with its neighbours.
The physics
If circles are the best fence, why does the comb not consist of round tubes? Because round tubes cannot share. Pack equal circles as tightly as they will go and each one touches six others, but only at single points, and between every three circles there is a small curved triangle of wasted space.
Those gaps add up to 9.3% of the whole area. A comb of tubes would throw away almost a tenth of the hive, and every cell would need its own complete wall. Now press the circles together.
9.3%of the comb is empty gap
Equal circles, packed as tightly as circles can be. Each one touches six neighbours, and the little three-cornered gaps between them add up to 9.3% of the area.
This is more than a nice animation. Soap bubbles do exactly this when they are crowded onto a flat surface, and for the same reason: surface tension is a relentless economiser of wall. It is also at the centre of a live argument about how bees actually do it.
In 2013 a team of engineers led by Bhushan Karihaloo proposed that the bees do not shape hexagons at all. They build round cells, the argument went, and the body heat of the workers softens the wax until it flows and pulls itself straight at the junctions, like the bubbles. In the same year, researchers who filmed comb construction with thermal cameras reported that the wax stays too cool for that, somewhere between 34 and 38 °C, and that the bees can be seen working the walls flat and the corners sharp with their own mandibles.
The evidence has kept moving toward the builders. In 2021 Michael Smith, Nils Napp and Kirstin Petersen measured more than 19,000 cells from twelve colonies and looked at the awkward places, where small worker cells give way to large drone cells or where two separate pieces of comb have to be joined. There the bees slip in five-sided and seven-sided cells, in matched pairs, to make the two grids fit. That is not something flowing wax does by itself. It is what a skilled bricklayer does when two walls do not quite line up. The question is still not fully settled. But notice that both sides describe something remarkable. Either a bee measures and builds a 120-degree corner in the dark with her jaws and antennae, or she arranges her work so that the laws of physics build it for her. A human engineer would be proud of either method.

Thickness of a cell wall, thinner than a sheet of office paper.
The angle at every corner, where exactly three walls meet.
Temperature the bees hold the nest at, summer and winter.
Roughly the weight of honey a comb can carry for each unit of wax, by beekeepers’ estimates.
The proof
Pappus compared three shapes and picked the winner. A mathematician reading him has an uncomfortable question. Who said the cells have to be regular? Who said they have to be identical, or have straight walls, or be polygons at all?
The real conjecture is far bolder than the one in the beehive. Take a flat surface and divide it into regions of equal area, in any way you like. The regions may be different shapes. Their walls may curve. A wall that bulges into one cell makes that cell’s boundary shorter and its neighbour’s longer, and perhaps some cunning mixture of fat cells and thin cells, bulges and dents, could shave a little off the total. The conjecture says no. Nothing beats the plain regular hexagon.
The honeycomb theorem
wall per unit area ≥ ⁴√12 ≈ 1.861
For any division of the plane into cells of equal area. Equality holds for the regular hexagonal honeycomb.
For centuries this was treated as obvious, which is a dangerous word in mathematics. The first real progress came in 1943, when the Hungarian geometer László Fejes Tóth proved it under one extra assumption: that every cell is convex, with straight sides and no dents. He knew that this was not the whole problem. Remove the assumption, he warned, and the proof would become very much harder, because curved walls let cells trade perimeter with one another in ways that are difficult to control.
The man who removed it was Thomas Hales, a mathematician at the University of Michigan who had just spent years on a far more famous problem. In 1998 he had announced a proof of Kepler’s conjecture, that no way of stacking equal spheres is denser than the greengrocer’s pyramid of oranges. That proof ran to hundreds of pages and gigabytes of computer checking. It belongs to the eighteenth of Hilbert’s twenty-three problems. Having finished it, Hales turned to the honeycomb.
His proof, announced in June 1999 and published in 2001, is about twenty pages long and needs no computer. The key is a single inequality that he called the hexagonal isoperimetric inequality. It assigns each cell a kind of score that rewards short walls, penalises the advantage a cell gains by bulging into its neighbours, and accounts for how many sides the cell has. Hales showed that no cell, of any shape, can score better than a regular hexagon, and that whatever one cell gains by stealing from its neighbours, the neighbours lose. Add up the scores over the whole comb and the conjecture falls out.
“Bees, then, know just this fact which is of service to themselves, that the hexagon is greater than the square and the triangle.”
Pappus of Alexandria, Collection, Book V, c. AD 320 (tr. T. L. Heath)
Pappus ends his essay with a gentle boast: we humans, “claiming as we do a greater share in wisdom than bees”, will investigate the wider problem. It took the claimants almost seventeen more centuries to finish the job.
The third dimension
A honeycomb is not a flat drawing. It is two layers of cells, back to back, opening on opposite faces of the comb, and the place where the two layers meet is the cleverest piece of carpentry in the hive.
A cell does not end in a flat floor. It ends in a shallow three-sided pyramid made of three identical rhombuses, and each of those rhombuses is at the same time one third of the floor of a cell on the other side. The two layers lock together like the fingers of two hands, sharing every scrap of floor exactly as they share every wall. Johannes Kepler noticed this in 1611, in the same New Year’s booklet in which he wondered why snowflakes always have six corners and first stated his conjecture about stacking spheres.
Seen from above, the floor of a cell is a hexagon divided into three diamonds that rise to a point in the middle. How steep should that point be? Too flat and the floor is weak. Too steep and it uses more wax than it needs to. Somewhere there is an angle that closes the cell with the least material. (The angles marked on the drawing are the true angles of each rhombus in three dimensions. Seen flat from above, as here, they look like 120° and 60°.)
In 1712 the astronomer Giacomo Maraldi measured the rhombuses in real comb, found angles close to 110° and 70°, and reasoned that the true figures must be 109°28′ and 70°32′. A generation later the French naturalist Réaumur had a suspicion, and passed the problem to a young mathematician, Samuel Koenig: what angles would use the least wax? Koenig calculated 109°26′ and 70°34′. The agreement with Maraldi was astonishing, and the two minutes of difference were chalked up to the insects.
Then in 1743 the Scottish mathematician Colin Maclaurin did the problem again by pure geometry and got 109°28′ and 70°32′. The error was Koenig’s. The bees’ angle is the exact one, the angle whose cosine is minus one third, the same angle at which the four bonds of a carbon atom spread in a diamond. It is still called the Maraldi angle.
There is a coda, and it keeps the story honest. In 1964 Fejes Tóth published a paper with the wonderful title What the Bees Know and What They Do Not Know. He showed that if you allow the floor to be made of two small hexagons and two rhombuses instead of three rhombuses, the cell can be closed with very slightly less wax, a saving of a few hundredths of one percent. He was the first to add that the bees’ version is simpler to build and that no beekeeper would ever notice the difference. In three dimensions, then, the hive is not perfect. It is merely within a whisker of it.
The pattern elsewhere
Once you know why the comb is hexagonal you begin to see the same answer turning up wherever the same question is asked: how do you divide a surface evenly, with the least boundary, or pack things tightly, with the least waste?



Aircraft floors, satellite panels, racing-car chassis and the cardboard inside a cheap door all use honeycomb cores for the bees’ reason: the most stiffness for the least material. Graphene, the strongest sheet ever measured, is a single layer of carbon atoms in hexagons. An insect’s eye is a dome of hexagonal lenses. Abakcus has met the shape before in pure mathematics, in the one and only magic hexagon, and in nature again in fireflies that flash in unison, another case of thousands of small creatures producing an order none of them could draw.
The open problem
The flat problem is closed. The solid one is wide open, and it has already produced one of the best surprises in modern geometry.
In 1887 Lord Kelvin asked the honeycomb question one dimension up. How do you fill space with cells of equal volume using the least total area of wall? It is the question a foam answers every time you pour a beer. Kelvin proposed a cell with fourteen faces, eight hexagons and six squares, slightly curved, and for more than a century nobody could beat it. Everyone assumed it was the answer, as everyone had once assumed about the hexagon.
Then in 1993 two physicists in Dublin, Denis Weaire and his student Robert Phelan, found a foam that uses 0.3% less wall. It is not made of one kind of cell but two, a twelve-sided one and a fourteen-sided one, in groups of eight, and it looks like nothing anyone would have guessed. The architects of the swimming hall for the 2008 Beijing Olympics liked it so much that they built the walls out of it.
Is the Weaire–Phelan foam the best possible? Nobody knows. There is no proof, and no better candidate. The three-dimensional honeycomb conjecture is waiting for its Hales. It is worth remembering the next time a theorem looks too obvious to need proving: the flat case was obvious and true, the solid case was obvious and false.

The question behind the question
Mathematics can say why the hexagon is best. It took two thousand years, but the matter is settled. What mathematics cannot say is how an insect with a brain smaller than a sesame seed comes to build the answer, in the dark, without ever having been shown one.
Pappus did not think this was a small question, and he did not think it was a question for geometry. His essay does not begin with bees. It begins with God, who has given to human beings “the best and most perfect notion of wisdom in general and of mathematical science in particular”, but who “allotted a partial share in these things” to some of the creatures without reason as well. To us, the ability to prove. To them, the gift of simply knowing what to do.
The same thought stands in the Qur’an, whose sixteenth chapter is named The Bee, and which says that the bee’s Lord inspired her to make her houses in the mountains, in the trees and in what people build. Kepler, who began his booklet when a snowflake landed on his coat as he crossed a bridge in Prague, wrote of a shaping power placed in things by their Creator. Three traditions, many centuries apart, look at the comb and come to one conclusion: this was given.
What is certain is that the order was there first. The hexagon was the best partition of the plane before there were bees to build it, before Varro kept hives and before Hales picked up a pencil. The bees did not invent it and neither did we. They were entrusted with building it. We were entrusted with understanding why.
“It is of course to men that God has given the best and most perfect notion of wisdom.”
Pappus of Alexandria, opening of “On the Sagacity of Bees”The shelf
On patterns, on packing and on the animals that worked it out first. Abakcus also keeps a longer list of the best books about bees.

Start here
Philip Ball · University of Chicago Press
Honeycombs, basalt columns, foams, spirals, stripes and cracks, each explained in plain language beside photographs large enough to get lost in. If one book could stand in for this whole article, it is this one.
See it on Amazon
The Six-Cornered SnowflakeJohannes KeplerThe 1611 booklet where snowflakes, honeycombs and stacked cannonballs meet. Short, playful and four centuries ahead.View on Amazon →
Kepler’s ConjectureGeorge G. SzpiroHow Hales solved the sphere-packing problem, the proof that came just before the honeycomb.View on Amazon →
Honeybee DemocracyThomas D. SeeleyHow a swarm of ten thousand chooses a new home by debate. The best bee book of its generation.View on Amazon →
The Buzz about BeesJürgen TautzThe colony as a single organism, with superb photographs of comb being built and heated.View on Amazon →
The Lives of BeesThomas D. SeeleyWhat honeybees do in the wild, in hollow trees, when nobody is keeping them.View on Amazon →As an Amazon Associate, Abakcus earns from qualifying purchases. Links above are affiliate links.
Questions
The honeycomb conjecture says that the regular hexagonal grid is the way to divide a flat surface into regions of equal area using the least total length of wall. It was suggested in antiquity, written down by the Roman scholar Varro in 36 BC and discussed by Pappus of Alexandria around AD 320. Thomas Hales proved it in 1999, so it is now a theorem.
Only three regular shapes tile a flat surface with no gaps: triangles, squares and hexagons. For cells of the same size, hexagons need the least wall: squares use about 7.5% more and triangles about 22.5% more. Beeswax is costly for a colony to make, so a hexagonal comb stores the most honey for the least wax, and its three-way joints make it strong.
Thomas C. Hales, then at the University of Michigan, announced a proof in June 1999, and it was published in the journal Discrete & Computational Geometry in 2001. László Fejes Tóth had proved a restricted version in 1943, assuming that every cell is convex. Hales removed that assumption, allowing cells of any shape with curved walls.
Researchers disagree about the mechanics. A 2013 study argued that bees mould roughly circular cells and that warm wax then flows into hexagons at the junctions. Thermal-camera studies published the same year found the wax too cool for that and showed the bees shaping the flat walls and sharp corners directly. In either account the finished comb is the same, with walls about 0.07 mm thick.
Almost, but not quite. Each cell ends in three rhombuses whose angles, 109°28′ and 70°32′, are exactly the ones that minimise wax for that design. In 1964 László Fejes Tóth found a slightly different cell bottom that would save a tiny fraction of a percent more. The full three-dimensional version of the problem, known as the Kelvin problem, is still unsolved.
Hexagonal patterns appear in the basalt columns of the Giant's Causeway, in snowflakes, in rafts of soap bubbles, in the compound eyes of insects and in a vast six-sided jet stream at Saturn's north pole. Engineers use honeycomb panels in aircraft and spacecraft, and the James Webb Space Telescope's main mirror is made of 18 hexagonal segments.
Beyond Euclid
One email a week, handpicked by Ali. 240 issues so far, free.
Keep wandering
A few more pieces in the same spirit — math, design, and slow attention.

17 Best Books About Bees, Beekeeping, and Honeybees
Seventeen books about bees and beekeeping: swarm democracy, the waggle dance, honey-hunting history, and three novels — and what each one actually gives you.
Open
The Magic Hexagon: 19 Numbers, One Sum, No Rivals
Nineteen numbers, fifteen lines, every one adding to 38. A railway clerk spent 47 years on it, and a proof showed no other magic hexagon can exist.
Open
Wilson Bentley: The Farmer Who Photographed 5,000 Snowflakes
In 1885 a Vermont farm boy fixed a camera to a microscope and caught a snow crystal on glass. He spent the next 46 winters doing it again.
Open
Hilbert's 23 Problems: The Complete List and What Became of Each
In Paris in 1900, David Hilbert handed mathematics its homework for the century. All twenty-three problems in plain words, with what was solved, what broke, and what is still open.
Open
Why Do Fireflies Flash in Unison?
Every May, the forests of Tennessee pulse with yellow-green light for two weeks. Tens of thousands of Photinus carolinus fireflies synchronize their flashes without any conductor — pure mathematics in action.
Open
The Geometry Behind Pringles: The Hyperbolic Paraboloid
A Pringle is a hyperbolic paraboloid — stack, snap, can, and factory physics.
Open