Browse topics

Recently published

Science & Education · Explainer

How do vaccines work? Training your immune system, step by step

How vaccines teach the immune system to recognise germs without causing disease, the main vaccine types, what herd immunity means and why side effects happen.

Gloved hand holding an unlabelled glass vial beside a syringe on a clean medical tray
Illustration

At a glance

Goal
Teach the immune system without the disease
Key result
Memory cells that respond quickly
Types
Live-attenuated, inactivated, subunit, mRNA, viral vector
Group benefit
Herd (community) immunity

Short answerVaccines work by showing your immune system a harmless piece or weakened form of a germ, so it can learn to recognise and fight the real thing later. This creates memory cells that respond quickly if you are exposed. Vaccines also protect others by reducing the spread of disease.

Key takeaways

  1. A vaccine exposes the immune system to part of a germ, or a weakened or inactive form, in a safe way.
  2. The body makes antibodies and memory cells, which respond quickly if the real germ appears.
  3. There are several types of vaccine, made in different ways.
  4. Mild side effects, such as a sore arm or tiredness, show the immune system responding.
  5. When enough people are vaccinated, diseases spread less, protecting people who cannot be vaccinated.

Vaccines are one of the most effective tools in public health. They work by giving the immune system a safe rehearsal.

How the immune system responds

When a germ enters the body, the innate immune system reacts first with general defences such as inflammation. Then the adaptive system learns the germ’s particular features. B cells make antibodies that bind to the germ, and T cells help coordinate the response or destroy infected cells. Afterwards, some of these cells become long-lived memory cells that respond rapidly if the germ returns. The catch is time: the first time you meet a new germ, building this response takes days, which is long enough to make you ill.

What a vaccine does

A vaccine presents your immune system with an antigen, or the instructions to make one, without causing the disease. Your body builds a response and keeps memory cells. If you meet the real germ later, your defences react much faster.

Vaccine types compared

Type How it works Examples (varies by country)
Live-attenuated A weakened germ prompts a strong, long-lasting response Measles, mumps and rubella (MMR)
Inactivated A killed germ cannot cause infection Some polio and flu vaccines
Subunit and conjugate Only a key piece of the germ Hepatitis B, pneumococcal
Toxoid An inactivated toxin Tetanus, diphtheria
mRNA Instructions for cells to make a harmless protein Some COVID-19 vaccines
Viral vector A harmless virus delivers instructions Some COVID-19 and Ebola vaccines

Different vaccines need different numbers of doses, and some need boosters because immunity wanes or the germ changes, as flu viruses do.

How vaccines are developed and checked

New vaccines go through laboratory studies and then several phases of clinical trials involving increasing numbers of volunteers. Regulators review the evidence on safety and effectiveness before approval, and monitoring continues after a vaccine is in use. Many countries operate reporting systems for suspected side effects.

What side effects are normal

A sore arm, tiredness, a mild fever or a headache for a day or two are common and show the immune system is responding. Serious allergic reactions are rare and typically happen within minutes, which is why people are often asked to wait briefly after vaccination. Ask your doctor or pharmacist about specific risks, especially if you have allergies or a health condition.

Herd immunity explained

When enough people are immune, an infection finds it hard to spread, which protects babies, people with weakened immune systems and others who cannot be vaccinated. The percentage needed depends on how contagious the disease is: measles needs a very high level of coverage, for example, while others need less.

A short history of vaccination

The story usually begins in 1796, when the English doctor Edward Jenner noticed that milkmaids who had caught cowpox, a mild disease, did not catch smallpox. He showed that material from a cowpox sore could protect against smallpox, creating the first successful vaccine. The word “vaccine” itself comes from the Latin vacca, meaning cow.

Smallpox, which once killed millions of people, became the first and so far only human infectious disease to be wiped out: the World Health Organization declared it eradicated in 1980. Polio is the next target. According to the WHO, cases caused by wild poliovirus have fallen by over 99% since 1988, from an estimated 350,000 cases in more than 125 countries to transmission continuing in just two, Afghanistan and Pakistan.

Why vaccines follow a schedule

National vaccination schedules are not arbitrary. Many vaccines are given in infancy because that is when certain diseases are most dangerous; polio, for example, mainly affects children under five. Some vaccines need several doses spaced weeks or months apart to build strong, lasting protection, and others are timed for later in life, when risks change or protection from earlier doses fades.

Schedules differ between countries because disease risks and health systems differ. If you are travelling, some destinations call for extra vaccinations, and courses can take weeks to complete, which is why our guide to checking travel advice suggests speaking to a doctor or travel clinic well ahead of your trip.

Safety monitoring does not stop at approval

Once a vaccine is in use, regulators keep watching. Health professionals and members of the public can report suspected side effects, for example through the UK’s Yellow Card scheme or the US Vaccine Adverse Event Reporting System (VAERS). Reports are only a signal, not proof that the vaccine caused the problem, because some events would have happened anyway. Analysts compare how often an event occurs in vaccinated people with how often it normally occurs, which is how rare problems can be spotted and acted on.

Different people, different needs

Recommendations are not the same for everyone. Age, pregnancy, long-term health conditions, a weakened immune system and travel plans can all change which vaccines are advised, and when. Some people cannot have certain vaccines, which is one reason high vaccination rates in the community matter. Your GP, practice nurse or pharmacist can check what you have had and what you are due, and your national health service website lists the schedule.

Common questions

  • Does natural infection work better? Sometimes it gives strong immunity, but it carries the risks of the disease itself, which vaccines avoid.
  • Do vaccines overload a child’s immune system? Children’s immune systems handle a vast number of germs every day, and health authorities have studied the schedules extensively.
  • Why do some people need yearly flu shots? Flu viruses change quickly, so the vaccine is updated.

Where to get reliable information

The World Health Organization, the NHS and national health agencies publish clear guidance on vaccines and schedules. For questions about your own health, speak to a doctor, nurse or pharmacist. If you enjoy explainers on how things work, try photosynthesis or why the sky is blue.

Important information about side effects

Most vaccine side effects are mild and short-lived, but it helps to know what to expect.

  • Common: A sore arm, mild fever or tiredness for a day or two as the immune system responds.
  • Uncommon: Swollen glands or a rash.
  • Rare: Severe allergic reactions, which vaccination staff are trained to treat immediately.
  • Reporting: Suspected side effects can be reported to your country's medicines regulator, such as the MHRA Yellow Card scheme in the UK.

How to keep track of your vaccinations

It is easy to forget which vaccines you or your children have had. Many health services provide a vaccination record book, card or app, and some allow you to see your records online. Keep a photo of any paper record in a safe place. Before travelling abroad, check whether you need extra vaccines several weeks ahead, because some need more than one dose or time to become effective. If you are unsure what you have had, your doctor's surgery or local health service can usually check your records.

Understanding vaccine effectiveness figures

News reports often quote figures such as a vaccine being 90 percent effective. This usually means that, in a trial or study, vaccinated people had a 90 percent lower risk of the outcome being measured, such as symptomatic illness, compared with unvaccinated people. It does not mean that 10 percent of vaccinated people will get ill. Effectiveness can differ for different outcomes, ages and virus variants, and protection against severe illness is often higher than protection against mild infection. Health agencies publish plain-language summaries that explain these figures for each vaccine.

Final thoughts

Vaccines safely train the immune system to recognise germs before you meet them. For advice about your own vaccinations, talk to your doctor, nurse or pharmacist. For more, browse the Science & Education guides on All Informations.

Sources and further reading

These official and reference pages support the key facts in this guide and are good places to read more. All Informations checked every link on 25 November 2026.

Frequently asked questions

Can a vaccine give you the disease?

Most vaccines cannot, because they contain no live germ or only a weakened one. Some people feel mild symptoms as the immune system responds.

Why do some vaccines need boosters?

Protection from some vaccines fades over time, so extra doses remind the immune system or give a stronger response.

What is herd immunity?

When a large enough share of a community is immune, the germ struggles to spread, which helps protect people who cannot be vaccinated.

What is an adjuvant?

An adjuvant is an ingredient added to some vaccines to strengthen the immune response, so that less of the active ingredient is needed or protection is stronger. Aluminium salts, for example, have been used as adjuvants for decades.