Zombie outbreaks are a favourite teaching example for epidemic modelling because they exaggerate what real infections do: every bite turns a susceptible person into a new source of infection. Mathematicians at the University of Ottawa famously published a SIR-style zombie model in 2009 and concluded that only quick, aggressive action saves humanity: a hesitant response lets the outbreak grow exponentially.
This simulator works day by day. Each zombie attacks a number of times; each attacked human either flees or fights depending on the defence stance. Fleeing humans escape unless the zombies are fast enough to catch them, and fighters win according to their skill. A bitten human turns into a zombie with the transformation chance or dies. Destroyed zombies can get back up, and zombies that cannot feed may starve.
Change one setting at a time to see what matters most: fast zombies and high attack rates speed the end, while skilled fighters, high transformation chances and starvation decide who wins the long game. The chart can use a logarithmic scale to show the first few zombies and the whole population together.
How to use the Zombie Invasion Calculator
- Initial number of humans
- Human defence stance
- Fighting skill of the average human
- Initial number of zombies
- Transformation probability
- Zombie attacks per zombie per day
- Resurrection rate of destroyed zombies
- Zombie speed
- Can zombies starve?
- Days to simulate
- Chart scale
Everything is calculated in your browser, so results appear instantly and nothing you type is sent to a server.
How it works
The model updates both populations once per simulated day with expected values (no randomness), stops when either side drops below one, and records the peak number of zombies and the totals of humans killed and turned.
Worked example
With the default settings each zombie makes 2 attacks a day. 75% of the humans flee and slow zombies catch 10% of them; the other 25% fight and, with 6/10 skill, win 59% of fights. Per attack that means 0.075 + 0.25 × 0.41 ≈ 0.18 bites, 90% of which create new zombies, while 0.25 × 0.59 ≈ 0.15 zombies are destroyed (10% get up again). The horde grows only slowly at first, then accelerates: the simulation shows the last human falling on day 183, with about 9,000 humans turned and 1,000 killed.
What changes the outcome most
| Change | Effect |
|---|---|
| Fast zombies | Fleeing humans are caught five times as often |
| Fighting skill 8/10 or more | Fighters destroy more zombies than they lose |
| Low transformation chance | Bites kill instead of recruit, so the horde shrinks |
| Starvation | Hungry zombies decay when humans hide |
Formula
Encounters = min(Z × attacks per day, 5H) · Bitten = fleeing × catch chance + fighting × (1 − win chance) · New zombies = bitten × transformation chance · Destroyed zombies = fighting × win chance (a share rises again next day) · Starved = Z × starvation rate × (1 − share fed)
Worked example
Inputs: Initial number of humans: 10,000; Human defence stance: Mostly flee; Fighting skill of the average human: Fit and prepared – 6/10; Initial number of zombies: 1; Transformation probability: 90 %; Zombie attacks per zombie per day: 2; Resurrection rate of destroyed zombies: 10 %; Zombie speed: Slow – catch 10% of fleeing humans; Can zombies starve?: Yes, slowly (2% a day without food); Days to simulate: 365; Chart scale: Linear.
Results: Outcome = Humanity falls on day 183 – 1,092 zombies roam the empty streets.; Day the outbreak ends = 183; Humans left = 7e-1; Zombies left = 1,092; Peak number of zombies = 1,133; Day of the peak = 181.
Key terms
- SIR model
- An epidemic model with susceptible, infected and removed groups.
- Transformation probability
- Chance that a bitten human rises as a zombie.
- Resurrection rate
- Share of destroyed zombies that get back up the next day.
- Starvation
- Gradual loss of zombies that fail to feed.
Frequently asked questions
How fast would a zombie outbreak spread?
With the default settings (one slow zombie, 2 attacks a day, mostly fleeing humans) a town of 10,000 falls on about day 183; fast zombies make it several times quicker.
Is it better to flee or fight?
Fighting only pays off with good fighting skill. At 8/10 or better, fighting stances can wipe out a small outbreak in days. Untrained fighters feed the horde.
What is the zombie SIR model?
An adaptation of the susceptible–infected–removed epidemic model in which removed zombies can come back; Munz and colleagues showed that only aggressive early action stops it.
Why does starvation matter?
Zombies that cannot catch anyone slowly decay, so a population that hides well can outlast them.
Why is the transformation chance important?
If bites usually kill rather than turn, the horde runs out of recruits and humans can win by attrition.
Is the simulation random?
No. It uses expected values each day, so the same inputs always give the same result.