A number that decides whether an outbreak takes off
The basic reproduction number R0 counts how many secondary infections one infectious person produces in a fully susceptible population. If R0 > 1, each case produces more than one new case on average and the outbreak grows exponentially at first; if R0 < 1, the chain of transmission sputters and dies out. R0 is not fixed by the pathogen alone — it depends on contact rates, the duration of infectiousness, and how easily the specific pathogen transmits on each contact.
Where the threshold formula comes from
Herd immunity works by breaking chains of transmission before they can restart: if a large enough fraction of contacts are already immune, an infectious person's effective reproduction number drops below 1 even though R0 itself has not changed. If a fraction p of the population is immune, each infectious person's contacts are immune with probability p, so the effective reproduction number becomes Re = R0·(1-p). Set Re = 1 — the tipping point between growth and decline — and solve for p:
Re = R0 · (1 - p) set Re = 1 → herd immunity threshold: pc = 1 - 1/R0
This single formula is why diseases with very different biology need wildly different vaccination coverage. Measles, with R0 commonly cited between 12 and 18 due to how efficiently it spreads through the air, needs roughly 92 to 95% coverage. Seasonal influenza, with R0 typically around 1.3, needs only about 23%. The formula also explains why measles outbreaks reappear so quickly whenever local vaccination coverage dips even a few points below that threshold — the margin for error is thin precisely because pc is so close to 1.
Immunity is not just a count, it is a map
The formula above assumes homogeneous, well-mixed contact — everyone is equally likely to contact everyone else. Real populations cluster: a school, a religious community, or a neighbourhood with low vaccine uptake can sit well below the population-wide threshold even while the national average looks safe, and an outbreak can ignite and sustain itself locally inside that pocket. This is why public-health targets are set well above the bare pc and why coverage gaps, not just coverage averages, are what epidemiologists watch — clustered susceptibility is far more dangerous than the same number of unvaccinated individuals spread evenly through the population.
Two routes to herd immunity, and why they are not equivalent
Immunity accumulates either through vaccination or through prior infection, and the threshold formula does not distinguish between them mathematically — but the paths differ enormously in cost. Reaching pc through unmitigated infection means the disease burns through the population until enough people have been infected and recovered (or died) to cross the threshold, paying the full morbidity and mortality cost of the pathogen along the way. Vaccination reaches the same mathematical threshold while letting immunity accumulate without anyone needing to be infected first, which is the entire epidemiological argument for vaccinating rather than waiting out natural spread — the endpoint (herd immunity) is the same equation, but the price to get there is not.
Waning immunity and why the threshold is a moving target
For pathogens where immunity fades over time or where new variants partially evade prior immunity — influenza and, notably, the evolving lineages of SARS-CoV-2 — pc is not a number you cross once and keep. Immunity, whether from infection or vaccination, must be topped up as it wanes and as R0 itself shifts with new, more transmissible variants, which is why some diseases need a one-time push past threshold (measles, with a stable virus and durable vaccine-induced immunity) while others need ongoing seasonal campaigns to stay anywhere near it.
Frequently asked questions
Why does a disease with a higher R0 need higher vaccination coverage?
The herd immunity threshold is pc = 1 - 1/R0. As R0 grows, 1/R0 shrinks toward zero, which pushes pc toward 1 — nearly the entire population needs to be immune. A highly transmissible disease like measles, with R0 around 15, needs roughly 93% coverage, while a less transmissible one like seasonal flu, with R0 near 1.3, needs only about 23%.
Can an outbreak still happen even above the herd immunity threshold?
Yes, in pockets. The threshold formula assumes immunity is spread evenly through a well-mixed population. If unvaccinated individuals cluster together — in a school, a community, or a region with low uptake — that local group can sit below the threshold and sustain an outbreak even while the national average is well above pc.
Is reaching herd immunity through infection the same as reaching it through vaccination?
Mathematically the threshold formula does not care which route immunity comes from, but the human cost is completely different. Reaching the threshold through unmitigated infection means the disease has to spread through and sicken a large share of the population first, whereas vaccination builds the same statistical protection without anyone needing to be infected.
Try it live
Everything above runs in your browser — open Herd Immunity and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.
▶ Open Herd Immunity simulation