← Iris

Grains: 0 · Toppled: 0 · Avalanche: 0
Grid size 201
Speed Animated
Add amount 1
Color scheme Classic
Presets

The Abelian sandpile model, introduced by Bak, Tang, and Wiesenfeld in 1987, is one of the foundational examples of self-organized criticality. The rules are almost trivially simple: each cell on a grid holds some number of "grains." When a cell accumulates four or more grains, it topples — sending one grain to each of its four neighbors. Those neighbors may in turn topple, producing cascading avalanches of arbitrary size.

Despite this simplicity, the model produces remarkably complex behavior. The distribution of avalanche sizes follows a power law, meaning that large avalanches are rare but not negligibly so — there is no characteristic scale. This "scale-free" behavior appears in many natural systems, from earthquakes to forest fires to neural activity, and the sandpile model was the first clean mathematical example of how it can arise without any external tuning.

The model is called "Abelian" because the final configuration depends only on how many grains were added to each cell, not on the order in which they were added. This profound commutativity property means that the set of stable configurations forms a mathematical group. The identity element of this group — the unique configuration that, when added to any recurrent configuration, leaves it unchanged — produces a strikingly beautiful fractal pattern when visualized.

To see the identity fractal, start with a large pile at the center (try 100,000+ grains on a large grid) and let it fully relax. The four-fold symmetric pattern that emerges is not designed or programmed — it is an inevitable consequence of the toppling algebra. Each color represents a height (0, 1, 2, or 3 grains), and the boundaries between regions form intricate self-similar curves. The sandpile identity is one of mathematics' most beautiful emergent structures.