Boids: How Starlings Fly Without Colliding
Starlings avoid collisions the same way simulated boids do: each bird watches only a handful of its nearest neighbors and makes constant tiny adjustments to spacing and heading. There is no leader, no signal passed down a chain, and no shared plan. Every bird runs the same simple rules at the same time, and safe, fluid flight is what falls out of it.
The three boids rules
The clearest model of how this works comes from computer scientist Craig Reynolds, whose 1987 simulation Flocks, Herds, and Schools: A Distributed Behavioral Model showed that convincing flock motion needs only three steering behaviors applied to each simulated bird, or “boid”:
- Separation — steer to avoid crowding your nearest flockmates. This is the anti-collision rule.
- Alignment — steer toward the average heading of your nearest flockmates, so everyone drifts toward a common direction.
- Cohesion — steer toward the average position of your nearest flockmates, which keeps the group from scattering.
Separation pushes birds apart just enough; cohesion pulls them back together; alignment keeps the whole neighborhood pointed the same way. Balanced against each other and repeated across every bird, these rules produce a flock that stays tight but never jams up.
Why “nearest neighbors” is the key
The rules only work if each bird applies them to the right neighbors. Here the real biology adds a crucial detail. When the STARFLAG project reconstructed the 3D positions of birds inside actual murmurations, Ballerini and colleagues (PNAS, 2008) found that each starling interacts with a fixed number of neighbors, about six to seven, rather than with everything inside a fixed distance.
This is called a topological rule instead of a metric one, and it is exactly what prevents pile-ups. Imagine a bird that only cared about neighbors within a set radius. When the flock spreads out, that bird would suddenly find itself alone and lose the thread. By instead locking onto its six or seven closest companions no matter how near or far they drift, each starling stays connected through every expansion and compression, including the violent density changes that happen when a falcon dives in. The network of “who watches whom” holds together, so the spacing corrections never break down.
Constant micro-corrections, not choreography
Put those pieces together and the mystery dissolves. A starling in a murmuration is not memorizing a routine. It is doing one thing over and over, many times a second: check my nearest neighbors, nudge away if I am too close, turn a little toward their heading, drift a little toward their center. Multiply that by tens of thousands of birds and you get the great folding, pouring cloud of a murmuration, with no collisions because every bird is always leaving itself just enough room.
The remarkable part is that this same recipe of local rules producing global order shows up far beyond birds. That broader idea is what we explore in how simple rules make complex beauty, and it is central to the full science of the murmuration.
If watching that ordered, collision-free motion is your idea of calm, it sits alongside the quiet, screen-based relaxation we cover in what ASMR is.
Frequently asked questions
How do starlings avoid crashing into each other? Each starling tracks only a small number of its nearest neighbors and continuously adjusts its speed and heading to keep spacing, match direction, and stay with the group. Collisions are avoided by these constant tiny corrections rather than by any central plan.
How many neighbors does a starling pay attention to? Field measurements from the STARFLAG project found each bird coordinates with about six to seven of its nearest flockmates, regardless of how densely packed the flock is.
Is there a leader directing the flock? No. There is no leader. The coordinated motion is a bottom-up result of every bird following the same simple local rules at once.