Shafaat Choyon.

Herd immunity gap calculator

How close is your community to stopping an outbreak before it starts? Enter how contagious the disease is, how well the vaccine works and today’s coverage to see the coverage you need, the gap to close, whether each case still spreads to more than one person, and the catch-up doses it would take. Load an example, from measles in a US school district to flu in a workplace.

Built from my own work: Population-scale access via the Lifebuoy partnership

LinkedInWhatsApp

Coverage needed-
Gap to close-
Each case infects-
Catch-up doses needed-

FormulaCoverage needed = (1 − 1 ÷ R0) ÷ vaccine effectiveness · each case infects = R0 × (1 − coverage × effectiveness) · catch-up doses = people × gap

What to do next

    Show the working, step by step

      Where I used this

      Coverage is a trust problem before it is a supply problem. On the Lifebuoy hotline we set up at Praava, doctors took about 3,000 calls a day because help arrived through a channel people already trusted. A catch-up campaign needs that kind of channel before it needs more doses.

      Read the case: Population-scale access via the Lifebuoy partnership →

      Everything is calculated in your browser. Nothing you type is sent or stored.

      Averages hide the pockets

      • This is the simple model. It assumes people mix evenly. They do not: unvaccinated children cluster in the same schools, neighborhoods and faith communities, so an area at 95% can hold a school at 70%.
      • Run it for the pocket, not the county. Use school or neighborhood coverage where you can get it. That is where the next chain starts.
      • Immunity from past infection is not counted here, so the result is cautious for older adults and accurate for young children.
      • When the number needed is above 100%, the vaccine alone cannot stop spread. Pertussis is the classic case: protect babies by vaccinating in pregnancy and the people around them.

      Supply gaps and trust gaps need different fixes

      The same gap can have opposite causes. In the US in 2026, measles coverage slipped because some parents chose not to vaccinate; in Bangladesh, a vaccine shortage left children unprotected, and a national campaign closed much of the gap within weeks once supply returned. The calculator tells you how many doses you need. Whether the problem is supply or trust tells you how to deliver them. More in Losing measles elimination is a trust bill coming due.

      Get new free tools by email. One short note when a new tool or essay goes live. No spam, unsubscribe any time.

      Planning a catch-up campaign or outbreak response?

      Bring your coverage data to a free 30-minute call, and I will help you find the pockets, the messengers and the measurement plan.

      Book a free call

      Questions

      What is the herd immunity threshold for measles?

      Measles is one of the most contagious diseases, with an R0 of about 12 to 18. With two doses of MMR at about 97% effectiveness, around 95% of people need to be immune to stop sustained spread, which is why 95% is the usual coverage target.

      How do you calculate the herd immunity threshold?

      The share of people who must be immune is 1 minus 1 divided by R0. Divide that by the vaccine’s effectiveness to get the vaccination coverage needed. For R0 15 and 97% effectiveness: (1 − 1/15) ÷ 0.97 = about 96%.

      Why can measles spread when coverage is above 90%?

      At 92% coverage with a 97% effective vaccine, each case still infects about 1.5 people on average, so outbreaks can grow. And averages hide pockets: a district at 92% can include schools far below it, where transmission takes off.

      More free tools

      See all 48 free tools →