Skip to content
Science, Maths & Technology

What are your chances during a zombie apocalypse?

Updated Thursday 18th May 2017

According to mathematics we'd all die in a zombie apocalypse but nature and computer science offer us more optimistic outcomes. 

Two women dressed as zombies taking part in the Toronto Zombie Walk 2008. Creative commons image Icon Sam Javanrouh under CC BY-NC 2.0 licence under Creative-Commons license

The seminal paper When Zombies Attack: Mathematical Modelling of an Outbreak of Zombie Infection published in 2009 uses traditional epidemiological techniques (the patterns, causes, and effects of health and disease conditions in defined populations) to model a zombie outbreak. Their result is that we're all doomed in the event on a zombie outbreak, as dead people (including dead zombies) won't stay dead and will rise to eat more brains. Our only hope is to rapidly and overwhelmingly eradicate any zombie outbreak as soon as it occurs, which would probably involve large amounts of military firepower.

There are a couple of problems with this approach, however. One, pointed out by National Wildlife Federation naturalist David Mizejewski is that wildlife will quickly make short work of the zombie hordes, whether it being flocks of crows gorging themselves on conveniently walking stacks of carrion, or all manner of decomposing organisms reducing the zombies to little more than stacks of bones in a few days to a few weeks. This means that if zombies are deprived of new victims (either through quarantining an outbreak or by survivors holing up somewhere safe), the zombie outbreak will eventually burn itself out.

The other problem is the mathematical model assumes that people and zombies are in an undifferentiated mass with infections spread evenly across the population. While this is a reasonable assumption if you're thinking about large-scale epidemics across countries, it misses the effects you see with smaller numbers of people, from a few dozen to a few thousand. This is the territory of most zombie-based stories, so we need a different tool to understand what happens in these situations.

As a computer scientist, my first thought was to create a virtual world filled with people (and a few zombies) and "run" this world for a few weeks to see how the zombie outbreak played out. The world has a few rules that reflect how a zombie outbreak would play out.

  • When a zombie encounters a person, there's a chance that the zombie will infect that person and turn them into another zombie.
  • Zombies are only active for a while before they succumb to wild animals or decay.
  • Zombies can spot nearby people and will chase them for the brains. If there's no-one nearby, the zombie will move at random.
  • People like to be near other people and will move towards them.
  • People in a group can defend each other from zombie attacks, reducing their chances of being infected by a zombie.

"Infectiousness" represents two factors: how likely you are to turn into a zombie if it bites you, and how likely you are to beat off a zombie attacker before it can bite you in the first place.

The simulation proceeds by chance: people start in different places, there's a chance that a person will escape a zombie encounter unharmed, and people might move towards other people or they might move randomly. This means that different runs of the virtual world will produce different outcomes, even if the starting conditions are the same. To work out the expected outcomes for different situations, you have to run the model several times for each starting condition and this allows you to see the range of likely outcomes. In this case, I ran the virtual world 100 times and looked at the aggregate results of how many people survived the outbreak.

Repeated runs of the same world is good, but it doesn't tell you anything about how different types of zombie outbreaks will play out. For instance, we (luckily) don't have good real-world evidence for how likely you'll be infected if you encounter a zombie. For that, we need to set up the virtual world differently and run it a few times to see how the outbreak develops.

For this investigation, I changed four variables in world:

  • how likely a zombie is to infect a person they meet
  • how much people seek out other non-zombie people
  • how much better groups are at defending each other than lone individuals
  • how dense the initial population is

Each variable changed over a range, and I set up a virtual world for each of the 3000 or so combinations of starting conditions. With 100 runs for each combination, I had the results from over 300,000 worlds to look at.

What are the outcomes?

First, a zombie outbreak won't necessarily doom everyone. It depends a lot on the nature of the zombie attack. The plot below shows the percentage of survivors (averaged over all the runs) with different rates of zombie infectiousness and group defence, if the people have a medium tendency to flock together and there was a low initial population density. 

Graphical outputs from a computer simulation depicting what would happen if there was a zombie apocalypse. Copyrighted image Icon Copyright: The Open University

As you would expect, when the zombies are better at turning people into more zombies (high infection), fewer people survive the outbreak. When groups of people are better able to defend each other (high group defence), more survive. However, unless you have both inept zombies and good group defence, very few people survive, shown by the large blue region at the bottom of the plot.

Interestingly, the degree of "flocking" behaviour, where people seek out each other for mutual defence, doesn't have a large effect on survival rates. Even more interestingly, groups of people are bad for survival! What seems to happen is that groups of people can survive for a while until one or two zombies get lucky and infect someone. Then the group has a few zombies in its midst, the effect of mutual defence drops, and those zombies very soon infect the whole group. The chart below shows that more people survive if they don't seek each other out. 

Graphical outputs from a computer simulation depicting what would happen if there was a zombie apocalypse. Copyrighted image Icon Copyright: The Open University

Increasing the population density makes things worse. With a lot of people around, the zombies can easily find and infect humans when the outbreak starts, so the number of zombies rises quickly and soon overwhelm the remaining humans. With a lot of people clustered into large clumps, the zombies have a field day:

Graphical outputs from a computer simulation depicting what would happen if there was a zombie apocalypse. Copyrighted image Icon Copyright: The Open University

How to survive

What does this modelling say about how to survive a zombie attack? The most important criterion for survival is to pick your zombie outbreak properly. If you can, ensure the outbreak is by zombies that either aren't very infectious or who you can beat off easily.

But whatever the zombies are like, your best chance for survival is to avoid the zombies, and other people! Large groups will tend to attract zombies eager for brains; they may survive for a while, but once someone in the group turns, the rest will be infected before they have a chance to flee. Stay away from people and zombies and wait out the outbreak until the scavengers and decomposers have destroyed the zombies for you.


  • Mizejewski, D. (2013) "Zombies vs. animals? The living dead wouldn't stand a chance", Boing Boing, published 12:30pm, Mon 14th Oct 2013. 
  • Munz, P., Hudea, I., Imad, J., & Smith, R. J. (2009) "When zombies attack!: mathematical modelling of an outbreak of zombie infection", Infectious Disease Modelling Research Progress, 4, pp.133–150.
  • Wilensky, U. (1999) NetLogo, Center for Connected Learning and Computer-Based Modeling, Northwestern University, Evanston, IL.

For further information, take a look at our frequently asked questions which may give you the support you need.

Have a question?

Other content you may like

World AIDS Day Creative commons image Icon giant AIDS ribbon on City Hall / Jennifer Boyer / CC BY 2.0 under Creative-Commons license article icon

Health, Sports & Psychology 

World AIDS Day

1 December is World AIDS Day, a day designed to show support for people living with HIV and to commemorate people who have died.

World Heart Day 2016 Copyrighted image Icon Copyright: World Heart Federation article icon

TV, Radio & Events 

World Heart Day 2016

Today is World Heart Day. Find out all about your ticker with our free courses and activities concerning the heart.

OpenLearn Live: 31st August 2016 Copyright free image Icon Copyright free: Public domain article icon

History & The Arts 

OpenLearn Live: 31st August 2016

The brothers who started the mass production of aircraft. Then more free learning across the day.

Dawn Parsonage-Kent - Earth in Vision Creative commons image Icon The Open University under Creative Commons BY-NC-SA 4.0 license video icon

Nature & Environment 

Dawn Parsonage-Kent - Earth in Vision

Dawn Parsonage-Kent, Creative Director at Green.TV, expands on green television, how to rebrand the vulture, and the implications of changing audiences for environmental broadcasting.

30 mins
James Smith - Earth in Vision Creative commons image Icon The Open University under Creative Commons BY-NC-SA 4.0 license video icon

Nature & Environment 

James Smith - Earth in Vision

James Smith of the BBC's Natural History Unit talks about the experience of live broadcasting natural history content, as well as audiences craving the countryside in their homes, and how the NHU archival footage could be used to document the changing state of the UK's natural heritage.

30 mins
Sir David Attenborough - Earth in Vision Creative commons image Icon The Open University under Creative Commons BY-NC-SA 4.0 license video icon

Nature & Environment 

Sir David Attenborough - Earth in Vision

Sir David Attenborough discusses his inspirations, regrets, CGI, digital archive and the future of the planet.

40 mins
Yachts, planes and buses... Mind the (inequality) gap Copyrighted image Icon Copyright: Artwork: Catherine Pain Copyright: The Open University article icon

Society, Politics & Law 

Yachts, planes and buses... Mind the (inequality) gap

Gerry Mooney delves in to a new Oxfam report that lays bare the extraordinary level of inequality in the world. 

OpenLearn Live: 1st December 2015 Copyright free image Icon Copyright free: NASA article icon

Science, Maths & Technology 

OpenLearn Live: 1st December 2015

The woman who took Korea into space. Then more free learning during the day.

Lord John Browne - Stories of Change Copyrighted image Icon Copyright: Harry Borden audio icon

Nature & Environment 

Lord John Browne - Stories of Change

Lord John Browne, Engineer, Businessman and former Chief Executive of BP is interviewed by Roger Harrabin for 'Stories of Change'.