Fractal Lab

Geometric

Menger sponge

Karl Menger generalized the Sierpinski carpet to 3D in 1926. Subdivide a cube into 27 subcubes (3 × 3 × 3); remove the central subcube and the six face-center subcubes (7 in total, leaving 20). Recurse on each remaining subcube. The limit is the Menger sponge: infinite surface area, zero volume.

Sierpinski carpet at depth 4: the 2D cross-section / face pattern of the Menger sponge.

At a glance

DesignerKarl Menger, 1926
Hausdorff dimensionlog3(20) ≈ 2.7268
VolumeZero (Lebesgue measure)
Surface areaInfinite
Self-similar copies20 copies at scale 1/3
Topological dimension1 (every point lies on a 1D curve through the sponge)

Why log3(20) ≈ 2.7268

20 self-similar copies at scale 1/3: dim = log(20) / log(3) ≈ 2.7268. Compared to a solid cube (dimension 3), the sponge is “a little less than” a cube. Compared to a surface (dimension 2), it’s much more than a surface, despite having no volume.

Topological surprise

Although the Menger sponge sits in 3D space, it has topological dimension 1. Every point is on a one-dimensional curve through the sponge, every smooth curve can be embedded inside it. The sponge is a “universal” one-dimensional space: any compact metric space of topological dimension ≤ 1 embeds homeomorphically into the Menger sponge.

2D cousin

The Sierpinski carpet is the 2D version: subdivide a square into 9 subsquares (3 × 3), remove the central one, recurse on the other 8. Dimension log3(8) ≈ 1.8928. Universal 1D embedding space in the plane, just like the sponge in space.

References

Try it

Run an interactive playground at /tools/sierpinski-carpet.

Quick quiz

Test yourself on menger-sponge

10 multiple-choice questions. Pick an answer for each, then submit to see explanations.

  1. Q1.At each iteration, a Menger sponge subdivides each cube into how many sub-cubes?

  2. Q2.How many cubes remain after one iteration?

  3. Q3.Hausdorff dimension of the Menger sponge is:

  4. Q4.Volume of the Menger sponge in the limit is:

  5. Q5.Surface area of the Menger sponge in the limit is:

  6. Q6.The Menger sponge was first described by:

  7. Q7.The cross-section of a Menger sponge along its face is the:

  8. Q8.Topological dimension of the Menger sponge is:

  9. Q9.Why does Menger call his sponge 'universal' for curves?

  10. Q10.The Menger sponge IFS uses how many contractive maps?

0 of 10 answered