Herd Immunity Threshold: How Vaccination Protects Populations

simulator beginner ~8 min
Loading simulation...
Threshold: 66.7% immunity needed for R₀ = 3

For a disease with R₀ = 3, at least 66.7% of the population must be immune to achieve herd immunity. With a vaccine that is 90% effective, this requires vaccinating at least 74.1% of the population.

Formula

HIT = 1 - 1/R₀ (herd immunity threshold)
Required coverage = HIT / VE (accounting for vaccine efficacy)
R_effective = R₀ × (1 - coverage × VE) (effective reproduction number)

The Shield of Collective Immunity

Herd immunity is one of the most important concepts in public health. When a sufficient fraction of a population becomes immune to an infectious disease, the pathogen cannot find enough susceptible hosts to sustain transmission. This creates an indirect protective effect: even unvaccinated individuals are shielded because the disease cannot spread efficiently through the community. The threshold at which this occurs depends critically on how contagious the disease is.

The Mathematics of Protection

The herd immunity threshold has an elegantly simple formula: HIT = 1 - 1/R₀, where R₀ is the basic reproduction number — the average number of people one infected person infects in a fully susceptible population. For measles, with an R₀ of 12-18, the threshold is 92-95%. For influenza (R₀ ≈ 1.5), it is only about 33%. The higher the R₀, the more contagious the disease, and the more people must be immune to halt its spread.

Vaccine Efficacy and Coverage Gaps

Real-world herd immunity depends not just on how many people are vaccinated but on how well the vaccine works. A vaccine with 90% efficacy means 10% of vaccinated individuals remain susceptible. The required vaccination coverage is therefore HIT divided by vaccine efficacy. For measles with 95% effective vaccines, you need roughly 97% coverage — explaining why even small drops in vaccination rates can trigger outbreaks, as seen in communities with vaccine hesitancy.

When Herd Immunity Fails

Herd immunity can break down for several reasons. Waning immunity over time creates new susceptible individuals. Antigenic drift or shift in the pathogen (as with influenza) can partially evade existing immunity. Geographic clustering of unvaccinated individuals creates local pockets of susceptibility even when national coverage appears adequate. The simulation above lets you explore how these factors interact to determine whether a population is truly protected.

FAQ

What is herd immunity and how does it work?

Herd immunity occurs when enough people in a population are immune to a disease (through vaccination or prior infection) that the pathogen cannot find enough susceptible hosts to sustain transmission. This indirectly protects unvaccinated individuals — including those too young or immunocompromised to be vaccinated.

How do you calculate the herd immunity threshold?

The herd immunity threshold (HIT) is calculated as HIT = 1 - 1/R₀, where R₀ is the basic reproduction number. For measles (R₀ ≈ 15), HIT ≈ 93%. For COVID-19 (R₀ ≈ 2-3 for the original strain), HIT ≈ 50-67%. The required vaccination coverage is HIT / vaccine_efficacy.

Why does vaccine efficacy affect the herd immunity threshold?

No vaccine is 100% effective. If a vaccine is 90% effective, 10% of vaccinated people remain susceptible. To achieve the same level of population immunity, you need to vaccinate more people: required coverage = HIT / VE. For measles with 95% VE, you need ~98% coverage.

Can herd immunity be achieved without vaccines?

Theoretically yes, through natural infection, but the cost is enormous: achieving 93% immunity to measles naturally would require nearly the entire population to get infected, causing thousands of deaths and complications. Vaccines achieve the same result safely. Relying on natural infection is neither ethical nor practical for most diseases.

Sources

Embed

<iframe src="https://homo-deus.com/lab/epidemiology/herd-immunity/embed" width="100%" height="400" frameborder="0"></iframe>
View source on GitHub