← 🏙️ Society & Social Dynamics

🏘️ Schelling Lab

Run simulation
Group A Group B Empty
Step: 0
Unhappy agents: 0
Avg. same-type share:
Segregation index:
FPS:
Drag — rotate · Scroll — zoom

🏘️ Schelling's Model: Small Preferences, Big Segregation

A 3D city grid of two agent types self-sorts as each agent checks its immediate neighbors and relocates when its own-type share drops below a shared tolerance threshold, turning a mild individual preference into stark large-scale segregation.

🔬 What It Demonstrates

Even a tolerance as low as 30-40% same-type neighbors — a genuine minority preference, not intolerance — is enough for the local relocation rule to produce large, sharply bounded single-type blocks across the whole grid.

🎮 How to Use

Adjust tolerance, grid size, and vacancy rate, then watch unhappy agents (highlighted lighter) relocate each step. Reshuffle the city to restart from a fresh random distribution and compare how quickly segregation emerges.

💡 Did You Know?

Thomas Schelling built this model by hand with coins on graph paper in 1971; it remains one of the most cited demonstrations that group-level outcomes can diverge sharply from any individual's actual intentions.