Zombie Invasion Calculator - Day-by-Day Outbreak Simulator

Zombie invasion calculator that updates humans and zombies each day until one group collapses. Read the day count, surviving humans, and final horde size.

Updated: June 20, 2026 • Free Tool

Zombie Invasion Calculator

Starting size of the human population. Try a town of 1,000 or a metropolis of 8,000,000.

Starting size of the zombie horde. A single Patient Zero or a full apocalypse.

%

Share of humans that flee when meeting a zombie. The rest stand and fight.

%

Per-fight chance a human wins and kills the zombie (before resurrection).

%

Per-bite chance a killed human rises again as a zombie.

Average humans each zombie tries to attack per day (capped at 5 per human).

%

Share of lethal injuries a zombie shrugs off and walks back from.

%

Share of fleeing humans a zombie actually catches.

Whether zombies die from lack of food when humans become scarce.

Results

Days survived
0
Surviving humans 0people
Final horde size 0zombies
Final day zombie attacks 0attacks
Final day humans lost 0people
Final day new zombies 0zombies
Final day zombies lost 0zombies

What Is Zombie Invasion Calculator?

A zombie invasion calculator is a day-by-day simulator that takes the starting size of a human population and a zombie horde and walks both groups forward in time until one collapses. Set the initial humans, initial zombies, defense stance, fighting skills, transformation probability, attack frequency, resurrection rate, zombie speed, and starvation mode, and the calculator prints how many days the population lasts, how many humans survive, and how large the final horde is.

  • Comparing Patient Zero scenarios: Start with one zombie and a city of any size to see whether the lone infected walker spreads the outbreak or is hunted down.
  • Stress-testing zombie film assumptions: Replicate parameters from Resident Evil, The Last of Us, or World War Z.
  • Planning a tabletop RPG or story: Tune parameters so the outbreak lasts exactly the right number of in-game days.
  • Teaching predator-prey dynamics: Walk through how a SIR-style two-population model updates both groups each day.

The simulation runs until one of the populations falls below 0.01% of its initial size, or until the 10,000-day safety cap. The default scenario starts with 10,000 humans and 1 zombie at 50% on every input and plays out as a slow Patient Zero spread, because Math.ceil rounds 0.5 up to 1 and the simulation reaches the 10,000-day safety cap.

If the playful outbreak framing appeals, the Among Us Calculator applies the same kind of role-assignment probability to an Among Us lobby instead of a zombie horde.

How Zombie Invasion Calculator Works

The calculator reads nine inputs, computes four daily deltas, and updates both populations until extinction. Below is the algorithm.

attacks = min(zombies x attackFrequency, humans x 5); flees = attacks x defenseStance; fights = attacks - flees; humanDeaths = flees x zombieSpeed + fights x (1 - fightingSkills); newZombies = humanDeaths x transformationProbability; zombieDeaths = fights x fightingSkills x (1 - resurrectionRate) + starve x (zombies - humanDeaths) [if starvation enabled]; next H = H_t - humanDeaths; next Z = Z_t - zombieDeaths + newZombies
  • attacks: Number of human-zombie encounters on day t. Capped at 5 attacks per human.
  • flees: Subset of attacks where the human runs. Equal to attacks times the defense stance.
  • fights: Subset of attacks where the human stands and fights. Equal to attacks minus flees.
  • humanDeaths: Humans killed on day t. Fleers caught by zombie speed plus fighters killed when the zombie wins.
  • newZombies: Killed humans that rise again. Equal to humanDeaths times the transformation probability.
  • zombieDeaths: Zombies lost on day t. Killed in combat (after resurrection) plus starvation losses.

The simulation uses Math.ceil to round every intermediate value so the day count and final population sizes stay deterministic. The calculator stops when either group falls below 0.01% of its initial size, or after 10,000 simulated days to avoid infinite plateaus.

Aggressive horde vs fighting town, 10,000 humans and 100 zombies

initialHumans=10000, initialZombies=100, defenseStance=0%, fightingSkills=50%, transformationProbability=50%, attackFrequency=5, resurrectionRate=0%, zombieSpeed=50%, starvationMode=0

Day 1: attacks = 500. flees = 0. fights = 500. humanDeaths = 250. newZombies = 125. zombieDeaths = 250. H = 9750. Z = 0.

1 day survived, 9,750 humans, 0 zombies. The horde is wiped out because humans kill twice as many zombies as they lose.

Fast starvation shrinks a static horde at 15% per day

initialHumans=100, initialZombies=100, attackFrequency=0, starvationMode=2

Day 1: zombieDeathsStarve = ceil(100 x 0.15) = 15. Z = 85. Z shrinks by ceil(Z_t x 0.15) each day until Z reaches 0.

20 days survived, 100 humans untouched, 0 zombies. The horde dies of starvation while humans never lose anyone.

According to Omni Calculator: Zombie Invasion, the zombie invasion model updates humans and zombies day by day using attacks = min(zombies x attackFrequency, humans x 5), and stops when either population falls below 0.01% of its initial value.

The same update structure is what the Viral Infection (SIR) Calculator runs for real epidemiology, just with susceptible, infected, and recovered compartments.

Key Concepts Explained

Four small ideas cover every input and every number in the results panel.

Attacks cap of 5 per human per day

Each zombie attempts up to attackFrequency encounters, but total encounters are capped at 5 per human.

Split between fleers and fighters

Defense stance decides the share of attacks that turn into fleers versus fights. Fleers get caught at the zombie speed rate.

Transformation is independent of resurrection

Transformation applies to humans that die. Resurrection applies to zombies that lose a fight. Both rates run independently.

Starvation is a third zombie death channel

Slow mode removes 5% of starving zombies per day; fast mode removes 15%. Calculated on starving zombies, not the original horde.

Transformation probability and resurrection rate together decide whether a single zombie can keep the outbreak going or whether the horde bleeds out in one day.

The model assumes uniform mixing: any zombie can run into any human. That is the same assumption SIR and Lotka-Volterra compartmental models use.

According to Wolfram MathWorld: Predator-Prey Equations, the Lotka-Volterra equations track two interacting populations whose sizes change each generation under uniform mixing, which is the same two-population framing this calculator uses to update humans and zombies day by day.

The same idea of tracking one population that grows or shrinks over discrete time steps is what the Bacteria Growth Calculator does for bacterial colonies, just with doubling time instead of zombie attacks.

How to Use This Calculator

Six short steps cover every input from a one-zombie outbreak to a full apocalypse.

  1. 1 Set the starting populations: Enter the number of humans and zombies at the start of day 1. Defaults are 10,000 humans and 1 zombie.
  2. 2 Pick the human defense stance: Choose the share of humans that will try to run from a zombie. The rest will stand and fight.
  3. 3 Set human fighting skills: Enter the per-fight chance that a human wins and kills the zombie. 100% means every fight ends with a dead zombie.
  4. 4 Set transformation probability: Enter the chance that a killed human rises again as a zombie. 100% means every killed human joins the horde.
  5. 5 Set zombie attack frequency, resurrection rate, and zombie speed: Attack frequency controls how many humans each zombie tries per day, resurrection rate controls how many lethal injuries zombies shrug off.
  6. 6 Pick a starvation mode and read the result: Choose No starvation, Slow (5% per day), or Fast (15% per day). Read days survived, surviving humans, and final horde size.

Try 10,000 humans and 1 zombie at all 50% with attack frequency 1. The lone zombie makes 1 attack, ceiling rounding pushes the 50% flee to 1, that fleer dies, and a new zombie rises, so day 1 ends with 9,999 humans and 2 zombies. Flip attack frequency to 5 to see 500 attacks overwhelm the town.

When the apocalyptic mood starts wearing off, the Age on Other Planets Calculator is a gentler Tools-category simulator that runs the same kind of plain-inputs-in, days-out format without the body count.

Benefits of Using This Calculator

The zombie invasion calculator turns a thought experiment into a number, which makes comparisons honest.

  • See whether your favorite zombie movie would actually work: Match the parameters to a specific film. A Resident Evil outbreak with 2% transformation and 80% resurrection plays very differently from a 28 Days Later rage virus with 100% transformation.
  • Compare fight vs flee on the same town: Run the calculator twice with only the defense stance changed, then compare day counts.
  • Test the starvation off-switch: Switch starvation off to model a Walking Dead-style horde, then turn fast starvation on and watch populations collapse.
  • Tune a tabletop or writing scenario: Set parameters so the simulation lasts the right number of days for a campaign arc.
  • Teach two-population dynamics with a familiar hook: Students can predict what happens when they raise the transformation probability.
  • Learn how the cap and rounding interact: The 5-per-human cap keeps the first day to 500 attacks even when the horde grows.

The biggest payoff is comparing two scenarios side by side. The calculator does not predict any actual zombie outbreak. Treat the result as a thought experiment.

When the simulator is more about deciding whether to commit to a long apocalypse-themed project than to the apocalypse itself, Is It Worth It Calculator takes the same Tools-category approach to weighing time and risk.

Factors That Affect Your Results

Six inputs and a few model assumptions drive every result in the panel.

Initial human population (1 to 10,000,000)

Larger human populations take longer to collapse because the cap of 5 attacks per human per day cannot scale with the horde.

Human defense stance and fighting skills

These two percentages decide whether humans take losses from fleers caught by zombie speed or from fights lost to the zombies.

Transformation probability and resurrection rate

Transformation multiplies the human deaths to produce new zombies. Resurrection is the share of lethal injuries a zombie shrugs off.

Zombie attack frequency and zombie speed

Attack frequency sets how many humans each zombie tries per day (capped at 5 per human). Zombie speed sets the share of fleeing humans that get caught.

Starvation mode (off, slow 5%, fast 15%)

Slow starvation removes 5% of starving zombies per day; fast starvation removes 15%. Starvation is the only way for humans to win once resurrection reaches 100%.

  • The model assumes uniform mixing, ignoring real geography, walls, and bunkers.
  • There is no incubation period. Bitten humans either die and rise in the same day or never turn.
  • Starvation rates are 5% (slow) and 15% (fast) per day regardless of season or temperature.
  • Math.ceil rounding differs from Omni's stochastic rounding, so day counts can differ by 1 or 2 days.

The factors that move the day count the most are usually initial zombie population, defense stance, and resurrection rate. Raising attack frequency above 1 rarely matters because the 5-per-human cap kicks in quickly.

The simulation does not include birth, immigration, or external reinforcements, so a small human population that survives never grows back on its own. The calculator does not model weapons, armor, or distance.

According to Wolfram MathWorld: SIR Model, the susceptible-infected-recovered model partitions a population into compartments updated each day, which is the same discrete-day compartment structure this calculator uses to track humans and zombies.

If the question becomes where on Earth the surviving humans should run to first, the Antipode Calculator finds the diametrically opposite point of any location so the survivors can plan a hemisphere-spanning escape.

Zombie invasion calculator panel showing humans, zombies, attack frequency, transformation probability, and resurrection rate inputs
Zombie invasion calculator panel showing humans, zombies, attack frequency, transformation probability, and resurrection rate inputs

Frequently Asked Questions

Q: What is the zombie invasion calculator?

A: The zombie invasion calculator is a day-by-day simulator that takes the starting size of a human population and a zombie horde and walks both groups forward in time until one collapses below 0.01% of its initial value. It prints the number of days survived, the surviving humans, and the final horde size, plus a breakdown of the final day's attacks, deaths, and new zombies.

Q: How does the zombie invasion calculator simulate a zombie outbreak day by day?

A: Each day the calculator caps zombie attacks at min(zombies times attackFrequency, humans times 5), splits attacks into fleers and fighters using the human defense stance, applies the zombie speed and human fighting skills to decide who dies, multiplies human deaths by the transformation probability to count new zombies, and removes zombies that lose fights after the resurrection rate is applied.

Q: How long do humans survive in the default zombie invasion scenario?

A: With 10,000 humans and 1 zombie at 50% on every input, Math.ceil rounds 0.5 flee up to 1, so day 1 ends with 9,999 humans and 2 zombies. From day 2 the horde trades 1 human for 1 zombie per day, reaching the 10,000-day safety cap with 0 humans and 2 zombies still walking.

Q: What does the zombie attack frequency field actually mean?

A: Zombie attack frequency is the average number of humans each zombie tries to attack on a given day. The total number of attacks is capped at 5 per human per day, so once the horde is large enough to overwhelm the 5-times-human cap, raising attack frequency further has no effect on day 1.

Q: Why does zombie resurrection rate change the outcome so much?

A: Resurrection rate controls the share of lethal injuries that a zombie shrugs off. At 0% the horde only shrinks when humans win fights, but at 100% no zombie ever dies in combat, which means humans can only win by starving the zombies when slow or fast starvation is enabled.

Q: What happens if zombies can starve to death versus never starve?

A: With No starvation the horde only loses zombies when humans win fights. With slow starvation enabled, starving zombies die at 5% per day. With fast starvation enabled they die at 15% per day, which is enough to wipe out a 100-zombie horde in 20 days even if no humans ever fight.