The Lab · Bak, Tang & Wiesenfeld, 1987

The Sandpile

Drop grains of sand on a grid, one at a time. Nobody designs anything. Pour in enough and an intricate pattern grows by itself.

The rule

A square holding 4 or more grains topples: it gives one grain to each of its four neighbours. That can make a neighbour topple too. Grains that fall off the edge are lost.

0123 grains

Drop the sand

5,100

Start from

Big starting piles topple for a few seconds before they settle. Watch them do it.

Avalanches

Last one– Biggest–

How many avalanches of each size. Each bar covers twice the sizes of the one before (the labels say how many topplings a bar starts at), and the heights are on a log scale too. Rain for a while and the tops make a straight line, sloping gently down until the grid's size cuts it off: a power law. There's no typical avalanche, just rarer and rarer bigger ones.

The grid

201

Changing the size clears the grid.

Click or drag on the grid to drop grains.