🔬
🔬 Science & engineering

Lotka–Volterra Calculator (predator–prey populations, equilibrium and cycle length)

Results update as you type.

Your numbers

Understanding the Lotka–Volterra calculator — concept and principle

This calculator simulates the classic Lotka–Volterra predator–prey model. From starting populations and four rate constants it gives the populations at the end, the range each population swings through, the equilibrium point, the small-oscillation period and the cycle length found in the simulation. It is used in ecology and differential-equations courses.

Lotka–Volterra cyclePrey and predators chasing each otherPrey · predators40 · 9α · β0.5 · 0.02δ · γ0.005 · 0.4balance: prey γ/δ = 80, predators α/β = 25small-swing period 2π ÷ √(αγ) = 14Prey range19.1 – 211.3Predator range7.2 – 60.5Simulated cycle15.5
Starting far from the 80 : 25 balance makes big swings, so the cycle runs a little longer than 14.

How it is calculated

dx/dt = α x − β x y (prey grow and are eaten)

dy/dt = δ x y − γ y (predators grow by eating and die off)

Equilibrium: x* = γ ÷ δ, y* = α ÷ β

Small-oscillation period = 2π ÷ √(α γ)

The principle

Without predators, prey would grow exponentially; without prey, predators would die out exponentially. The interaction terms link them: encounters, proportional to x·y, remove prey and feed predators. When prey are plentiful, predators increase; more predators then cut the prey down; with less food, predators decline; and prey recover. The populations therefore circle around the equilibrium, with predator peaks lagging prey peaks. Small swings have the period 2π/√(αγ); larger swings take longer.

Worked example

Default inputs: x₀ = 40, y₀ = 9, α = 0.5, β = 0.02, δ = 0.005, γ = 0.4, 60 time units.

  1. Equilibrium prey = 0.4 ÷ 0.005 = 80; equilibrium predators = 0.5 ÷ 0.02 = 25.
  2. Small-oscillation period = 2π ÷ √(0.5 × 0.4) = 14.
  3. The simulation starts far from equilibrium, so the swings are large: prey range 19.1 to 211.3, predators 7.2 to 60.5.
  4. The simulated cycle length is 15.5, longer than 14 because the swings are large.
  5. After 60 time units: prey 23.4, predators 14.7.
How Prey at the end changes with Predator gain δ (per prey per time unit)How Prey at the end changes with Predato…02004006008000.001250.00250.003750.0050.006250.00750.01Example: 23.4Predator gain δ (per prey per time unit)
Each point is the calculator re-run with only “Predator gain δ (per prey per time unit)” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Predator gain δ (per prey per time unit)Prey at the end
0.00125642.9
0.002557
0.0037520.7
0.00523.4
0.0062528.6
0.007533
0.0136.5

How to read the result

The equilibrium values are the average levels around which the populations cycle. In this model the cycle never dies down or grows: its size depends only on the starting point. Raising the prey birth rate α raises the predator equilibrium, not the prey one, which is a well-known and counter-intuitive result of the model.

Common mistakes

Keep in mind: This is a teaching model with no carrying capacity, time lags or randomness. Real populations, such as lynx and hare, show noisier, damped or irregular cycles.

Frequently asked questions

Why do predator peaks come after prey peaks?

Predators need time to grow in number after food becomes plentiful.

Can either species die out in this model?

Not if both start above zero; the populations cycle forever.

What does α/β represent?

The predator population at which prey neither grow nor shrink.

Why is the simulated period longer than 2π/√(αγ)?

That formula holds for small swings; larger cycles take longer.

Sources: S. D. Ryan, Math 251 ODE and PDE, Lecture 29 "9.5 Predator-Prey Equations" (2012)

Checked 9 Nov 2026. Lotka–Volterra predator–prey equations, equilibrium points and linearised eigenvalues ±i√(ac) (period 2π/√(ac)): S. D. Ryan, Math 251 ODE and PDE, Lecture 29 “9.5 Predator-Prey Equations” (2012). Runge–Kutta integration: standard method.

🔬 All science & engineering tools →🌍 Calculators by country →