Topology

The Menger Sponge: A Cube With Zero Volume

The Menger Sponge is a three-dimensional fractal built by an endlessly repeated rule: divide a cube into 27 equal subcubes, throw away the center cube and the six face-center cubes, keep the remaining 20, and then do the same thing to each of those 20 — forever. Every step keeps only 20 of 27 parts, so the leftover shrinks to zero volume, yet the ever-multiplying tunnels drive its surface area to infinity. Its Hausdorff dimension is log 20 / log 3 ≈ 2.727 — more than a surface, less than a solid — and in 1926 Karl Menger proved it is a universal curve: it topologically contains a copy of every possible one-dimensional curve.
  • DiscoveredKarl Menger, 1926
  • Removed per step7 of 27 subcubes (keep 20)
  • Volume ratio(20/27)ⁿ ≈ 0.7407ⁿ → 0
  • Hausdorff dimensionlog 20 / log 3 ≈ 2.7268
  • Topological dimension1 (it is a curve)
  • Surface area2(20/9)ⁿ + 4(8/9)ⁿ → ∞

Interactive visualization

Press play, or step through manually. The visualization is yours to drive — try it before reading on.

Open visualization fullscreen ↗

Watch the 60-second explainer

A condensed visual walkthrough — narrated, captioned, under a minute.

The construction: cut, remove seven, repeat

Start with a solid unit cube M0. Slice it into a 3×3×3 grid of 27 identical subcubes, each of side 1/3. Label a subcube by its coordinates (i, j, k) with each of i, j, k in {0, 1, 2}. Now delete every subcube that sits in the middle of a slab — precisely, delete a subcube whenever at least two of its coordinates equal 1. That removes the single central cube (1,1,1) and the six face-center cubes, seven in all, leaving 20 subcubes. The result is M1, a cube pierced by a square tunnel through each pair of opposite faces.

The rule is then applied to every one of those 20 subcubes, producing M2 with 20² = 400 tiny cubes, then M3 with 8,000, and in general Mn with 20n cubes each of side (1/3)n. The Menger sponge is the intersection of this shrinking nested sequence, M = ⋂n≥0 Mn. Because each Mn is closed and bounded (hence compact) and the sequence is nested, the limit M is a nonempty compact set — it genuinely exists as a subset of the cube, not just as a picture that never finishes drawing.

Zero volume: a geometric series that vanishes

Volume is the easy paradox. Each iteration keeps 20 of the 27 equal subcubes, so it multiplies the occupied volume by exactly 20/27 ≈ 0.7407. Starting from volume 1, the volume of Mn is

Vol(Mn) = (20/27)n.

Since 20/27 < 1, this geometric sequence marches to zero: (20/27)10 ≈ 0.049, (20/27)50 ≈ 3×10−7, and in the limit the three-dimensional volume — formally the Lebesgue measure — is exactly 0. The sponge occupies no space at all.

Yet it is far from empty. It contains all twelve edges of the original cube, so it is uncountably infinite and connected. Zero volume does not mean "nothing"; it means the set is negligible in the specific sense that it can be covered by boxes of arbitrarily small total volume. This is the same distinction that lets the interval [0,1] contain the measure-zero Cantor set while remaining full of points.

Infinite surface area and a solid that isn't

Now the opposite extreme. Every time a tunnel is punched, new interior walls are exposed, and the walls multiply faster than they shrink. Tracking the exposed area of the approximating solid Mn gives the closed form

Area(Mn) = 2(20/9)n + 4(8/9)n,

which correctly returns 6 at n = 0 (the unit cube's six faces) and 8 at n = 1. The second term, with base 8/9 < 1, dies away. But the first term has base 20/9 ≈ 2.22 > 1, so it grows without bound: the surface area diverges to infinity.

So the same object simultaneously has zero volume and unbounded surface area. There is no contradiction — volume and area measure different things, and a shape can be squeezed thin enough to lose all bulk while its crinkling boundary becomes arbitrarily long. The sponge is, in effect, all surface and no interior: pick any point of it and any tiny ball around that point, and the ball meets the sponge in a piece that is itself a scaled sponge, riddled with holes at every scale.

Fractal dimension: log 20 / log 3

What number captures an object that is more than a surface but less than a solid? The box-counting (Minkowski) dimension. Cover the sponge with a grid of boxes of side ε and count how many N(ε) are needed. For a smooth surface N grows like ε−2; for a solid, like ε−3. The dimension d is the exponent, d = lim log N(ε) / log(1/ε).

Take ε = (1/3)n. At that scale the sponge is exactly covered by its 20n subcubes, so N = 20n and

d = log 20n / log 3n = log 20 / log 3 ≈ 2.7268.

This equals the general self-similarity dimension for a set made of N = 20 copies each scaled by ratio r = 1/3: d = log N / log(1/r). The formula is legitimate here because the 20 subcubes overlap only along their boundaries — the open set condition — which guarantees that the box-counting dimension, the self-similarity dimension, and the more delicate Hausdorff dimension all agree. The value ≈ 2.727 is precisely the threshold at which the sponge's "size" flips from infinite (in any dimension below it) to zero (in any dimension above it), including the ordinary integer dimensions 2 and 3.

Every face is a Sierpiński carpet

Look straight at one face of the sponge. The pattern of holes you see is the Sierpiński carpet: divide a square into a 3×3 grid, remove the central square, keep the 8 around it, and repeat forever. It is the exact two-dimensional analogue of the sponge, and it appears on the sponge's six faces because the removal rule, restricted to a face, deletes only the middle of each 3×3 block.

The carpet has its own paradox — area zero, infinite total boundary length — and dimension log 8 / log 3 ≈ 1.8928. Dropping one more dimension gives the classic Cantor set on a line: split into thirds, keep the two outer pieces, dimension log 2 / log 3 ≈ 0.6309, with zero length but uncountably many points. Cantor set, Sierpiński carpet, Menger sponge form one family — the same 1/3 scaling, keeping 2, 8, and 20 copies, in dimensions 1, 2, and 3 — and each is the "shadow" of the next.

The universal curve: Menger's 1926 theorem

Here is the deepest fact, and the reason Karl Menger introduced the object in 1926. Although the sponge lives in three-dimensional space and has Hausdorff dimension ≈ 2.727, its topological dimension is exactly 1. Topological (Lebesgue covering) dimension is a homeomorphism invariant that is always an integer; it counts, roughly, how small overlaps in a fine cover can be forced to be, and by that measure the sponge is genuinely a curve — one-dimensional — despite its fractal roughness. Hausdorff dimension, by contrast, is a metric quantity and can be fractional; the two need not match, and here they spectacularly do not.

Menger proved that this particular curve is universal: every compact metric space of topological dimension at most 1 — every "curve" in the topological sense, however tangled, knotted, or wild — is homeomorphic to some subset of the Menger sponge. A single fixed object in ℝ³ contains a faithful topological copy of all of them at once. This is the one-dimensional case of the Menger–Nöbeling embedding theorem, which says any compact space of topological dimension n embeds in ℝ2n+1; the sponge is the universal target for n = 1. In 1958 R. D. Anderson gave a purely topological characterization: the Menger sponge is the unique space that is compact, connected, locally connected, one-dimensional, has no local cut points, and contains no nonempty open piece that fits in the plane. Any space with those properties simply is the sponge.

As an iterated function system, and where it appears

The sponge is cleanly described as the attractor of an iterated function system (IFS). Take the 20 contraction maps f1, …, f20, each a similarity that shrinks space by 1/3 and drops the small copy into one of the 20 retained subcube positions. Hutchinson's theorem guarantees a unique nonempty compact set M satisfying the self-referential equation M = f1(M) ∪ … ∪ f20(M); that fixed point is the sponge, and iterating the maps from any starting shape converges to it. This is why the sponge looks the same at every magnification — it literally equals 20 shrunken copies of itself.

Beyond pure mathematics, the geometry is useful precisely because it packs enormous surface into finite space. Fractal antennas exploit the self-similarity to resonate across many frequency bands from a compact footprint; the Sierpiński and Menger patterns model porous media, catalysts, and acoustic and electromagnetic metamaterials where surface-to-volume ratio dominates behavior. It has also become a favorite object to build by hand: Jeannine Mosely's business-card sponge realized a level-3 stage from 66,048 cards, and the 2014 MegaMenger project assembled distributed level-3 sponges — roughly a million business cards worldwide — toward a level-4 approximation of a shape whose true limit has no volume at all.

The Menger sponge alongside its lower-dimensional relatives, all built with the same 1/3 scaling
PropertyCantor setSierpiński carpetMenger sponge
Ambient spaceline (ℝ¹)plane (ℝ²)space (ℝ³)
Build rulesplit in 3, keep 2 outer thirds3×3 grid, remove center (keep 8)3×3×3 grid, remove center + 6 face centers (keep 20)
Copies kept per step2820
Scaling ratio1/31/31/3
Hausdorff dimensionlog 2 / log 3 ≈ 0.6309log 8 / log 3 ≈ 1.8928log 20 / log 3 ≈ 2.7268
Ordinary measurelength 0area 0volume 0
Topological dimension0 (totally disconnected)11

Frequently asked questions

How can a cube have zero volume but infinite surface area?

Volume and surface area measure different things. Each iteration keeps only 20/27 of the volume, so the volume follows the geometric sequence (20/27)ⁿ → 0. But punching tunnels exposes new walls faster than they shrink, and the surface area 2(20/9)ⁿ + 4(8/9)ⁿ grows without bound because 20/9 > 1. The limit set is all boundary and no bulk.

What is the Menger sponge's dimension — 2 or 3?

Neither, in the fractal sense. Its Hausdorff and box-counting dimension is log 20 / log 3 ≈ 2.727, between a surface (2) and a solid (3). Separately, its topological dimension is exactly 1, which is why mathematicians call it a curve despite its appearance.

What does it mean that the Menger sponge is a 'universal curve'?

Menger proved in 1926 that every compact metric space of topological dimension at most 1 — every possible 'curve,' no matter how complicated or knotted — is homeomorphic to some subset of the sponge. One fixed object in three-dimensional space therefore contains a topological copy of all one-dimensional curves simultaneously.

Is the Menger sponge the same as the Sierpiński carpet?

They are close relatives, not the same. The Sierpiński carpet is the two-dimensional version — a square divided into a 3×3 grid with the center removed (keep 8), dimension log 8 / log 3 ≈ 1.893. Each of the sponge's six faces is exactly a Sierpiński carpet; the sponge is its three-dimensional analogue built by removing 7 of 27 subcubes.

Who discovered the Menger sponge and when?

Karl Menger described it in 1926 while developing dimension theory, which is why it is also called the Menger universal curve or Menger–Sierpiński sponge. He introduced it specifically to exhibit a universal object for one-dimensional compact spaces, not merely as a curiosity.

Can you actually build a Menger sponge?

Only finite stages, since the true fractal is a limit. Level-1 has 20 cubes, level-2 has 400, level-3 has 8,000. Enthusiasts have built physical level-3 sponges from business cards — Jeannine Mosely used 66,048 cards — and the 2014 MegaMenger project distributed the build worldwide using around a million cards toward a level-4 model.