Note: This page explains how vaccines work in general; it isn't medical advice. Talk to your doctor about which vaccines are right for you or your child.
How do vaccines work? The short answer
A vaccine is a safe preview of a germ. It shows your immune system what a germ looks like, without the danger of a real infection.1 Your body reacts as if it had met the germ: it makes antibodies and trains special cells. Afterwards, a few memory B cells and T cells stay on watch.2 If the real germ ever gets in, they recognize it and launch a fast, strong defence, often before you feel sick at all.4
The CDC puts it in one line: vaccines work by imitating an infection to engage the body's natural defences.1 Getting protection from a vaccine is safer than getting it by being sick.7
Why a new germ gets a head start
You meet germs every day in the air you breathe, the food you eat and the things you touch. Most of them never make you sick.5 But the first time your immune system meets a brand-new germ, it has to work out how to fight it from scratch. This first reaction is called the primary immune response.4
While your defences are still getting organised, a virus keeps copying itself.5 That head start is when you can get sick. A vaccine lets your immune system have that first meeting in a safe, controlled way, so the head start never happens.5
Antigens: the germ's "wanted poster"
Your immune system recognises germs by their shape, especially the molecules on their surface. Anything that makes your immune system start producing antibodies is called an antigen. The antigen is the active ingredient in every vaccine.1
Think of a vaccine as a wanted poster. It shows your immune cells the germ's "face", such as the spike proteins that stick out of a coronavirus, so they know exactly what to look for later.26
How do vaccines work in the body? (the biology)
Here's what happens after the shot, step by step:
- Spotting the antigen. Immune cells find the antigen and recognise that it doesn't belong in your body.2
- B cells make antibodies. Antibodies are Y-shaped proteins made by white blood cells called B cells (B lymphocytes). Each kind is shaped to grab one particular target and neutralise it.18
- T cells help run the fight. Helper T cells activate B cells and other immune cells. Killer (cytotoxic) T cells destroy cells that a virus has infected.418
- Memory forms. When the job is done, most of these activated cells die off. A small group of memory B and T cells remains.4 This usually takes a few weeks after vaccination.2
- The real germ arrives. Memory cells recognise it straight away. That cuts the immune system's response time by several days. Some people never notice they were exposed, and others get a milder illness for fewer days.4
first meeting = slow vs with memory = fast
You might feel tired, have a sore arm or even a mild fever for a day or two after a shot. That's the immune system doing its training, and the protection that follows can last a lifetime.12
Types of vaccines: four ways to make the poster
Every vaccine teaches the same lesson, but scientists have several ways to deliver it.37
The hepatitis B vaccine was the first recombinant protein vaccine. The viral protein is made by yeast cells that were given the gene for it.3
How does the COVID vaccine work? (mRNA vaccines)
In the United States there are currently two types of COVID-19 vaccine: mRNA and protein subunit. Neither contains live virus, so neither can give you COVID-19.2
mRNA (messenger RNA) is a natural molecule your cells use all the time. It's a short-lived copy of the recipe for one protein.6 An mRNA vaccine works like this:
- The lab-made mRNA is wrapped in tiny bubbles of fat (lipid nanoparticles) that protect it.617
- It's injected into the upper arm muscle, and the mRNA enters muscle cells near the shot.2
- The cell's protein builders, the ribosomes, read the recipe and make a harmless piece of the virus's spike protein.26
- The cell shows the spike piece on its surface. The immune system sees that it doesn't belong and makes antibodies and memory cells against it.2
- The cell breaks the mRNA down and gets rid of it.2
Protein subunit COVID-19 vaccines skip the recipe and deliver the spike protein pieces directly, together with an adjuvant that helps the immune system respond.2
Can mRNA change your DNA?
No. Your DNA is stored inside the cell's nucleus, and vaccine mRNA never goes into the nucleus. It can't change or interact with your genes.213 mRNA is a fragile molecule that the body breaks down quickly, within a few days of the shot.1617
Is mRNA technology new?
Not really. Scientists had studied mRNA vaccines for decades before COVID-19, for diseases including flu, Zika, rabies and cytomegalovirus (CMV).26
How are vaccines made and tested?
New vaccines start in the lab. Then they go through clinical trials in people, in phases that get bigger each time:12
During Phase 3, the FDA also reviews how the vaccine will be made and inspects the factory.12
Why do some vaccines need boosters?
One dose of a vaccine often gives only partial protection. Live-weakened vaccines usually reach full protection after two doses. Non-live vaccines typically need at least three, and because their protection fades over time, booster doses top it up. For example, adults need a tetanus booster every 10 years.1 Some viruses keep changing, so the flu vaccine is updated every year.1
Protection is never perfect. Vaccinated people can still sometimes get infected, but they're far less likely to become seriously ill or die than someone whose immune system is unprepared.1
Why are vaccines important? Herd immunity
Germs spread from person to person. Every immune person makes it much harder for the germ to spread. When enough people in a community are immune, the germ struggles to find new people to infect, and outbreaks usually fizzle out. This is called community immunity or herd immunity.715
It matters most for people who can't be protected by a vaccine themselves: newborn babies who are too young for some vaccines, people with weakened immune systems, and people who are allergic to a vaccine ingredient.7
How many people need to be immune depends on how contagious the disease is.15 Measles is one of the most contagious diseases known. Up to 9 out of 10 unprotected people who are close to someone with measles will catch it.10 So almost everyone in a community needs to be immune to stop measles spreading.5 After the measles vaccine arrived in the US in 1963, measles cases dropped by more than 95%.9
The biggest win: smallpox
The very first vaccine was made in 1796, when British doctor Edward Jenner used cowpox to protect people against smallpox.14 Almost two centuries later, a worldwide vaccination campaign left smallpox with nowhere to go. The last natural case was in 1977, and on May 8, 1980, the world was declared free of smallpox.11 It's one of only two diseases humans have ever wiped out. The other, rinderpest, infected cattle.4
Common misconceptions
"A vaccine gives you the disease." Inactivated, subunit and mRNA vaccines contain no living germ, so they can't cause the infection. A sore arm or tiredness for a day or two is your immune system training.
128
"mRNA vaccines change your DNA." The mRNA never enters the nucleus where DNA is kept, and it breaks down within days.
216
"Once you're vaccinated, you can never catch it." Protection isn't perfect, but vaccinated people are far less likely to get seriously ill.
1
"Vaccines only protect the person who gets them." Through herd immunity they also protect babies and people who can't be vaccinated.
7
"It's the antibodies from the shot that last forever." The long-term protection comes from memory B and T cells that stay on watch.
24
Related explainers: how rabies works (a vaccine given even after a bite), how antibiotics work and what causes allergies (another job of your immune system).
FAQ
How do vaccines work, in simple words?
A vaccine shows your immune system a harmless version or piece of a germ, or instructions to make one piece. Your body makes antibodies and memory cells against it without you getting sick. If the real germ shows up later, your immune system recognizes it and fights back much faster.
How does the COVID vaccine work?
In the US there are mRNA and protein subunit COVID-19 vaccines. mRNA vaccines give muscle cells in your arm instructions to make a harmless piece of the virus's spike protein. Protein vaccines deliver that spike piece directly. Either way, your immune system learns to recognize the spike, and neither type contains live virus.
Can an mRNA vaccine change your DNA?
No. The mRNA never enters the nucleus, where your DNA is kept, so it can't change your genes. Your cells read it, use it to make the spike piece, and then break it down within a few days.
Can a vaccine give you the disease it protects against?
Inactivated, subunit and mRNA vaccines contain no living germ, so they cannot cause the infection. A sore arm, tiredness or a mild fever for a day or two is a normal sign that your immune system is building protection.
Why do some vaccines need more than one dose or a booster?
One dose gives only partial protection for many vaccines. Non-live vaccines usually need three or more doses, and their protection fades, so boosters top it up. Some viruses, like flu, change over time, so the vaccine is updated each year.
What is herd immunity?
When enough people in a community are immune, a germ has trouble finding new people to infect, so outbreaks stay small or die out. This protects people who can't be vaccinated, such as newborn babies and people with weak immune systems. Very contagious diseases like measles need almost everyone to be immune.
Who invented the first vaccine?
British doctor Edward Jenner made the first vaccine in 1796, using cowpox to protect people against smallpox. Vaccination later wiped smallpox out: the world was declared free of it in 1980.
Sources
- CDC, Explaining How Vaccines Work
- CDC, How COVID-19 Vaccines Work
- NIH / NIAID, Vaccine Types
- Vaccine Education Center, Children's Hospital of Philadelphia, Parts of the Immune System
- Vaccine Education Center (CHOP), Types of Immunity and COVID-19 Vaccine
- NIH / National Human Genome Research Institute, Understanding COVID-19 mRNA Vaccines
- MedlinePlus (NIH National Library of Medicine), Vaccines
- CDC Pink Book, Principles of Vaccination
- CDC Pink Book, Measles
- CDC, About Measles
- CDC, History of Smallpox
- CDC, How Vaccines Are Developed and Approved
- CDC, Myths and Facts about COVID-19 Vaccines
- Encyclopaedia Britannica, Vaccine
- Encyclopaedia Britannica, Herd immunity
- The Future of mRNA Vaccines: Potential Beyond COVID-19 (review, NIH PubMed Central)
- CDC Genomics & Precision Health blog, mRNA COVID-19 Vaccines
- Encyclopaedia Britannica, T cell