Free course · Module I · Foundations · Lesson 5 of 21 · about 15 minutes

Sierpiński triangle, carpet and sponge

In this lesson you will
  • Construct the Sierpiński triangle and carpet
  • Compute their dimensions
  • Link the triangle to Pascal’s triangle

Wacław Sierpiński introduced his triangle in 1915. Take a filled triangle, join the midpoints of its sides and remove the middle triangle. Three triangles remain, each half the size. Repeat on each. After n steps the remaining area is (3/4)n of the original, which tends to zero.

The result consists of 3 copies scaled by 1/2, giving dimension log 3 / log 2 ≈ 1.585. It turns up in surprising places. Colour the odd entries of Pascal’s triangle and leave the even ones blank: the pattern is the Sierpiński triangle.

The Sierpiński carpet (1916) does the same with a square: divide it into a 3×3 grid and remove the centre. Eight copies scaled by 1/3 remain, so its dimension is log 8 / log 3 ≈ 1.893.

In three dimensions, Karl Menger’s sponge (1926) divides a cube into 27 smaller cubes and removes the central one and the six face-centre cubes. Twenty cubes remain, giving log 20 / log 3 ≈ 2.727. The sponge has zero volume but infinite surface area.

Key terms Sierpiński triangle Sierpiński carpet Menger sponge Pascal’s triangle

Try it live: Grow a Sierpiński triangle with the chaos game in the chaos game section →

Lesson quiz

  1. What fraction of the area remains after n steps of the Sierpiński triangle?

    • (1/2)ⁿ
    • (2/3)ⁿ
    • (3/4)ⁿ
    • (1/3)ⁿ
    Show answer

    (3/4)ⁿ. Each step keeps 3 of the 4 sub-triangles.

  2. Which pattern in Pascal’s triangle produces the Sierpiński triangle?

    • Prime entries
    • Odd entries
    • Multiples of 3
    • Square numbers
    Show answer

    Odd entries. Pascal’s triangle taken modulo 2, with odd entries marked, gives the Sierpiński pattern.

  3. How many smaller cubes remain after one step of the Menger sponge?

    • 8
    • 18
    • 20
    • 26
    Show answer

    20. 27 − 1 centre − 6 face centres = 20.

Take this quiz interactively and save your progress (free) →