Skip to main content
Season 3 ends in 16 d 22:31:46 $2,000 10,000 pts = 1 month Premium
Health & Medicine

How Do Vaccines Work? Immune Memory Explained

Published 16 min read
Open the post and read it to claim 30 points
Gold Y-shaped antibodies attaching to spiky virus particles in the bloodstream, with a white immune cell behind

Sign in and earn +30 points by reading this

Read to the end, wait a few seconds, then tap the claim button below.

In short

Vaccines work by showing the immune system a harmless version, a piece or the genetic blueprint of a germ, so it learns to recognise it without you having the disease [1][2]. The body makes antibodies and long-lived memory cells. If the real germ arrives later, those memory cells respond much faster and more strongly, preventing or softening illness [1][5].

Key takeaways

  1. A vaccine contains an antigen, the part of a germ the immune system recognises, or instructions for your cells to make one [1][2].
  2. The first time the body meets an antigen it takes time to respond; vaccines let that slow first response happen safely [1].
  3. The immune system keeps memory B cells and T cells, which allow a faster and stronger response on the next encounter [1][5].
  4. Vaccine types include live weakened, inactivated, subunit or toxoid, viral vector and mRNA or DNA vaccines [3][5].
  5. Several doses or boosters are often needed to build long-lived antibodies and memory [1][2].
  6. When enough people are immune, germs struggle to spread; for measles about 95% coverage is needed [6].
  7. Most side effects are mild and short, such as a sore arm for 2 or 3 days [4].
On this page 12 sections
  1. How do vaccines work? The short answer
  2. How does the immune system respond to a germ the first time?
  3. What is immune memory and why does it matter?
  4. What types of vaccines are there?
  5. How do mRNA vaccines differ from older vaccine types?
  6. Why are vaccines given in more than one dose?
  7. What is herd immunity?
  8. Are vaccines safe and what side effects are common?
  9. Common mistakes
  10. Frequently asked questions
  11. Glossary
  12. Sources

How do vaccines work? The short answer

Vaccines train the immune system in advance: they show it a harmless form of a germ, or part of one, so it can build defences and memory without the risks of the real disease [1][2].

Every germ that can make us ill, whether a virus, bacterium, parasite or fungus, carries molecules on or in it that the immune system can recognise. These molecules are called antigens [1]. The active ingredient of every vaccine is an antigen, or the instructions for the body to make one [2].

When you receive a vaccine, your immune system reacts much as it would to a first infection. It makes antibodies that fit that antigen and trains specialised white blood cells to recognise it [1][5]. The key difference is that the vaccine does not cause the disease. The US Centers for Disease Control and Prevention (CDC) describes vaccines as working “by imitating an infection” to engage the body’s natural defences [2].

After this practice run, the immune system keeps memory cells that can live for years. If the real germ ever arrives, they recognise it and respond quickly, often stopping the infection before it causes serious illness [1][5]. That is the whole idea in one sentence: vaccines give your immune system a safe head start.

The scale of the benefit is large. A study led by the World Health Organization (WHO) and published in The Lancet estimated that immunisation saved at least 154 million lives over 50 years, 101 million of them infants [7].

How does the immune system respond to a germ the first time?

On a first encounter the immune system needs days to weeks to find the right cells and build up antibodies, and during that time the germ can make you ill [1][2].

The body has two layers of defence. The first, innate immunity, is present from birth. It includes physical barriers such as skin and mucous membranes, chemical barriers such as stomach acid, and cells that swallow invaders [5]. It acts fast but does not target one specific germ.

The second layer, adaptive or acquired immunity, is specific to one germ or a group of closely related germs [5]. It relies on two main types of white blood cell:

  • B cells make antibodies. When a B cell meets an antigen that fits its receptor, it multiplies and its descendants, called plasma cells, release large amounts of antibody [5].
  • T cells help and direct the response. Helper T cells stimulate B cells to make antibodies, and cytotoxic T cells find and destroy cells that are already infected [5].

Antibodies are Y-shaped proteins that lock onto one antigen. They can neutralise toxins, stop germs from entering cells and mark them for destruction [5]. WHO explains that each antibody is trained to recognise one specific antigen, and that it takes time for the immune system to produce the right ones the first time it meets a germ. In the meantime, the person can become ill [1].

This delay is the problem vaccines solve. With a dangerous germ, the days needed to mount a first response can be enough for serious disease to develop.

An immune cell with branching arms presenting an antigen to a round T cell while another cell divides
Immune cells pass on what they have found, and matching B and T cells multiply to fight it.

What is immune memory and why does it matter?

Immune memory is the immune system’s ability to remember an antigen it has met before and respond much faster and more strongly the next time [1][5].

After a first response, most of the B and T cells that fought the germ die off. A smaller group remains as memory cells [1][2]. WHO describes these as antibody-producing memory cells that stay alive even after the germ has been defeated. If the same germ appears again, the antibody response is much faster and more effective than the first time, because the memory cells are ready to produce antibodies against that antigen at once [1].

The UK Health Security Agency’s immunisation guide, known as the Green Book, says vaccines produce their protective effect by inducing active immunity and providing immunological memory. It adds that memory may still be present even when antibodies can no longer be detected in the blood [5]. This is why a low antibody test result years after vaccination does not always mean protection has gone.

Doctors call the first reaction the primary response and later reactions the secondary response. The secondary response is quicker, larger and dominated by more effective antibodies [5]. The table below compares the main ways of becoming immune.

What types of vaccines are there?

The main types are live weakened vaccines, inactivated vaccines, subunit and toxoid vaccines, viral vector vaccines and genetic (mRNA or DNA) vaccines; all present an antigen in a different way [3][5].

  • Live attenuated vaccines contain a living germ weakened in the laboratory so it cannot cause disease in healthy people. The measles, mumps and rubella (MMR) vaccine is an example. These vaccines cause strong responses that can give life-long immunity after one or two doses [3].
  • Inactivated vaccines contain killed germs, such as the inactivated polio vaccine. They cannot cause the disease they protect against [5].
  • Subunit, toxoid and conjugate vaccines contain only the parts that matter for protection: for example, inactivated toxins for tetanus and diphtheria, or a surface protein for influenza. Conjugate vaccines attach a sugar coat from a bacterium to a protein so young children respond better [5].
  • Viral vector vaccines use a harmless virus to carry genetic instructions for an antigen into cells [5][3].
  • mRNA and DNA vaccines deliver the genetic blueprint so the body’s own cells make the antigen for a short time [1][5].

Many vaccines also contain an adjuvant, an ingredient that strengthens the immune response to the antigen, so less antigen or fewer doses are needed [8]. The table below summarises the main types.

How do mRNA vaccines differ from older vaccine types?

mRNA vaccines do not contain the germ or its proteins; they carry a temporary set of instructions that lets your cells make one harmless protein, which the immune system then learns to recognise [1][5].

Older vaccines deliver the antigen itself: a weakened or killed germ, or a purified piece of it. Newer genetic vaccines deliver the recipe instead [1]. The mRNA is wrapped in a tiny fat bubble that helps it enter cells. Inside, the cell’s protein-making machinery reads the instructions and produces the antigen, which the immune system then responds to [5].

The Green Book explains three points that address common worries. mRNA is a natural component of the body. It does not enter the cell nucleus, where DNA is kept, and is processed entirely in the surrounding cytoplasm. Any mRNA not taken into cells is rapidly broken down by enzymes in the blood [5]. In short, mRNA vaccines do not change your DNA.

The main advantage of the approach is speed. Because only the genetic sequence is needed, a candidate vaccine can be designed quickly once scientists know the germ’s code. NIAID reports that the time from choosing a target to the first human studies for genetic vaccines shrank from 20 months for SARS-CoV to slightly more than three months for Zika virus [3]. The safety testing and approval steps are still required.

Why are vaccines given in more than one dose?

Extra doses give the immune system more practice, which builds long-lived antibodies and stronger memory; boosters top up protection that fades over time [1][2][5].

WHO notes that some vaccines need several doses given weeks or months apart to allow the production of long-lived antibodies and the development of memory cells [1]. The CDC adds that a single dose of vaccine gives only partial protection for many vaccines [2].

How many doses are needed depends partly on the type of vaccine. According to the CDC, live attenuated vaccines can give lasting protection with only two doses, because the weakened germ multiplies a little and keeps stimulating the immune system. Non-live vaccines typically need at least three doses, and their protection fades over time and must be restored with boosters [2].

The Green Book describes the same pattern from the inside. The first injection of an inactivated vaccine produces a primary response; later doses produce a faster, larger secondary response. Even if antibody levels fall afterwards, the immune system has been primed, and booster doses provide longer-term protection [5].

Timing matters too. Immunity takes weeks to develop after vaccination, so it is possible to catch an infection in the weeks straight after a dose [2]. Each country publishes its own schedule of which vaccines to give at which age; for example, WHO recommends two doses of measles vaccine for all children [9]. Your doctor, nurse or national health service can tell you which vaccines you or your children are due for.

For one recent example of how vaccinating in pregnancy protects newborn babies, see our guide RSV Vaccine in Pregnancy: Danish Baby Admissions Fall 75%.

Three small unlabelled vaccine vials and a sealed syringe on a white clinic tray
Many vaccines are given as a course of doses, with boosters later to top up protection.

What is herd immunity?

Herd immunity is the indirect protection a community gets when so many people are immune that a germ cannot spread easily, which also shields people who cannot be vaccinated [1][6].

Not everyone can be vaccinated. WHO points out that some people with conditions that weaken the immune system, such as cancer or HIV, or with severe allergies to certain vaccine ingredients, may not be able to receive some vaccines [1]. They can still be protected if most people around them are immune, because the germ keeps running into people it cannot infect [1].

The share of people who need to be immune differs by disease, depending on how contagious it is. WHO says herd immunity against measles requires about 95% of a population to be vaccinated, and the threshold for polio is about 80% [6]. The NHS warns that measles, mumps and rubella can spread quickly again if fewer than 90% of people are vaccinated [4].

No vaccine gives 100% protection, and herd immunity does not fully protect those who cannot be vaccinated [1]. It works best alongside high coverage of everyone who can safely be vaccinated.

What happens when coverage falls is shown in our guide Measles Elimination Status: Why the US Lost It in 2026.

Many small white houses across green hills, each under a clear protective dome in golden light
When enough people are immune, a germ finds few chances to spread, which also shields those who cannot be vaccinated.

Are vaccines safe and what side effects are common?

Vaccines go through rigorous safety testing before use and continued monitoring afterwards; most side effects are mild and short-lived, such as a sore arm or feeling a little unwell for 2 or 3 days [4].

The NHS lists what vaccines do and do not do. They undergo rigorous safety testing before they are introduced and are constantly monitored for side effects afterwards. They sometimes cause mild side effects that do not last long. They do not overload or weaken the immune system, and it is safe to give children and adults several vaccines at a time [4].

The Green Book explains why multiple vaccines do not overwhelm the body. From birth, babies meet countless foreign antigens in their everyday environment. Responding to the few antigens in vaccines uses only a tiny proportion of an infant’s immune capacity, and studies have found infection rates are generally lower in vaccinated children, not higher [5].

Mild symptoms such as tiredness or a slight fever after a vaccine are usually signs that the immune system is responding. The CDC notes they may last a day or two, while the protection can last a lifetime [2]. Serious allergic reactions are rare, which is why vaccination staff are trained to treat them on the spot.

This guide explains how vaccines work in general and is not medical advice; ask a doctor, nurse or pharmacist about your own situation and which vaccines are right for you.

Ways of becoming immune compared
RouteHow it happensSpeed and length of protection
Natural infection (active)Your immune system fights the real germTakes time to develop; often lasting, but carries the risk of the disease
Vaccination (active)Your immune system responds to a harmless antigenTakes weeks to develop; often lasting, without the risk of the disease
Passive immunityReady-made antibodies from a mother across the placenta or from blood productsImmediate, but fades within weeks or months
Main vaccine types and how they present the antigen
Vaccine typeWhat it containsExamples
Live attenuatedA living germ weakened in the laboratoryMMR, yellow fever, BCG
InactivatedWhole germs that have been killedInactivated polio vaccine
Subunit, toxoid or conjugateOnly selected parts, or inactivated toxinsTetanus, diphtheria, influenza surface protein
Viral vectorA harmless virus carrying genetic instructions for an antigenExperimental vaccines for HIV, Zika and Ebola
mRNA or DNAThe genetic blueprint for an antigenGenetic vaccines made by the body’s own cells

Common mistakes

  • Thinking a vaccine works the moment it is given.

    Fix: Immunity takes weeks to develop, so infection is still possible soon after a dose [2].

  • Believing mRNA vaccines change your DNA.

    Fix: mRNA does not enter the cell nucleus and is broken down quickly [5].

  • Assuming low antibody levels years later mean no protection.

    Fix: Immune memory can remain even when antibodies are no longer detectable [5].

  • Skipping later doses because the first one “worked”.

    Fix: Many vaccines need several doses or boosters for lasting protection [1][2].

  • Worrying that several vaccines at once overload a child’s immune system.

    Fix: Vaccines use a tiny share of immune capacity and giving several together is safe [4][5].

Frequently asked questions

How do vaccines protect against viruses?

They show the immune system a harmless form or part of the virus, so it makes antibodies and memory cells. If the real virus arrives, the response is fast enough to prevent or soften illness [1][2].

How do vaccines work in the immune system?

B cells make antibodies that fit the vaccine antigen and T cells coordinate the response and kill infected cells. Some of these cells stay on as memory cells [5].

How do mRNA vaccines differ from older vaccine types?

Older vaccines deliver the antigen itself; mRNA vaccines deliver instructions so your cells briefly make it. The mRNA never enters the nucleus and is broken down quickly [1][5].

Why are vaccines given in more than one dose?

Repeated doses build long-lived antibodies and stronger memory, and boosters restore protection that fades over time [1][2].

Can a vaccine give you the disease?

Inactivated vaccines cannot cause the disease they prevent. Live weakened vaccines are designed not to cause disease in healthy people [5][3].

How long does vaccine protection last?

It depends on the vaccine. Some live vaccines can give life-long immunity, while others need boosters [3][2].

What is herd immunity?

Indirect protection when most people are immune so a germ cannot spread; for measles about 95% of people need to be vaccinated [6].

Glossary

Antigen
The part of a germ, or a substance, that the immune system recognises and makes antibodies against [1].
Antibody
A Y-shaped protein made by B cells that locks onto one specific antigen [5].
Memory cell
A long-lived immune cell that remembers an antigen and allows a faster response next time [1].
Booster
An extra vaccine dose that restores or strengthens protection [2][5].
Adjuvant
An ingredient that strengthens the immune response to a vaccine antigen [8].
Herd immunity
Community protection that occurs when enough people are immune that a germ cannot spread easily [6].

Sources

  1. How do vaccines work? World Health Organization · 2025-02-25
  2. Explaining How Vaccines Work US Centers for Disease Control and Prevention · 2024-08-10
  3. Vaccine Types NIAID, US National Institutes of Health · 2026-02-18
  4. Why vaccination is important and the safest way to protect yourself NHS · 2023-03-28
  5. Immunity and how vaccines work: the Green Book, chapter 1 UK Health Security Agency · 2021-01-05
  6. Coronavirus disease (COVID-19): Herd immunity, lockdowns and COVID-19 World Health Organization
  7. Global immunization efforts have saved at least 154 million lives over the past 50 years World Health Organization · 2024-04-24
  8. A guide to vaccinology: from basic principles to new developments Nature Reviews Immunology (Pollard and Bijker) · 2020-12-22
  9. Measles (fact sheet) World Health Organization · 2026-11-27
Share this guide Telegram WhatsApp X
0 likes

Comments

Top comments

About the Pouyam Team Editorial policy

On Pouyam

Explore Pouyam

Guides are one corner of Pouyam. Here is where to go next.

Play and win dollar prizes

All games

Free online games with no download on Pouyam: every game earns season points, and the top players win dollar prizes.

Quick navigation