TOPICS
Search

Cube Packing


Cube packing asks for the smallest cube that can contain n unit cubes with arbitrary orientations and pairwise disjoint interiors. Let s(n) denote its side length. Comparing volumes and arranging the unit cubes in a cubic lattice gives

 n^(1/3)<=s(n)<=[n^(1/3)],

where [x] is the ceiling function. In particular, s(k^3)=k for every positive integer k.

For 2<=n<=8, the trivial construction starts with eight unit cubes in a 2×2×2 cubic lattice arrangement and removes 8-n of them. The containing cube has side length 2, which is the smallest known for every n in this range (Friedman 2026).

CubePackingBestKnown

The nontrivial best known packings for n<34 as of October 2026 are illustrated above and listed below, together with their discoverers and discovery dates (Friedman 2026). The illustrations are reproduced from Friedman's GitHub repository. The panels labeled 9-10 and 29-33 show the configurations with 10 and 33 cubes, respectively, from which cubes may be removed to obtain the other orders. The decimal side lengths are approximate reported values, and optimality is not asserted. For the remaining positive values n<34, the best known construction is the cubic lattice arrangement with side length [n^(1/3)] (Friedman 2026).

nexact side lengthapproximate side lengthdiscovererdate
92+1/sqrt(2)2.707...E. Friedman1998
102+1/sqrt(2)2.707...E. Friedman1998
112.88171...S. SønderlandOct. 2026
122.93151...Y. NakajimaOct. 2026
132.95614...R. HayesOct. 2026
142+7sqrt(2)/102.989...E. Friedman1998
283.66600...H. NakanoOct. 2026
29-333+1/sqrt(2)3.707...E. Friedman1998
CubePackingTen

The packing of 10 unit cubes illustrated above consists of two horizontal layers, each with four corner cubes and a central cube rotated through 45 degrees about a vertical axis. The left panel shows the square packing in one layer. Removing any cube gives a packing of nine unit cubes in the same containing cube.


See also

Cube, Packing, Square Packing

Explore with Wolfram|Alpha

References

Friedman, E. "Cubes in Cubes." Updated Oct. 15, 2026. https://erich-friedman.github.io/packing/cubincub/. Figure source: https://github.com/erich-friedman/erich-friedman.github.io/tree/master/packing/cubincub.

Cite this as:

Weisstein, Eric W. "Cube Packing." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/CubePacking.html

Subject classifications