Herd immunity is the point at which enough people in a population are immune to a disease that the pathogen can no longer spread easily, indirectly protecting those who aren’t immune. It’s one of the most important concepts in public health, and it works through a surprisingly simple principle: a virus or bacterium can only survive if it finds new people to infect. When it keeps running into immune individuals instead, transmission slows and eventually stalls.
How Herd Immunity Protects People
Every infectious disease spreads through a chain of transmission. One person gets sick, passes the pathogen to others, and each of those people passes it along again. Vaccination (or recovery from infection) removes links from that chain. When enough links are missing, the chain breaks. At that point, even people who aren’t immune benefit because they’re far less likely to encounter the pathogen in the first place.
This indirect protection is what makes herd immunity so valuable. Newborns, people with compromised immune systems, and those who can’t be vaccinated for medical reasons all depend on the immunity of people around them. They’re protected not by their own defenses but by the fact that the pathogen has fewer and fewer hosts to jump between.
The Role of the Reproduction Number
The math behind herd immunity centers on something called the basic reproduction number, often written as R0. This number describes how many people, on average, one infected person will spread a disease to in a population where nobody is immune. Measles has one of the highest reproduction numbers of any human disease, around 12 to 18. Seasonal influenza sits much lower, typically between 1 and 2.
As immunity builds in a population through vaccination or prior infection, the effective reproduction number drops. When it falls below 1, each infected person passes the disease to fewer than one other person on average, and the outbreak shrinks. The formula for calculating the threshold where this happens is straightforward: 1 minus 1 divided by R0. For a disease with an R0 of 5, for example, 80% of the population needs to be immune before sustained transmission stops.
Why Thresholds Vary by Disease
Because different pathogens spread with different efficiency, the percentage of the population that needs to be immune varies dramatically. Measles is extraordinarily contagious. One infected person can spread it to a dozen others in any community where less than 95% of people have been vaccinated, according to the CDC. That 95% coverage with both doses of the measles vaccine is the minimum needed to prevent outbreaks.
Polio requires somewhat lower coverage, but the threshold still depends on local conditions. Estimates range from about 75% in wealthier populations with better sanitation to as high as 97% in settings where hygiene infrastructure is limited and transmission routes are more numerous. These aren’t arbitrary numbers. They reflect how easily the pathogen moves through a specific community.
Vaccination vs. Natural Infection
There are only two ways a population can build the immunity needed to cross these thresholds: widespread vaccination or widespread infection. In practice, only vaccination has ever achieved herd immunity at a population scale. Reaching the threshold through natural infection means accepting enormous numbers of illnesses and deaths along the way, particularly for diseases like measles, polio, or COVID-19.
Vaccination also tends to produce more consistent and reliable immune responses. During the COVID-19 pandemic, studies found that natural infection produced a wide range of antibody levels across individuals, with some people generating strong responses and others generating weak ones. Antibody levels after infection also declined within months for many people. Vaccines, by contrast, consistently produced neutralizing antibody levels comparable to the highest levels seen in recovered patients. This means a vaccinated population isn’t just immune faster, it’s immune more uniformly and often for longer.
The idea of deliberately pursuing herd immunity through natural infection gained attention during the pandemic but was widely rejected by public health authorities. With hundreds of thousands of deaths already occurring and millions reporting lingering symptoms after recovery, allowing unchecked transmission would have multiplied those figures several times over before any protective threshold was reached.
How Local Gaps Create Outbreaks
National vaccination rates can be misleadingly reassuring. A country might report 92% measles vaccination coverage overall, but if certain communities cluster well below that number, outbreaks can still ignite in those pockets. This is exactly what has happened repeatedly with measles in the United States.
The 2019 U.S. measles outbreaks were all linked to travel-related cases that spread into communities with high rates of vaccine refusal. These clusters aren’t random. Research has found that nonmedical vaccine exemptions tend to concentrate geographically, often in specific neighborhoods shaped by shared social attitudes toward vaccination. One well-documented outbreak in San Diego traced back to a cluster of vaccine refusal among college-educated parents in middle- to upper-income areas. Herd immunity is inherently local. A pocket of low coverage surrounded by high coverage is still vulnerable, because the pathogen only needs a foothold in the susceptible group to spread rapidly within it.
Why Herd Immunity Can Be Temporary
Herd immunity isn’t a permanent achievement. It requires maintenance, and several forces work against it over time. The most straightforward is waning immunity. For many diseases, the protection from a vaccine or past infection fades gradually. If booster doses aren’t administered or natural reinfection doesn’t periodically refresh immune memory, the proportion of truly immune individuals in a population slowly drops back below the threshold.
Pathogen evolution poses an even trickier challenge. Viruses mutate, and new variants can partially or fully escape the immunity built against earlier strains. SARS-CoV-2 demonstrated this vividly. The Omicron lineages carried multiple changes in the spike protein, the primary target of vaccine-induced and infection-induced antibodies. These changes allowed Omicron to infect vaccinated and previously infected people who had been well protected against earlier variants. Research published in Nature has shown that SARS-CoV-2 evolution is driven in part by the immunity landscape of specific populations. A variant that can’t gain traction in one country because existing immunity blocks it may thrive in another country where the population’s immune history leaves a gap.
For diseases caused by stable pathogens, like measles, the herd immunity threshold stays consistent over time and high vaccine coverage reliably maintains protection. For rapidly evolving pathogens, the target keeps moving, and herd immunity in a traditional sense may never be fully achieved. Instead, the population settles into a pattern where periodic waves of infection and updated vaccinations keep immunity high enough to prevent catastrophic outbreaks, even if they can’t eliminate transmission entirely.
What Herd Immunity Does and Doesn’t Guarantee
Crossing the herd immunity threshold doesn’t mean zero cases. It means the pathogen can no longer sustain chains of transmission across the population. Sporadic cases still occur, especially when infected travelers introduce the disease from elsewhere. What changes is that those introductions fizzle out instead of sparking widespread outbreaks, because the pathogen can’t find enough susceptible people to keep moving.
Herd immunity also doesn’t protect everyone equally. People who are immunocompromised may not respond well to vaccines, leaving them reliant on the immunity of those around them. In communities where coverage is patchy, these individuals face disproportionate risk. The concept works best when immunity is distributed evenly across a population rather than concentrated in some groups and absent in others.

