One grain can do nothing at all, or set off an avalanche across the grid. What changes if the rule is always the same?
01 / Play
Drop a grain
Click or tap a cell. With the board focused, use the arrow keys to move and Enter to drop.
0123 grainstoppled last drop
The warmed pile has already received many random drops. Start empty to see cascades emerge as the grid fills.
02 / Measure
How big are the avalanches?
For each size s, the curve shows the fraction of nonzero avalanches with at least s topplings.
Current grid
Only uniform random drops enter the chart. Drops with no topplings are counted below the plot but excluded from the curve.
Try this: collect a curve on 16 × 16 and pin it. Switch to 48 × 48 and collect again. Do larger grids let avalanches reach bigger sizes?
03 / Local rules
Four grains and an open edge
Each site holds an integer height h. Add one grain, then wait until the grid is stable before adding another. When h reaches 4, the site topples: it loses four grains and sends one in each cardinal direction.
hsite → hsite − 4; hneighbour → hneighbour + 1
Grains sent off-grid are lost. Away from the edge, toppling conserves grains. The order of legal topplings changes neither the final heights nor the total number of topplings. That’s the model’s Abelian property.
04 / Reading the chart
What a power law would look like
If positive avalanche sizes obeyed a power law, their probability mass would fall as s−τ. For τ > 1, the large-s tail would then scale as:
P(S ≥ s | S > 0) ∝ s1−τ
That would look straight over the scaling range on log–log axes. A short straight stretch isn’t proof. Finite grids limit the tail, and the two-dimensional BTW model has more complicated scaling than one universal fitted line would suggest.
05 / Why it matters
Simple rules, no typical cascade size
Slow input builds up the pile; local topplings spread activity; the edges let grains escape. After a long run, the grid can produce cascades over many scales even though every input is the same size. Broad scaling here means no single typical scale within the scaling range, not that a finite board can produce arbitrarily large events.
06 / Beyond the grid
A possibility proof, not a diagnosis
Think of a fault that accumulates stress slowly and releases it in slips of very different sizes. The sandpile shows how local thresholds and redistribution can generate that kind of broad spread. It doesn’t establish the mechanism behind real earthquakes. Different processes can give similar-looking plots, so field data and independent evidence still matter.