90Nature

How bees get their hexagons

Why is a honeycomb made of hexagons? See which shapes fit together, how much wall each one needs and how round cells squeezed together turn into hexagons.

The hive

Six sides, and no gaps

Look inside a honeybee nest and the wax is made of six-sided cells packed side by side. People have asked for thousands of years why. Part of the answer is geometry, which is the same for anyone. Part is how soft wax behaves, and that part is still being argued about.

Three cells to try. In the first, see which shapes fit together with no gaps. In the second, see how much wall each shape needs for the same area. In the third, squeeze round cells into hexagons. The first two are exact maths. The third is a toy model. Without a script each cell shows one picture or table.

First cell

Which shapes fit together

To cover a flat floor with copies of one regular shape and leave no gaps, the corners that meet at a point must add up to a full turn, 360 degrees. A regular shape with n sides has corners of 180 minus 360 over n degrees. So only some shapes work.

Pick a shape. The page puts as many copies round one corner as fit, and shows the gap that is left. Triangles fit six round a corner, squares four and hexagons three. A pentagon leaves a gap of 36 degrees, and shapes with more than six sides leave bigger ones. Only the triangle, the square and the hexagon tile a plane.

Hexagons round one corner: 3, with no gap
For each regular shape, the angle in a corner, how many fit round a point and the gap that is left
ShapeCornerRound a point
Triangle60.0°6, no gap
Square90.0°4, no gap
Pentagon108.0°3, gap of 36.0°
Hexagon120.0°3, no gap
Heptagon128.6°2, gap of 102.9°
Octagon135.0°2, gap of 90.0°

A hexagon has corners of 120 degrees. Three fit round a point and 3 times 120 is 360, so there is no gap.

Second cell

The same room with less wall

Of the three shapes that fit, which one needs the least wall to enclose the same area? Wax is costly for the bees to make, so a cell with a shorter wall saves it. The length of the outline of a regular shape of area 1 is 2 times the square root of n times the tangent of 180 over n degrees.

The bars show the outline for each shape with the same area. The hexagon has the shortest of the three that tile. A circle is shorter still, but circles cannot fill a flat floor without gaps. Slide the number of cells to see the wax for a comb of that many cells. Each wall is shared by two cells, so it counts half.

Triangle4.56Square4.00Hexagon3.72Circle3.54Outline around one unit of area, in units
Wall needed for 100 cells of area 1, in units
ShapeOutline of one cellWall for 100 cells
Triangle4.56228
Square4.00200
Hexagon3.72186

For 100 cells the hexagon needs 186 units of wall, the square 200 and the triangle 228.

Third cell

Round cells squeezed into hexagons

Bees do not measure angles. Photographs of new comb show cells that start round. Where three round cells meet, the soft wax is pulled into straight walls with corners of 120 degrees, rather like soap bubbles pressed together. Some researchers think warm wax flows into place. Others think the cells are shaped by squeezing and not by melting. How it really happens is still debated.

Slide the squeeze from round to hexagon. This is a toy model: cells that start as circles touching their neighbours, and walls moved outwards until the gaps close. Round cells leave gaps that are about 9 per cent of the space. The hexagon leaves none.

Squeeze 0%: the gaps are 9.3% of the space

Round cells leave gaps of 9.3% of the space. This is a toy model.

Key takeaways

  1. Only triangles, squares and hexagons fit together with no gaps, because their corners divide 360 degrees evenly.
  2. For the same area, the hexagon needs the shortest wall of the three. About 7 per cent less than the square, and about 18 per cent less than the triangle.
  3. Hales proved in 1999 that a hexagonal grid has the least wall of any way to divide a plane into equal pieces.
  4. Round cells packed together leave gaps of about 9 per cent of the space. Squeezing them closes the gaps.
  5. The bees do not calculate. How wax and bees produce the hexagons is still debated.

Sources

Some of these sites could not be opened while this page was written, so some facts were checked through search results that quote them. That only triangles, squares and hexagons tile a plane with one regular shape, the honeycomb theorem and Hales’s proof of 1999, and Pappus of Alexandria as the classical source whose proof is lost each appeared in more than one place. The wall lengths, the percentages and the share lost between round cells are computed on the page from exact formulas, and checked against the known values (the hexagon outline of 3.72 for area 1, and a circle packing of 90.69 per cent). The search found no reliable ratio of wax to honey, so the page gives none. Sources disagree on how the hexagons form: some say warm, flowing wax is pulled into shape by surface tension, and others argue that the bees do not heat the wax enough and that the shape comes from mechanical squeezing. The page says it is debated and calls its drawing a toy model. The date of Hales’s publication differs between sources, 1999 or 2001, so the page says only that he proved it in 1999. Nothing here is advice.