Infection and immunity

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

The herd immunity threshold is not one number but the output of the formula 1 minus 1/R0, which climbs as a pathogen spreads faster. Measles, being extremely contagious, demands roughly 93 to 95 percent immunity, while less transmissible infections need far less. Real-world clustering and waning immunity make even that estimate a moving target.

The herd immunity threshold is not a fixed percentage. It is the output of a short formula, 1 minus 1/R0, that climbs as a pathogen becomes more transmissible, landing near 93 to 95 percent for measles while less transmissible pathogens clear the bar at much lower coverage. The formula also rests on assumptions, chiefly that people mix randomly and that immunity lasts, which rarely hold cleanly in real populations. That is why "the threshold" is better read as a moving target than a single, universal number.

Where the formula comes from

Start with R0, the basic reproduction number: the average number of secondary cases a single infectious person generates in a fully susceptible population. If part of the population is already immune, each infectious person meets fewer susceptible people, and the number of new cases per case falls. Work on target immunity levels for measles elimination expresses this as R equals (1 minus r) times R0, where r is the proportion immune and R is the effective reproduction number in that partly protected population.

An epidemic grows when R is above 1 and recedes when R falls below 1, because on average each case then produces fewer than one further case. Setting R equal to 1 and solving for r gives the critical value: **r\* equals 1 minus 1/R0**. Reach that fraction immune and, under the model's assumptions, sustained transmission cannot take hold. That single line of algebra is the entire origin of the "threshold" everyone quotes.

Why measles sits near 95 percent

Measles is the stress test for this math. Its R0 is frequently cited in the range of 12 to 18. Plugging the ends of that range into the formula gives 1 minus 1/12, about 92 percent, and 1 minus 1/18, about 94 percent. The World Health Organization states that herd immunity against measles requires about 95 percent of a population to be vaccinated, which sits just above the formula's output and places the practical target in the low to mid 90s. The high number is a direct consequence of the high R0: when one case can seed a dozen or more, only a very thin slice of the population can remain susceptible.

The R0 itself is less settled than the tidy "12 to 18" suggests. A systematic review by Guerra and colleagues, published in The Lancet Infectious Diseases in 2017, gathered 58 R0 estimates from 18 studies and concluded that measles R0 estimates vary more than the often cited range of 12 to 18. Because the threshold depends on R0, any uncertainty in R0 propagates directly into uncertainty about the coverage a community actually needs.

Why other pathogens ask for less

The same formula explains why no two diseases share a threshold. The relationship between R0 and the required immune fraction is nonlinear: the threshold climbs steeply as R0 rises, then flattens near the top. A pathogen with an R0 near 2 needs only about half the population immune (1 minus 1/2). One with an R0 near 4 needs roughly three quarters. By the time R0 reaches measles territory, the curve has pushed the requirement into the mid 90s, where small gaps in coverage carry outsized consequences. Herd immunity is therefore a pathogen-specific number that the transmissibility of the organism sets, not a fixed civic goal that applies uniformly.

The assumptions that bend the number

The clean formula assumes homogeneous mixing: everyone contacts everyone else with equal probability. Real populations cluster by age, geography, school, and belief. When people who decline vaccination cluster together, a community can post a reassuring average while harboring pockets where local immunity sits well below threshold, and measles finds those pockets. The measles elimination work cited above makes exactly this point, showing that accounting for age-specific contact patterns predicts outbreaks better than a single population-wide immunity figure.

Two further assumptions quietly matter. The first is durable immunity: the simple threshold treats protection as permanent, so waning immunity means a population must keep meeting the threshold over time, not simply cross it once. The second is that the threshold applies to the immune fraction, not the vaccinated fraction. Because no vaccine is 100 percent effective, the coverage required is the threshold divided by vaccine efficacy. For a target near 95 percent immunity and a highly but imperfectly effective vaccine, the arithmetic can demand nearly universal uptake, which is part of why measles control is so unforgiving.

What the number is, and what it is not

Read correctly, 1 minus 1/R0 is a useful first approximation, not a guarantee. It tells you the direction and rough scale of the coverage a population needs, and it explains why highly contagious diseases demand near-universal protection. It does not certify that any community above a headline percentage is safe, because averages hide clusters and immunity erodes. The World Health Organization also underscores an ethical boundary the math cannot: population immunity should be built through vaccination rather than by letting a pathogen spread, since deliberate infection trades a calculated figure for real cases and deaths. This article is educational and not medical advice.

References and sources

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

How this was researched. This explainer is built from the primary sources listed above and reflects Dr. Tojjar's own critical appraisal of that evidence. It explains and evaluates research and does not provide medical care.

This article is for general education and is not medical or professional advice. For guidance about your own health, talk with a qualified clinician.

Cite this article

Tojjar, D. (2023). The Math Behind Herd Immunity and Why the Threshold Is Not One Number. Dr. Damon Tojjar. https://readingtheevidence.org/articles/herd-immunity-threshold-math-explained/

Back to all insights