How Do Vaccines Work? A Step-by-Step Diagram

Vaccines work by introducing a harmless piece of a pathogen (or instructions to build one) into your body, triggering your immune system to mount a defense and store a memory of that threat for the future. The entire process unfolds in a predictable sequence, from the moment the needle enters your arm to the long-term protection that can last years or even decades. Here’s what happens at each stage.

Step 1: The Vaccine Enters Your Body

When a vaccine is injected, it delivers one key ingredient: an antigen. This is a protein or protein fragment from the target pathogen, something your immune system can learn to recognize. Different vaccine types deliver this antigen in different ways.

Traditional vaccines use an inactivated (killed) virus or a weakened live version. Protein-based vaccines skip the virus entirely and deliver just the protein itself. mRNA vaccines take a different route: they package fragile genetic instructions inside a tiny fat bubble called a lipid nanoparticle. That fat layer protects the mRNA during shipping and storage, then fuses easily with your cells once injected. Viral vector vaccines use a harmless, modified virus (like a common-cold adenovirus) as a delivery vehicle. The vector virus enters your cells and releases genetic instructions telling the cell to build the target antigen on its own.

Regardless of delivery method, the destination is the same: your immune system needs to see that antigen.

Step 2: Antigen-Presenting Cells Sound the Alarm

Within minutes to hours, specialized immune cells called antigen-presenting cells patrol the injection site and swallow the vaccine material. These cells act as scouts. They break the antigen into smaller fragments, then display those fragments on their surface like a flag.

This display step is critical. The fragments sit on surface molecules that function like a “show and tell” platform for other immune cells. Without this presentation, the rest of the immune response never gets started. Many vaccines include an adjuvant, an additive that amplifies this early alarm. Aluminum salts, the most common adjuvant, stimulate cells to release internal danger signals that recruit more immune cells to the area. Other adjuvants activate specific sensors on antigen-presenting cells, essentially convincing the immune system that the threat is real and urgent.

Step 3: T Cells Activate

The antigen-presenting cells travel to your nearest lymph node, where they encounter T cells. Think of T cells as the immune system’s command center. When a T cell’s receptor matches the antigen fragment being displayed, that T cell “switches on” and begins multiplying rapidly.

Two main types of T cells play a role here. Helper T cells coordinate the broader immune response by sending chemical signals that activate other cells. Killer T cells (also called CD8 T cells) learn to identify and destroy any of your own cells that have been infected by the real pathogen. Research published in Cell Reports has shown that B cells play a surprisingly direct role in supporting killer T cell responses to vaccines, helping these cells persist and function effectively over time. This is separate from the help that comes from helper T cells, pointing to a more interconnected defense than scientists previously appreciated.

Step 4: B Cells Produce Antibodies

With the go-ahead from helper T cells, B cells that recognize the same antigen spring into action. They multiply and differentiate into plasma cells, which are essentially antibody factories. Each plasma cell pumps out thousands of Y-shaped antibody proteins per second, and those antibodies are custom-built to latch onto the specific antigen from the vaccine.

Antibodies neutralize threats in several ways. They can coat a virus so it can’t attach to your cells. They can clump pathogens together, making them easier for other immune cells to engulf. Or they can tag infected cells for destruction. This antibody ramp-up takes time. For most vaccines, protective antibody levels build over roughly two weeks. After a single dose of the measles vaccine given at the recommended age, 90% to 95% of recipients develop protective antibodies within about 14 days. Mumps and chickenpox vaccines have slightly lower single-dose response rates, around 80% to 85%, which is why second doses are part of the schedule.

Step 5: Memory Cells Form

Here is where vaccines deliver their real long-term value. As the initial immune response winds down and antibody levels gradually decline, a small population of memory B cells and memory T cells remain behind. These cells are the immune system’s filing cabinet.

Memory B cells persist for long periods without actively producing antibodies. They sit quietly in your lymph nodes and other tissues, ready to spring back into action. If you encounter the real pathogen months or years later, these memory cells recognize the threat almost immediately, multiply rapidly, and produce a wave of antibodies far faster and stronger than the first time around. This is why a second infection (or a booster shot) produces a quicker, more powerful response.

Separately, a population of long-lived plasma cells settles into your bone marrow and continuously secretes low levels of antibodies for years, sometimes decades, regardless of whether you encounter the pathogen again. Together, these two systems provide overlapping layers of protection. Antibodies created during an immune encounter can persist in molecular memory for a lifetime in some cases, which is why a single childhood vaccination series can protect you well into adulthood for diseases like measles.

Why Some Vaccines Need Multiple Doses

Not every vaccine generates strong, lasting immunity from a single shot. Multi-dose schedules exist because each subsequent dose pushes B cells through another round of refinement in structures called germinal centers, small training grounds inside your lymph nodes. With each round, B cells produce antibodies that bind more tightly and effectively to the target. This process, called affinity maturation, depends on repeated interaction between B cells and T cells.

The spacing between doses matters. Your immune system needs enough time after each dose to complete its training cycle before the next round begins. Compressing the schedule can reduce the quality of the memory response, while following recommended intervals gives you the strongest, most durable protection.

How Herd Immunity Fits In

When enough people in a community are vaccinated, the pathogen runs out of easy hosts and can no longer spread efficiently. This indirect protection shields people who can’t be vaccinated, such as newborns, people undergoing chemotherapy, or those with certain immune conditions.

The threshold varies dramatically by disease. Measles is extraordinarily contagious, so about 95% of a population needs to be vaccinated to achieve herd immunity. Polio, which spreads less explosively, requires roughly 80%. When vaccination rates dip below these thresholds, outbreaks become possible even in communities that were previously well protected.

The Full Sequence at a Glance

  • Minutes to hours: Antigen-presenting cells at the injection site engulf vaccine material and begin processing it.
  • Hours to days: These cells migrate to lymph nodes and present antigen fragments to T cells, activating the adaptive immune response.
  • Days to one week: Helper T cells activate B cells. Killer T cells begin multiplying. B cells enter germinal centers and start producing antibodies.
  • One to two weeks: Antibody levels rise to protective concentrations. Plasma cells ramp up production.
  • Two to four weeks: Peak antibody levels are reached. Memory B cells and memory T cells begin forming.
  • Months to decades: Long-lived plasma cells in bone marrow maintain a baseline antibody level. Memory cells remain on standby, ready to launch a rapid response if the real pathogen appears.

Every vaccine, whether it’s a live weakened virus, a protein subunit, an mRNA construct, or a viral vector, follows this same core pathway. The delivery method changes how the antigen reaches your immune system, but the chain of recognition, activation, antibody production, and memory formation is the same biological sequence every time.