Evidence explainer

Infection, immunity, and cancer

The Math Behind Herd Immunity and Why the Threshold Is Not One Number

There is no universal herd immunity percentage. The figure comes from 1 minus 1/R0, so it rises as a pathogen spreads faster, and its tidy assumptions rarely survive real communities.

Fully reviewed by Jasaman (Jasmin) Tojjar, MD, PhD

On this page
  1. Key points
  2. The one idea the formula captures
  3. Turning the idea into a threshold
  4. Why measles is the hard case
  5. Why most diseases ask for far less
  6. The assumptions that bend the number
  7. What the number tells you, and what it does not

There is no single herd immunity percentage that applies to every disease. The number is the output of one short equation, 1 minus 1/R0, and it slides upward as a pathogen becomes easier to catch; for measles, which spreads ferociously, the arithmetic lands somewhere around 93 to 95 percent immunity. For infections that transmit more slowly, the bar sits far lower. And because the equation assumes a tidy world that real communities do not provide, any headline figure is better understood as a rough target that keeps moving than as a fixed line a population crosses once.

Key points#

The one idea the formula captures#

Think of an outbreak as a chain of introductions. Each infected person passes the pathogen to some number of others before recovering. When almost everyone around them can catch it, that number is large and the chain lengthens, and when many contacts are already immune, the infectious person keeps meeting dead ends, and the chain sputters out.

Epidemiologists put a name on the first situation. The basic reproduction number, written R0, is the average number of new cases one infectious person produces in a population where nobody is protected; once part of the population is immune, we care instead about the effective reproduction number, R, which counts only the transmissions that actually succeed. Work on target immunity levels for measles elimination writes this as R equals (1 minus r) times R0, where r is the fraction of people who are immune.

Turning the idea into a threshold#

An epidemic keeps growing as long as each case produces, on average, more than one further case, meaning R is above 1. It fades once R drops below 1. The tipping point is exactly R equals 1.

Set the earlier expression equal to that tipping point and solve for the immune fraction:

(1 minus r) times R0 equals 1, which rearranges to r equals 1 minus 1/R0.

That is the whole derivation. Reach that share of the population immune and, within the model, sustained spread cannot get started, and every quoted herd immunity percentage traces back to this single line of algebra fed with a particular R0.

Why measles is the hard case#

Measles is where the math bites hardest. Its R0 is frequently placed in the range of 12 to 18. Drop the low end into the formula and you get 1 minus 1/12, roughly 92 percent. The high end, 1 minus 1/18, gives about 94 percent. The World Health Organization puts the practical vaccination target at around 95 percent, just above the formula's output. The reason is baked into the R0: when a single case can seed a dozen or more infections, only a sliver of the community can safely remain susceptible.

The reassuring "12 to 18" is itself tidier than the evidence. A 2017 systematic review in The Lancet Infectious Diseases pulled together 58 R0 estimates from 18 studies and found that measles transmissibility varies more widely than that familiar range implies. Since the threshold is built directly on R0, every bit of uncertainty in R0 flows straight through into uncertainty about the coverage a given community truly needs.

Why most diseases ask for far less#

The same equation explains why no two pathogens share a threshold, and why the relationship is not a straight line: the required immune fraction climbs steeply at low R0, then flattens as R0 grows large. An infection with an R0 near 2 needs only about half the population immune (1 minus 1/2). Push R0 to 4 and the requirement rises to roughly three quarters. By the time you reach measles territory, the curve has already bent up into the mid 90s, where even a small shortfall in coverage carries outsized risk. Herd immunity is therefore a property the organism sets through its own transmissibility, not a one-size civic quota.

The assumptions that bend the number#

The clean formula rests on homogeneous mixing, the idea that every person is equally likely to contact every other person. Real populations do nothing of the sort. They cluster by neighborhood, age, school, workplace, and belief. When families who decline vaccination live and gather near one another, a region can report a comfortable average while sheltering pockets where local immunity falls well under threshold. Measles has a talent for finding exactly those pockets. The measles elimination research noted above makes this point directly, showing that models built on age-specific contact patterns predict outbreaks better than any single population-wide immunity figure.

Two more assumptions deserve attention. First, the simple threshold treats immunity as permanent. Where protection wanes, a population has to keep clearing the bar year after year, not vault it once and relax. Second, the threshold refers to the immune fraction, which is not the same as the vaccinated fraction. Because no vaccine is perfectly effective, the coverage needed is the threshold divided by vaccine efficacy. When the target sits near 95 percent immunity and the vaccine, though strong, falls short of perfection, the arithmetic can demand almost universal uptake, and that is a large part of why measles control leaves so little margin for error.

What the number tells you, and what it does not#

Read honestly, 1 minus 1/R0 is a useful first approximation rather than a promise; it tells you the direction and rough magnitude of the coverage a population needs, and it makes clear why highly contagious diseases require near-universal protection. What it cannot do is certify that any community sitting above a headline percentage is safe, because averages conceal clusters and immunity erodes over time.

There is also a boundary the equation stays silent on. The World Health Organization stresses that population immunity should be built through vaccination, not by allowing a pathogen to circulate. Letting a disease spread to reach the same numerical target swaps a calculated figure for real illness, hospitalizations, and deaths. The math describes a condition; it does not endorse the cheapest route to meeting it.

Sources and further reading

  1. WHO: Herd immunity, lockdowns and COVID-19
  2. Target immunity levels for measles elimination (BMC Medicine, 2019)
  3. Basic reproduction number of measles, a systematic review (Lancet Infect Dis, 2017)

Questions and answers

Is the herd immunity threshold the same for every disease?

No. It depends entirely on how transmissible the pathogen is. A slow-spreading infection may reach the threshold with half the population immune, while measles requires immunity in the mid 90s.

Why is measles so demanding?

Its basic reproduction number is very high, often cited as 12 to 18. Because the required immune fraction is 1 minus 1/R0, a large R0 forces the threshold close to 100 percent, leaving almost no room for gaps in coverage.

Does reaching the threshold guarantee no outbreaks?

Not on its own. The formula assumes random mixing and lasting immunity. In real communities, unvaccinated groups often cluster together and protection can wane, so local outbreaks can still occur even when a wider average looks reassuring.