Why Do Vaccines Work?
A vaccine gives your immune system a safe practice run against a germ. It shows your body a weakened, killed or partial version of the germ, or instructions to make one of its proteins, so your defenses learn to recognize it and can react fast if the real germ ever shows up.

Imagine a fire drill. Nobody is in danger, but everyone practices what to do so they’ll be fast and ready if a real fire ever starts. A vaccine is a fire drill for your immune system. It lets your body practice fighting a particular germ without you having to get sick from it first.
How your immune system normally fights
Your immune system is a network of cells, tissues and organs that work together to defend your body. Its main soldiers are white blood cells, and they come in different types.
- Phagocytes chew up invading germs.
- Lymphocytes help the body remember invaders and destroy them. They start out in the bone marrow. Some stay there and become B cells; others travel to an organ called the thymus and become T cells.
When a germ gets into your body, your immune system recognizes it as foreign. B cells are triggered to make antibodies, proteins that lock onto that specific germ and help get rid of it. After the infection is over, antibodies usually stay in your body, and your immune system keeps a kind of memory of the germ. If the same germ ever invades again, your body can attack it quickly. That memory is called immunity.
The catch? The first time your body meets a germ the natural way, you might get very sick before your defenses catch up. Some diseases can be serious.
The trick behind a vaccine
A vaccine gives your immune system a sneak preview. It presents the germ, or a piece of it, in a form that can’t make you seriously ill. Your immune system reacts as if there were a real infection, fights the “infection” and remembers the germ. Later, if the real thing shows up, your body is already prepared.
Getting immunity this way is much safer than getting it by catching the disease. For a few vaccines, the protection can even be stronger than what you’d get from being sick.
Different kinds of vaccines
Scientists have found several ways to give the immune system that preview:
- Live-attenuated vaccines use a weakened germ. Measles, mumps and rubella (MMR) and chickenpox vaccines work this way.
- Inactivated vaccines use a killed germ, as some flu shots and the inactivated polio vaccine do.
- Toxoid vaccines use an inactivated version of a harmful chemical the germ makes, like the vaccines for diphtheria and tetanus.
- Subunit and conjugate vaccines use just pieces of the germ, such as a protein or sugar. Many common vaccines, including those for hepatitis B, HPV and whooping cough, are built this way.
- mRNA vaccines use lab-made genetic instructions. Your cells follow them to make a protein that looks like part of the germ, and your immune system learns to make antibodies against it. Some COVID-19 vaccines work this way.
They work in different ways, but every one of them sparks an immune response.
Why babies get vaccines early
Babies are born with some borrowed protection: their mothers pass antibodies to them before birth, and breastfed babies get more in breast milk. But that protection is temporary, and for some diseases babies don’t get any at all. That’s why doctors vaccinate babies early in life, before they’re likely to be exposed. Many vaccines come in combination shots, which means fewer pokes. Babies’ immune systems meet huge numbers of germs every day, so a few more in one shot are easy to handle.
Protecting people around you
Vaccines don’t only protect the person who gets them. Germs can race through a community and cause an outbreak. But when enough people are vaccinated against a disease, it has a much harder time spreading. This is called community immunity, or herd immunity. It’s especially important for people who can’t get certain vaccines, such as those whose immune systems are weak.
What you might notice
Some vaccines cause mild reactions, like a sore arm where the shot went in or a fever. Your doctor will talk with your family about which vaccines you need and when, because schedules can change as new vaccines are developed. If you have questions, ask your parent or doctor.
Curious why a fever might show up? Read why we get fevers.
Fun facts
- Newborn babies borrow some protection: antibodies pass to them from their mothers before birth, but it only lasts a while.
- Not every vaccine is a shot. Some are liquids, pills or nasal sprays.
Key words
- immunity
- Protection from a disease because your immune system remembers the germ that causes it.
- antibody
- A protein made by B cells that locks onto a specific germ to help destroy it.
- lymphocyte
- A type of white blood cell that helps the body remember invaders and destroy them.
- community immunity
- When enough people are vaccinated that a disease has trouble spreading, protecting even those who can't be vaccinated. Also called herd immunity.
Quick quiz
What did you think?
Tap one. We only count the button, never who pressed it: no names, no accounts, no cookies.
Thanks! Your reaction was counted.
Still have a question? Kids: ask a grown-up to email our editors for you. Found a mistake? Send a correction.
Sources
Pages our editors opened and checked for this answer.
- Your Child's Vaccines | Nemours KidsHealth — retrieved November 23, 2026
- Vaccines | Immunization | Inoculation | MedlinePlus — retrieved November 23, 2026
- Immune System — retrieved November 23, 2026
Related questions
- Why Do We Have Different Blood Types?
What makes blood type A, B, AB or O, and what does Rh positive mean? How tiny cell markers and antibodies decide who can safely give blood to whom.
- Why Do We Get Fevers?
Is a fever bad for you? How your body raises its temperature to fight germs, what counts as a fever, and when it is important to tell a parent or doctor.
- Why Should You Wash Your Hands?
Why do grown-ups keep telling you to wash your hands? How soap gets rid of invisible germs, when to wash, and a glitter test to see germs spread.
- Why Do We Need Sleep?
What really happens when you fall asleep? Learn about sleep cycles, dreams and deep sleep, how many hours kids need, and simple tips for better bedtimes.