How Vaccines Work: From Shot to Immunity

Vaccines work by training your immune system to recognize and fight a specific germ before you ever encounter it naturally. They introduce something harmless that resembles the real pathogen, whether that’s a weakened version of the germ, a piece of its outer shell, or genetic instructions for building one of its proteins. Your immune system responds by producing antibodies and creating specialized memory cells that can persist for decades, ready to mount a rapid defense if the real infection shows up later.

What Happens Inside Your Body

When a vaccine enters your body, your immune system treats it like an actual threat. White blood cells detect the foreign material and begin producing antibodies, Y-shaped proteins custom-built to latch onto that specific germ. This process takes about one to two weeks, which is why you’re not fully protected the moment you get a shot.

The real power of vaccination lies in what happens next. Your body creates two types of long-lasting defenders. The first are long-lived plasma cells, which settle into your bone marrow and continuously produce small amounts of antibodies for years. Researchers have detected these cells in bone marrow more than 35 years after smallpox vaccination, long after the disease was eradicated worldwide. The second are memory B cells and memory T cells, which remain dormant until the real pathogen appears. When it does, they activate within hours rather than the days or weeks a first-time immune response would take.

This is why a vaccinated person who encounters measles or polio can often neutralize the virus before symptoms ever develop. The immune system has already rehearsed its response.

Different Vaccine Types, Same Goal

Not all vaccines deliver their “training material” the same way. Several distinct technologies exist, each with trade-offs in how they’re made, stored, and how strongly they stimulate immunity.

  • Inactivated vaccines use a killed version of the germ. Because the pathogen can’t replicate, these vaccines are very stable but often require multiple doses or boosters to build lasting immunity. Flu shots and the original polio vaccine work this way.
  • Live attenuated vaccines use a weakened form of the germ that can still replicate slowly but can’t cause disease in healthy people. They tend to produce strong, long-lasting immunity, sometimes with just one or two doses. The measles, mumps, and rubella (MMR) vaccine is a well-known example.
  • Subunit and protein-based vaccines use only specific pieces of the germ, like a surface protein or sugar molecule. Because they target key parts of the pathogen, they generate a focused immune response without exposing your body to the whole organism.
  • mRNA vaccines deliver genetic instructions that tell your cells to build a harmless piece of the pathogen’s protein. Your cells manufacture that protein temporarily, your immune system learns to recognize it, and the mRNA breaks down within days. The COVID-19 vaccines from Pfizer and Moderna brought this technology into widespread use.
  • Viral vector vaccines use a modified, harmless virus as a delivery vehicle to carry genetic material from the target pathogen into your cells. The Johnson & Johnson COVID-19 vaccine and some Ebola vaccines use this approach.

Why Some Vaccines Need Boosters

Your immune memory doesn’t fade at the same rate for every disease. After a measles vaccination, protection typically lasts a lifetime. Tetanus protection, on the other hand, gradually weakens and needs a booster roughly every ten years. Several factors explain the difference.

The type of pathogen matters. Viruses that remain genetically stable, like measles, present the same target to your immune system year after year. Influenza viruses mutate rapidly, which is why flu vaccines are reformulated annually. The strength of the initial immune response also plays a role. Vaccines that release their antigen slowly tend to produce more durable immunity because they give the immune system more time to refine its antibodies in structures called germinal centers, which are essentially training grounds inside your lymph nodes where immune cells improve their ability to recognize the pathogen.

Booster doses work by reactivating those dormant memory cells, prompting a fresh wave of high-quality antibodies. Each exposure, whether from a booster or a natural encounter, tends to sharpen the immune response further.

What’s Actually in a Vaccine

Beyond the active ingredient (the antigen or genetic material), vaccines contain a small number of supporting ingredients, each with a specific job. The one that gets the most attention is the adjuvant, a substance that amplifies the immune response so the vaccine works better with less antigen.

Aluminum salts are the most common adjuvant and have been used safely in vaccines since the 1930s. They were first added to diphtheria and tetanus vaccines after researchers discovered they strengthened the body’s immune response. Other adjuvants include squalene, a naturally occurring oil found in plant and animal cells (used in certain flu vaccines for adults 65 and older), and compounds extracted from the bark of the Chilean soapbark tree (used in the shingles vaccine and a COVID-19 vaccine). A newer adjuvant called CpG 1018, used in a hepatitis B vaccine, is a synthetic fragment of DNA that mimics bacterial genetic material to trigger a stronger immune reaction.

Vaccines also contain stabilizers that keep the active ingredients effective during storage, preservatives in multi-dose vials to prevent contamination, and tiny amounts of residual substances from the manufacturing process. The quantities involved are extremely small.

Common Side Effects

Most vaccine side effects are mild signs that your immune system is responding. Soreness, redness, or swelling at the injection site are the most frequent reactions across nearly all vaccines. Systemic effects like fatigue, headache, muscle pain, fever, and chills also occur, though their frequency varies. For some vaccines, like the meningococcal B vaccine, more than half of recipients experience at least one of these reactions. For others, only a small percentage report any systemic symptoms.

These side effects typically appear within a day or two and resolve on their own within 24 to 72 hours. Serious adverse reactions, such as severe allergic responses, are rare and occur in roughly one to two cases per million doses for most vaccines.

How Vaccines Are Tested Before Approval

Every vaccine goes through three phases of clinical trials before it can be approved. Phase 1 involves 20 to 100 volunteers and focuses on basic safety: identifying side effects and confirming the vaccine triggers an immune response. Phase 2 expands to 100 to 300 participants whose age and health characteristics match the intended population, gathering more detailed safety and immune response data. Phase 3 enrolls 1,000 to 3,000 or more participants to confirm real-world effectiveness, monitor less common side effects, and establish that the vaccine is safe for broad use.

Even after approval, monitoring continues. National reporting systems track adverse events across millions of doses, and regulators can pull or modify a vaccine if unexpected problems emerge.

Herd Immunity and Why Coverage Rates Matter

Vaccines protect more than just the person who receives them. When enough people in a community are immune, the pathogen can’t find enough vulnerable hosts to spread efficiently. This indirect protection, known as herd immunity, shields people who can’t be vaccinated, including newborns, people undergoing chemotherapy, and those with certain immune conditions.

The threshold for herd immunity depends on how contagious the disease is. Measles, one of the most transmissible infections known, requires about 95% of the population to be vaccinated. Polio, which spreads less easily, has a threshold of roughly 80%. When vaccination rates drop below these levels, outbreaks become possible even in countries that had previously eliminated the disease.

The Track Record

Vaccination has prevented more death and disability than almost any other medical intervention in history. Measles vaccination alone has saved an estimated 94 million lives globally, making it the single most impactful vaccine. The United States has achieved a 100% reduction in cases and deaths for several diseases that were once common, including polio and diphtheria. Worldwide, vaccines against tetanus, whooping cough, tuberculosis, and polio have contributed to dramatic declines in child mortality over the past several decades.

The current U.S. childhood immunization schedule recommends vaccines for measles, mumps, rubella, polio, pertussis, tetanus, diphtheria, Hib disease, pneumococcal disease, HPV, and chickenpox for all children, with additional vaccines recommended for high-risk groups or based on individual clinical decisions. Insurance companies are required to cover these without cost-sharing.