Worked on the two-by-two table

Herd Immunity Threshold Calculator

Find the herd immunity threshold from the basic reproduction number R₀, the vaccination coverage needed at a given vaccine effectiveness, and the effective reproduction number at current coverage.

Herd Immunity Threshold Calculator

Where 1 − 1/R₀ comes from

The basic reproduction number R₀ is the average number of people one infectious person infects in a population with no immunity. An outbreak grows while each case produces more than one new case and shrinks when it produces fewer. If a fraction p of the population is immune, the average case produces R₀ × (1 − p) new ones, and that falls below 1 when p is greater than 1 − 1/R₀. For measles, with an R₀ usually quoted at 12 to 18, the threshold is 91.7% to 94.4%; the default example uses R₀ = 15, giving 93.3%. For an infection with R₀ = 3 the threshold is 66.7%, for R₀ between 5 and 7 it is 80% to 86%, and for seasonal influenza with R₀ around 1.3 only 23.1%. The formula assumes a population that mixes at random and immunity that blocks infection, not just disease.

Effectiveness raises the bar

Vaccines do not make every recipient immune. If vaccine effectiveness against infection is E, coverage c produces an immune fraction of c × E, so the coverage needed is the threshold divided by effectiveness. With R₀ = 15 and an effectiveness of 97%, the needed coverage is 93.3% ÷ 0.97 = 96.2%. With R₀ = 3 and 95% effectiveness it is 70.2%; with R₀ = 1.3 and 60% effectiveness, 38.5%. When the threshold divided by effectiveness is above 100%, vaccination alone cannot reach herd immunity, and the calculator says so. The default also enters a current coverage of 90%: the effective reproduction number is then 15 × (1 − 0.90 × 0.97) = 1.91, above 1, so imported cases can still start chains of transmission.

Why the threshold is not a finish line

National coverage can be above the threshold while outbreaks still occur, because people do not mix at random. Schools, religious communities and neighbourhoods with low coverage can sustain transmission among themselves. Immunity can wane, so the immune fraction falls over time even when coverage looks stable. And R₀ is not a fixed biological constant: it depends on contact patterns, crowding and season, which is why published values for the same infection cover a range. Heterogeneous mixing can lower the threshold reached through infection, but planning vaccination programmes on that basis is risky. Public health agencies set coverage targets with these factors in mind, usually above the simple threshold.

Common misunderstandings

Herd immunity does not mean no cases; it means each introduction tends to fizzle out. R₀ describes a fully susceptible population, while Rₜ or Rₑ describes the situation now, after immunity and control measures. Effectiveness against severe disease is often higher than effectiveness against infection, and only the latter feeds into this calculation. The figures here are classic textbook estimates for learning; vaccination decisions for individuals and populations should follow national immunisation programmes and public health agencies.

How to use it

  1. Enter the basic reproduction number R₀ for the infection and setting you are studying.
  2. Enter vaccine effectiveness against infection as a percentage.
  3. Optionally enter current vaccination coverage.
  4. Read the herd immunity threshold and the coverage needed at that effectiveness.
  5. Check whether the effective reproduction number at current coverage is above or below 1.

Questions from journal club

How is the herd immunity threshold calculated?

It is 1 − 1/R₀, where R₀ is the basic reproduction number. Above that immune fraction, each case infects fewer than one other person on average. For R₀ = 15, typical of measles, the threshold is 1 − 1/15 = 93.3%; for R₀ = 3 it is 66.7%.

Why is the coverage target higher than the herd immunity threshold?

Because not every vaccinated person becomes immune. Coverage needed equals the threshold divided by vaccine effectiveness against infection. A 93.3% threshold with 97% effectiveness requires 96.2% coverage. Uneven coverage between communities and waning immunity push practical targets higher still.

What is the difference between R₀ and Rₑ?

R₀ is the average number of infections caused by one case in a fully susceptible population. The effective reproduction number Rₑ (or Rₜ) applies to the current population, after immunity and control measures. With R₀ = 15 and 90% coverage of a 97% effective vaccine, Rₑ = 15 × (1 − 0.873) = 1.91.

Does reaching herd immunity mean an infection disappears?

No. It means chains of transmission tend to die out rather than grow, so introductions cause small clusters instead of large outbreaks. Pockets of low immunity can still sustain transmission, and if immunity wanes or coverage falls, the population can drop below the threshold again.

Disclaimer: These calculators are for education and for reading published research only. They work with summary counts from studies and populations and do not diagnose disease, interpret an individual’s test result or advise on treatment, testing or vaccination. Study measures such as relative risk, NNT and predictive values describe groups, not individuals, and confidence intervals use standard approximations that can differ from exact methods in small tables. Do not use the results for personal health decisions: consult a qualified health professional, and follow national and local public health agencies on outbreaks, screening and vaccination.