Advertisement

Zombie invasion calculator

This is a fictional outbreak model with two groups: living humans and zombies. Each month the zombies infect a share of the humans, humans kill some zombies in defence, and untreated zombies decay. Human growth or decline runs alongside. Change the rates to see whether the outbreak dies out, stalls or overruns the population. It is a toy for exploring feedback, not a real epidemiological forecast.

Calculator

Humans at the end
999,989
Zombies at the end
0
Humans infected in total
11
Humans lost
11
Peak zombie population
100
Outcome
The humans are holding on.
Human and zombie populations over time Line chart. The data table follows. 0 0 6 250,000 12 500,000 18 750,000 24 1,000,000 Months Population
  • Humans
  • Zombies
Human and zombie populations over time data
SeriesMonthsPopulation
Humans01000000
Humans1999990
Humans2999989.1
Humans3999989.019
Humans4999989.01171
Humans5999989.0110539
Humans6999989.010994851
Humans7999989.0109895366
Humans8999989.0109890583
Humans9999989.0109890152
Humans10999989.0109890114
Humans11999989.010989011
Humans12999989.010989011
Humans13999989.010989011
Humans14999989.010989011
Humans15999989.010989011
Humans16999989.010989011
Humans17999989.010989011
Humans18999989.010989011
Humans19999989.010989011
Humans20999989.010989011
Humans21999989.010989011
Humans22999989.010989011
Humans23999989.010989011
Humans24999989.010989011
Zombies0100
Zombies19
Zombies20.8100000000000004
Zombies30.07290000000000006
Zombies40.006561000000000004
Zombies50.0005904900000000006
Zombies60.00005314410000000003
Zombies70.000004782969000000005
Zombies84.3046721000000027e-7
Zombies93.874204890000002e-8
Zombies103.4867844010000014e-9
Zombies113.138105960900005e-10
Zombies122.8242953648100058e-11
Zombies132.5418658283290053e-12
Zombies142.287679245496105e-13
Zombies152.0589113209464967e-14
Zombies161.8530201888518475e-15
Zombies171.6677181699666615e-16
Zombies181.5009463529699952e-17
Zombies191.3508517176729948e-18
Zombies201.215766545905696e-19
Zombies211.0941898913151272e-20
Zombies229.847709021836148e-22
Zombies238.862938119652535e-23
Zombies247.976644307687281e-24

Advertisement

How this calculator works

The model is a two-group version of a compartmental epidemic model. Each month, every zombie infects a fixed number of humans, limited by the number of humans left. Humans kill zombies in proportion to their own population, and a fixed share of the zombies decays. The infected humans leave the living group and join the zombies in the same step. When the infection term exceeds the sum of kills and decay, the zombie count grows; when it is smaller, the outbreak fades. Human growth or decline runs in parallel, so a growing population can outpace a slow outbreak while a shrinking one falls faster.

Formula

Each monthly step: humans infected = the smaller of the human population and zombies x bite rate. zombies killed = the smaller of the zombie population and humans x kill rate / 100. zombies decayed = zombies x decay share. Humans next month = humans x (1 + annual growth / 12) - humans infected. Zombies next month = zombies + humans infected - zombies killed - zombies decayed.

Worked example

A thousand humans and a hundred zombies, with a bite rate of 0.1 humans per zombie per month and no defence or decay, have ten infections in the first month. Humans fall to 990 and zombies rise to 110, and the following month brings eleven infections. With a defence rate of 100 zombies killed per 100 humans per month, the first month kills all hundred zombies and the humans finish unchanged at a thousand. With both rates at zero the populations never move.

Advertisement

Frequently asked questions

Is this based on real epidemiology?

It uses the same bookkeeping as a simple compartmental model, but the parameters are invented and the population is treated as one well-mixed group. Real outbreaks depend on contact networks, geography and behaviour.

Why do the zombie numbers sometimes collapse?

Kills and decay both remove zombies, and both scale with the zombie count. If their sum exceeds the number of new infections, the outbreak shrinks toward zero rather than growing.

What do the rates mean in everyday terms?

The bite rate is how many people one zombie infects each month, the kill rate is how many zombies one hundred humans remove each month, and decay is the share that simply wears out. Adjust them to match the story you want to explore.

Can the human population recover?

If the outbreak is contained, positive human growth can rebuild the population over many months. The model has no immunity or cure, so recovered humans simply remain human.

Sources

Advertisement