Understanding the Zombie Invasion Calculator
This tool simulates a fictional zombie outbreak using the SZR (Susceptible-Zombie-Removed) model — a set of three coupled differential equations built on the same compartmental structure used in real mathematical epidemiology (the SIR model for infectious disease). The zombie version was first formalized by Munz, Hudea, Imad and Smith in their widely cited 2009 paper "When Zombies Attack! Mathematical Modelling of an Outbreak of Zombie Infection." It is a genuine, well-established piece of applied mathematics, borrowed here for an entertaining scenario rather than a real forecast.
The formulas
The population is split into three compartments that always sum to your starting population: S (susceptible humans), Z (zombies), and R (removed — the dead who have not yet reanimated). Written as fractions of the total population, the basic model is:
- dS/dt = −β·S·Z — humans become zombies through contact, at transmission rate β.
- dZ/dt = β·S·Z + ζ·R − α·S·Z — zombies gain new members from infected humans and from reanimated removed individuals (rate ζ), and lose members to human resistance (destroy rate α).
- dR/dt = α·S·Z − ζ·R — destroyed zombies join the removed pool; the removed pool drains back into zombies at rate ζ.
This calculator numerically integrates those equations with fourth-order Runge-Kutta (RK4) over your chosen number of days, assuming births and non-outbreak deaths are negligible during the timeframe (a standard simplification for short, fast-moving outbreak models).
The destroy-rate vs. transmission-rate race
The outcome hinges on the balance between β (how fast zombies convert humans) and α (how fast humans destroy zombies). When α is comfortably larger than β, the zombie population is pushed toward zero within the simulated window. When β is larger than α, zombies grow at an accelerating rate once their numbers are large enough to matter, and eventually overtake the human population — the "tipping point" this calculator reports.
Reading your results
Humans remaining and Zombies remaining are the S and Z compartments at the end of your simulated period. Tipping point is the first simulated day on which zombies outnumber humans — if that never happens within your chosen window, the calculator says so instead of guessing. Outcome summarizes the trajectory in plain language: contained, spreading, dominated, or wiped out.