Science

How Vaccines Work

March 15, 2026 · ~2 min

Short answer

A vaccine is a “fire drill” for your immune system. It shows your body a safe version of a virus so it can learn to fight the real thing — in advance, without getting sick.

How the immune system works

Your body is a fortress. It has an army:

First line — skin, mucous membranes, tears. They simply keep things out.

Second line — “patrol” cells. They attack anything foreign, but slowly and imprecisely. They’re why you get a fever and inflammation.

Third line — specialized cells (lymphocytes). They create antibodies — molecules that precisely match a specific virus, like a key to a lock. But preparing them takes 1–2 weeks.

The problem: while the third line is getting ready, you’re sick. Sometimes seriously.

What a vaccine does

A vaccine shows your immune system a “wanted poster” of the enemy before the real encounter:

  1. A safe fragment of the virus is introduced (or instructions to make one)
  2. The immune system reacts — creates antibodies and memorizes the enemy
  3. Memory cells appear — they live for years
  4. When the real virus arrives — your body responds in hours, not weeks

You don’t get sick because the army is already trained.

Types of vaccines

TypeWhat’s insideExample
Live attenuatedReal but weakened virusMeasles, chickenpox
InactivatedKilled virusFlu, polio
SubunitA piece of the virus (protein)Hepatitis B
mRNAInstructions for the cell — make the protein yourselfCOVID-19 (Pfizer, Moderna)

mRNA vaccines are the newest type. They contain no virus at all. Instead, the cell receives a “recipe” for one protein, shows it to the immune system, and destroys the instructions. Fast to develop, easy to update.

Why you might get a fever after vaccination

It’s not illness — it’s your immune system at work. It sees the “wanted poster,” treats it as a real threat, and launches its defenses. Fever, aches, fatigue — signs that the army is training.

Usually passes within 1–2 days.

Herd immunity

When enough people are vaccinated (usually 70–95%), the virus has nowhere to spread. This protects even those who can’t be vaccinated — infants, people with allergies, patients with weakened immune systems.

One vaccination protects not just you — but those around you.

Try it yourself

Set the vaccination rate and launch the virus — see how it spreads:

HealthyVaccinatedInfectedRecovered

Increase the vaccination rate and run again — see how herd immunity protects everyone.

Remember

A vaccine is a training exercise for your immune system. It teaches your body to fight a virus in advance, without the risk of actual illness. The more people are vaccinated, the harder it is for the virus to spread.

← All notes