Herd Immunity Calculator: Vaccination Threshold for Disease Elimination

simulator beginner ~8 min
Loading simulation...
74% coverage needed for herd immunity at R₀=3, VE=90%

For a disease with R₀ = 3 and a vaccine with 90% efficacy, herd immunity requires vaccinating at least 74% of the population (since 1 - 1/3 = 67% must be immune, and 67%/90% = 74% coverage). At 70% coverage, R_effective is about 1.1 — outbreaks can still propagate slowly.

Formula

Herd immunity threshold: p_c = 1 - 1/R₀
Required coverage: coverage_min = p_c / vaccine_efficacy
Effective reproduction number: R_eff = R₀ × (1 - coverage × VE)

The Herd Immunity Threshold

Herd immunity is the epidemiological tipping point where enough individuals are immune that an infectious disease can no longer sustain transmission. The critical threshold is elegantly simple: p_c = 1 - 1/R₀. For measles with R₀ around 15, this means 93% of the population must be immune — explaining why even small drops in vaccination coverage trigger outbreaks. For less transmissible diseases, the bar is lower but still demanding.

Vaccine Efficacy as a Multiplier

No vaccine is 100% effective. When vaccine efficacy (VE) is less than perfect, the required vaccination coverage increases proportionally. If a disease needs 67% immunity and the vaccine is 90% effective, you must vaccinate 67%/0.9 = 74% of the population. This amplification effect means that modest differences in vaccine efficacy translate into large differences in the logistics and cost of achieving herd immunity.

Waning Immunity and Booster Campaigns

The simple herd immunity calculation assumes permanent immunity, but many vaccines and natural infections provide protection that wanes over months to years. When immunity wanes, the effective immune fraction decreases and R_effective rises back above 1. This creates a dynamic equilibrium where continuous vaccination or periodic booster campaigns are needed to maintain the immune fraction above the herd immunity threshold — as seen with pertussis, influenza, and COVID-19.

Interactive Threshold Explorer

This simulation visualizes the herd immunity calculation across a range of diseases. Adjust R₀ to move between influenza (R₀ ~ 1.5), COVID-19 (R₀ ~ 3), and measles (R₀ ~ 15). Reduce vaccine efficacy to see coverage requirements jump. The R_effective gauge shows whether the current coverage achieves herd protection, with a clear red/green indicator for outbreak risk.

FAQ

What is herd immunity and how is it calculated?

Herd immunity occurs when enough of the population is immune that an infected person cannot sustain transmission. The threshold is p_c = 1 - 1/R₀. For measles (R₀ ≈ 15), this means 93% must be immune. For COVID-19 (R₀ ≈ 3), about 67%. When vaccine efficacy is less than 100%, the required coverage is higher: p_c / VE.

Why does vaccine efficacy matter for herd immunity?

If a vaccine is only 80% effective, 20% of vaccinated people remain susceptible. To get 67% of the population truly immune, you need to vaccinate 67%/0.8 = 84%. Lower efficacy vaccines require proportionally higher coverage. This is why highly efficacious vaccines are so important for diseases with high R₀ values.

What happens when immunity wanes over time?

If immunity from vaccination or natural infection wanes, the susceptible pool refills over time. This means herd immunity is not a permanent state — it must be maintained through booster campaigns or continuous vaccination of new cohorts. Diseases like pertussis and influenza require periodic boosters precisely because immunity wanes within a few years.

Can herd immunity be achieved through natural infection alone?

Mathematically yes, but the cost is enormous. For a disease with R₀ = 3, achieving 67% natural immunity means 67% of the population must be infected and recover. With even a 1% fatality rate, this implies massive mortality. Vaccines achieve the same mathematical threshold with dramatically less suffering, which is why vaccination is the preferred route to herd immunity.

Sources

Embed

<iframe src="https://homo-deus.com/lab/epidemiological-modeling/vaccination-threshold/embed" width="100%" height="400" frameborder="0"></iframe>
View source on GitHub