Ecology · interactive lab

Predator–prey simulator (Lotka–Volterra)

Simulate prey and predator populations with the Lotka–Volterra equations: set the four rates, watch the boom-and-bust cycles, and find the equilibrium point.

Predator–prey simulator (Lotka–Volterra)LIVE EXPLORATION
Green: prey · Orange: predators · dashed lines: the equilibrium the populations cycle around

Your rates

x = prey, y = predators. Without predators the prey grow exponentially; without prey the predators die off exponentially. The equilibrium is x* = γ/δ prey and y* = α/β predators. Pick the time unit (weeks, years) and population unit (animals, thousands) that fit your case.

Reading the cycles

dx/dt = αx − βxy · dy/dt = δxy − γy
    A little question. A bigger picture.

    Predator–prey simulator (Lotka–Volterra): common questions

    Wondering about the why? Start here.

    What are the Lotka-Volterra equations?

    They are a pair of differential equations: prey change as dx/dt = αx − βxy and predators change as dy/dt = δxy − γy. Prey grow at rate α when left alone and are removed in proportion to how often they meet predators (βxy); predators gain from those meetings (δxy) and die at rate γ when food is scarce. The simulator integrates them with a fourth-order Runge–Kutta method and plots both populations over time.

    Read: population growth models
    Why do predator and prey populations cycle?

    Predators lag behind their food. When prey are plentiful, predators breed and their numbers climb; heavy predation then drives prey down, predators starve and decline, and the prey recover to start the next cycle. With the default rates the populations orbit an equilibrium of x* = γ/δ = 30 prey and y* = α/β = 12 predators, with a period of about 15 time units, close to the small-swing estimate 2π/√(αγ) = 14.8. The lynx and snowshoe hare records kept by the Hudson’s Bay Company show roughly 10-year cycles of this kind.

    Compare single-species growth
    Is the Lotka-Volterra model realistic?

    It is a simplification: prey have unlimited food, predators eat nothing else, there is no carrying capacity, and the size of the cycle depends entirely on where the populations start. Real systems have refuges, alternative prey, and density limits that damp the swings, and small numbers can go extinct by chance. The model still captures the key insight that the two populations peak out of step and cycle around a fixed point.

    Practice ecology questions