Fractal builder: Koch snowflake and Sierpinski triangle step by step, perimeter that grows forever and area that stays finite

Build the Koch snowflake and the Sierpinski triangle one step at a time. A live table follows the number of pieces, their size, the perimeter and the area: the snowflake's perimeter grows without end while its area never passes 8/5 of the first triangle, and the Sierpinski triangle's area shrinks to nothing.

Keep it one tap away for everyday use.

Bookmark Fractal builder?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Fractal
  2. Steps
  3. Table
  4. Practise
Nothing is uploadedWorks offline once open

Pick a fractal

n

n is the number of steps (0 to 6).

The picture

Try this

  • Watch the perimeter column of the snowflake: each step multiplies it by 4/3. Will it ever stop growing?
  • Now watch its area column. It grows too, but more and more slowly. Can it ever get past the circle that holds the first triangle?
  • For the Sierpinski triangle, what fraction of the area is left after each step? After 6 steps, how much is left?
  • Zoom into a corner of either picture in your head: each piece looks like the whole. That is what makes a fractal.

Check yourself

Fresh questions every time. Nothing is saved.

What it does

A fractal is a shape where each small part looks like the whole. You make one by repeating a simple rule again and again. This page builds two famous ones from an equilateral triangle:

  • Koch snowflake: cut every side into three equal parts and build a small triangle outwards on the middle part. Every side becomes four sides, each a third as long.
  • Sierpinski triangle: join the midpoints of every filled triangle and take out the middle one. Every triangle becomes three, each half as wide.

Move the step slider and watch the picture change. A table lists every step from 0 to 6, with the number of pieces, their side, the perimeter and the area, and the formulas are shown with your numbers. The surprise: the snowflake’s perimeter grows by a third at every step, without end, yet its area never passes 8/5 of the first triangle. The Sierpinski triangle keeps three quarters of its area each step, so its area shrinks towards zero.

It fits Class 8 Mathematics, exploring some geometric themes (patterns, self-similar shapes and repeated growth), and gives practice with powers and fractions. Patterns that repeat by turning and tiling are in the tessellation studio; for the Mandelbrot set and fractals you can zoom into, go to the fractal explorer.

How to use it

  • Pick Koch snowflake or Sierpinski triangle.
  • Move n from 0 to 6 steps. The dashed outline is the first triangle.
  • Type the side of the first triangle in cm to change all the lengths and areas in the table.
  • The highlighted row of the table is the step you are looking at.

A worked example

Koch snowflake from a triangle with 9 cm sides:

  • Step 0: 3 sides, perimeter 27 cm, area √3/4 × 81 ≈ 35.074 cm².
  • Step 1: 12 sides of 3 cm, perimeter 36 cm (27 × 4/3). Three small triangles of side 3 cm are added, so the area is 35.074 × 4/3 ≈ 46.765 cm².
  • Step 2: 48 sides of 1 cm, perimeter 48 cm. Area 35.074 × (1 + 3/5 × (1 − 16/81)) ≈ 51.962 cm².
  • The area can never pass 8/5 × 35.074 ≈ 56.118 cm², but after 6 steps the perimeter is already 27 × (4/3)⁶ ≈ 151.7 cm, and it keeps growing.

Sierpinski triangle from 8 cm sides: after 3 steps there are 27 triangles with 1 cm sides, and the area left is (3/4)³ = 27/64 of the start.

Check yourself

Four fresh questions each time: sides of a snowflake, a snowflake’s perimeter, triangles in a Sierpinski triangle, and the fraction of area left. Type the answer and press Check. Nothing is saved.

FAQ

How can a shape have an endless edge but a limited area? Each step adds less and less area (4/9 as much as the step before), so the total settles down. The edge is multiplied by 4/3 each time, and that never settles.

Why stop at 6 steps? After 6 steps the snowflake already has 12 288 sides and the pieces are too small to see on a phone. A true fractal is what you would get after endless steps.

Is this from the NCERT book? It covers the same topic with fibub’s own pictures and examples. fibub is not part of NCERT.

Where the numbers come from

  • The Koch snowflake (Helge von Koch, 1904) and the Sierpinski triangle (Wacław Sierpiński, 1915), with their perimeter and area formulas, are standard mathematics. Wording, pictures and examples are fibub's own.
  • Checked by measuring the drawn shapes directly (shoelace area and summed side lengths, steps 0 to 6) against the formulas, and against the limit of 8/5 for the snowflake's area.

Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

Last updated 2026-11-09.

Change log for Fractal builder

  1. Add #1248 Fractal builder Details on GitHub

Every change to fibub

Related tools

Fractal explorer #T375 Zoom deep into the Mandelbrot set and Julia sets, drawn in a background worker with smooth colours, or grow the Barnsley fern, Sierpinski triangle, carpet and Heighway dragon by the chaos game, with their fractal dimensions. Download a 2400 × 1800 PNG. Percentage bar #L127 A bar stands for the whole, split into ten 10% blocks. Drag along it to see 35% of 240 (or any percent of any number) with every step. Then chain two percentage changes and see why going up and down by the same percent never gets you back to the start. Tessellation studio #L129 Put triangles, squares, pentagons, hexagons and more around one point and see whether their corners close up to 360°, leave a gap or overlap. See a patch of the three shapes that tile alone, then draw a rangoli-style pattern that repeats round the centre with rotational and mirror symmetry. Quadratic explorer #L68 Slide a, b and c and watch the parabola move: vertex, roots and the discriminant update live, completing the square is drawn with tiles, and the middle term is split for you. With fresh practice questions. Pythagoras proof playground #L69 Drag a right triangle and watch the squares on its sides add up. Slide through four visual proofs (rearrangement, Bhaskara, similar triangles, Baudhayana) with your own side lengths, and list Pythagorean triples. Trig ratio explorer #L70 Drag the angle of a right triangle and see sin, cos and tan as ratios of its sides, with the exact values at 0°, 30°, 45°, 60° and 90°, the identities checked live, and the full unit circle for Class 11.