This calculator is for general information and education. It is not medical advice and does not replace the advice of your doctor or a registered dietitian.
Herd immunity is the point at which an infection stops spreading because enough people are immune. The herd immunity calculator takes R0, the effectiveness of the vaccine, the population and the share already vaccinated to give the herd immunity threshold, the vaccination coverage needed, the people to vaccinate, the immune share today and the additional people who need a dose.
How the calculation works
- Herd immunity threshold = (1 − 1 ÷ R0) × 100. R0 is the average number of people that one case infects in a fully susceptible population. If enough people are immune, each case infects fewer than one other, and the outbreak dies out.
- Vaccination coverage needed = threshold ÷ vaccine effectiveness × 100. A vaccine that does not give full protection means that more people must be vaccinated.
- People to vaccinate in total = coverage needed × population. Immune share today = share vaccinated × effectiveness.
- Additional people = (coverage needed − share vaccinated) × population, never below zero. If the coverage needed is above 100%, vaccination alone cannot reach the threshold.
Example
With R0 = 3, the threshold is (1 − 1 ÷ 3) = 66.7%. A vaccine that is 95% effective needs 66.7 ÷ 0.95 = 70.2% coverage, which is 701,754 people in a population of 1,000,000. If 60% are vaccinated, the immune share is 57%, and 101,754 more people need a dose.
Why it matters
The threshold explains why a disease like measles needs about 95% vaccination, while a less contagious one needs much less. Public health teams and curious readers can use the numbers to see what a coverage level means in people, and why small drops in coverage matter.
Good to know
The model is a textbook simplification and is not a forecast for a real outbreak. It does not cover partial or waning protection, uneven coverage between groups or a vaccine that reduces illness but not transmission. Real thresholds are also affected by how R0 changes with behavior and season. Talk to a physician or your public health service about vaccines for you and your family.
Related tools
The logistic growth calculator models growth that levels off, the exponential growth calculator models early growth and the cell doubling time calculator gives the doubling time of a count.