How Vaccines Train the Immune System to Fight Disease

Vaccines expose the immune system to antigens that trigger memory B cells and T cells without causing illness. Learn mRNA vs attenuated vaccines and herd immunity thresholds.

The InfoNexus Editorial TeamMay 20, 20269 min read

The First Vaccine Came From a Milkmaid's Observation in 1796

English physician Edward Jenner noticed that milkmaids who contracted cowpox seemed immune to smallpox, which killed roughly 30% of those it infected. In 1796 he inoculated 8-year-old James Phipps with cowpox material from a dairymaid's blister, then exposed him to smallpox. Phipps did not develop smallpox. Jenner had stumbled onto the central principle of vaccinology: exposing the immune system to a harmless version of a pathogen trains it to defeat the dangerous one. Two centuries later, that principle has been elaborated into multiple distinct vaccine technologies—but the immunological logic remains the same.

The Immune System's Two-Phase Response

Understanding vaccines requires understanding the immune response they exploit. When a foreign antigen—a protein or other molecule recognized as non-self—enters the body, two arms of adaptive immunity engage.

B cells and antibodies: B cells with receptors matching the antigen activate, multiply, and differentiate into plasma cells that produce antibodies—proteins that bind specifically to the antigen and either neutralize the pathogen directly or mark it for destruction by other immune cells. This takes days. It is too slow to stop an acute infection before symptoms develop.

T cells: Helper T cells (CD4+) coordinate the immune response by signaling B cells and cytotoxic T cells. Cytotoxic T cells (CD8+) directly kill infected cells displaying the target antigen. T cell responses take seven to ten days to peak after first exposure.

The key to vaccine immunity is what happens after the infection resolves. Long-lived memory B cells and memory T cells persist—sometimes for decades—primed to recognize the same antigen. On re-exposure, the memory response fires within hours instead of days, overwhelming the pathogen before significant illness develops.

Types of Vaccines: Different Paths to the Same Memory

Vaccine TypeWhat's DeliveredExamplesKey Characteristic
Live-attenuatedWeakened live pathogenMMR, yellow fever, chickenpoxStrong, durable immunity; contraindicated in immunocompromised
InactivatedKilled whole pathogenFlu (injectable), polio (IPV), hepatitis ACannot replicate; often requires boosters
Subunit/proteinPurified pathogen proteinsHepatitis B, pertussis (acellular), shingles (Shingrix)Very safe; adjuvants often required to boost response
mRNAmRNA encoding pathogen proteinPfizer-BioNTech COVID-19, Moderna COVID-19Rapid design; does not integrate into DNA
Viral vectorAdenovirus carrying pathogen geneJohnson & Johnson COVID-19, AstraZeneca COVID-19Single-dose potential; pre-existing vector immunity can limit response
ToxoidInactivated bacterial toxinTetanus, diphtheriaTargets toxin, not bacteria itself

How mRNA Vaccines Work

mRNA vaccines represent the most significant vaccinology innovation in decades. Rather than delivering a protein directly, they deliver instructions. The mRNA—a single-stranded molecule encoding the target protein (in COVID-19 vaccines, the spike protein)—is encased in lipid nanoparticles that protect it from degradation and facilitate entry into muscle cells at the injection site.

Inside the cell, ribosomes read the mRNA and produce the spike protein. The cell displays fragments of this protein on its surface via MHC molecules—the same way it displays fragments of proteins from actual infections. The immune system responds exactly as it would to a real infection: B cells activate, antibodies are produced, T cells engage, and memory cells form.

  • The mRNA degrades within days; it never enters the nucleus and cannot alter DNA
  • The spike protein produced is membrane-anchored and cannot replicate or cause COVID-19
  • Lipid nanoparticle technology was under development for cancer immunotherapy for over a decade before COVID-19 vaccines applied it at scale
  • The platform can be redesigned rapidly—in weeks—as new variants emerge, unlike conventional vaccine manufacturing requiring months

Adjuvants: Amplifying the Immune Signal

Many vaccines, particularly subunit vaccines, incorporate adjuvants—compounds that stimulate the innate immune system to create a stronger, longer-lasting adaptive response. Alum (aluminum salts) has been used safely since the 1930s. Newer adjuvants like AS01B (used in Shingrix) produce dramatically stronger immune responses than alum and have enabled vaccines against diseases that resisted earlier approaches. The Shingrix vaccine is over 90% effective at preventing shingles in adults over 50, compared to about 50% for the older Zostavax vaccine it replaced.

Herd Immunity: The Mathematical Threshold

Herd immunity occurs when enough of a population is immune—through vaccination or prior infection—that chains of transmission break, protecting even unvaccinated individuals. The threshold depends on a pathogen's basic reproduction number (R0): how many people an infected person would infect in a fully susceptible population. More transmissible pathogens require higher vaccination rates to achieve herd immunity.

DiseaseR0 (approximate)Herd Immunity ThresholdVaccine Efficacy (doses)
Measles12–1892%–95%97% (2 doses MMR)
Polio5–780%–85%99% (3 doses IPV)
COVID-19 (original)2.5–360%–67%~90% (2 doses, original variants)
Omicron variant8–1588%–93%Lower; boosters needed
Influenza (seasonal)2–350%–67%40%–60% (annual vaccine)

The formula for the herd immunity threshold is: 1 − (1/R0). For measles with R0 of 15, the threshold is 1 − (1/15) = 93%. This is why measles outbreaks occur when vaccination rates in a community drop below 95%—there are enough susceptible individuals to sustain transmission chains.

Waning Immunity and the Role of Boosters

Vaccine-induced immunity varies in durability by vaccine type and pathogen. Live-attenuated vaccines often provide lifelong protection from a single dose—measles immunity from childhood MMR vaccination typically lasts 50+ years. Killed or subunit vaccines frequently require boosters to maintain protective antibody titers.

Influenza requires annual vaccination because the circulating strains evolve rapidly—last year's immune memory often doesn't match this year's dominant strains. Tetanus boosters are recommended every ten years. Shingrix requires two doses eight months apart and maintains high efficacy for at least ten years based on current follow-up data. COVID-19 boosters were deployed as evidence emerged that initial vaccine-induced antibody levels waned substantially within six months, particularly against immune-evasive variants.

Vaccine Safety Monitoring Systems

Post-approval safety surveillance uses multiple overlapping systems. The Vaccine Adverse Event Reporting System (VAERS) in the U.S. accepts voluntary reports of any adverse event after vaccination—a signal-detection tool, not a causation database. The Vaccine Safety Datalink (VSD) links electronic health records from nine million patients to vaccination records, enabling controlled epidemiological studies. The FDA's BEST (Biologics Effectiveness and Safety) system adds claims-based surveillance across millions of insured Americans.

This article is for informational purposes only. Consult a qualified professional for vaccine recommendations specific to your health situation.

vaccinesimmunologypublic-healthhuman-body

Related Articles