Prevention & Care

How Does the HPV Vaccine Work?

Short answerThe HPV vaccine contains empty, noninfectious copies of the virus's outer shell. They cannot cause infection, but the immune system learns to make antibodies against them. If the real virus arrives later, those antibodies can block it before it infects cells. The vaccine prevents new infections with the types it covers, which are linked to cervical and other cancers and to genital warts. It does not treat an infection already present.
On this page
  1. It is a preview, not a treatment
  2. What actually goes into your arm
  3. How the protection forms
  4. What it protects against
  5. What the results look like in practice
  6. Who benefits most, and who is eligible
  7. What to expect at the appointment
  8. Mix-ups that come up often
  9. What this page does not settle

It is a preview, not a treatment

Many people hear “HPV vaccine” and picture a shot that clears the virus or fixes something that has already happened. It does neither. The vaccine works like a rehearsal: it shows the immune system a harmless imitation of the virus so that a real encounter later meets a prepared defense. The National Cancer Institute (NCI) states that the vaccine does not treat existing HPV infections or HPV-caused disease, and the CDC says the same.14 What it offers is prevention of new infection with the specific virus types it contains.

That framing also answers the common question of what the shot is “for.” It is for stopping the infections that, over many years, can lead to cervical cancer and several other cancers, and for stopping the types that cause most genital warts.

What actually goes into your arm

Human papillomavirus (HPV) has an outer shell built mostly from one protein, called L1. In the laboratory, that protein is produced by recombinant technology (in the U.S. vaccine, in baker’s yeast), and the copies assemble themselves into hollow shells.3 These are called virus-like particles. NCI notes that they look like the surface of the real virus but contain no viral DNA, so they cannot infect cells or cause cancer.1 For a closer look at that design, see what virus-like particles are.

The U.S. vaccine also contains an aluminum-containing adjuvant, an ingredient that strengthens the immune response, and the CDC lists a yeast allergy among the reasons the vaccine is not recommended for some people.32 The vaccine contains no live virus; the question of whether it is a live vaccine has its own page.

How the protection forms

After vaccination, immune cells recognize the shell as foreign and make antibodies shaped to fit it. Some of those cells are kept as memory cells. The CDC reports that more than 98% of recipients develop an antibody response to each covered HPV type within a month of completing the series.3

If the real virus later reaches the skin or mucous membranes, the antibodies can attach to its shell and prevent it from entering cells. NCI describes this as binding the virus in future encounters and preventing infection.1 The key point is timing. The antibodies stop the virus at the door. Once infection is established inside cells, the vaccine antibodies are not what clears it. The Pink Book states that the vaccines had no therapeutic effect on existing infection or disease and did not shorten the time to clearance.3 For the practical version of that question, see whether a vaccine can treat an existing infection.

What it protects against

The vaccine used in the United States is Gardasil 9. It covers nine HPV types: 6, 11, 16, 18, 31, 33, 45, 52 and 58.5 NCI breaks these down this way:1

Types covered What they are linked to
6 and 11 About 90% of genital warts
16 and 18 About 70% of cervical cancers
31, 33, 45, 52, 58 An additional 10% to 20% of cervical cancers

The FDA approval also lists vaginal, vulvar, anal, and oropharyngeal (throat) cancers, along with precancerous lesions at several sites, among the conditions the vaccine prevents.5 Because the vaccine covers types rather than “HPV” as a whole, some risk remains. The CDC estimates that 15% of cervical cancers are caused by types the 9-valent vaccine does not prevent, which is why screening stays part of the plan even for vaccinated people; how well the vaccine prevents cervical cancer is covered separately.3

For a full inventory of diseases and types, what the HPV vaccine protects against goes through them one by one.

What the results look like in practice

The CDC cites population results from the years since vaccination began in the U.S.: among teen girls, infections with the vaccine’s cancer- and wart-causing types dropped 88%, among young adult women 81%, and among vaccinated women cervical precancers linked to the most common cervical cancer types dropped 40%.2 Protection was followed for at least about 12 years without evidence of decline.2 These are group-level figures from observational and trial data, so they describe what happened across many people, not a guarantee for any one person.

Who benefits most, and who is eligible

The vaccine works best before a person is exposed to the virus, which is why the routine recommendation targets age 11 or 12, with vaccination possible from age 9.2 Reasons for that timing are covered in why the vaccine is offered before sexual activity begins.

The practical eligibility picture in the U.S. is:

  • Ages 9 to 14, starting on time: two doses, 6 to 12 months apart. If the two doses are given less than 5 months apart, a third is needed.
  • Ages 15 to 26, starting later: three doses over 6 months. Catch-up vaccination is recommended for anyone in this range who was not adequately vaccinated before.
  • Weakened immune system, ages 9 to 26: three doses.
  • Ages 27 to 45: the FDA has licensed the vaccine, but the CDC does not recommend it routinely. Adults in this group who are not vaccinated can decide with a clinician, since the benefit is smaller when more people have already been exposed.
  • Pregnancy: vaccination should wait until after pregnancy, though a pregnancy test beforehand is not needed.24

The vaccine is licensed for both females and males, and the FDA lists male-specific protection against anal and throat cancers and genital warts.5 Someone who is already sexually active, or who has had an HPV infection, may still gain protection against the vaccine types they have not encountered. The Pink Book notes that prior infection with one type did not reduce efficacy against other vaccine types, though people already infected with a vaccine type may get less benefit.3 Whether a specific person has been exposed to which types is something a test result cannot fully settle, so that part is genuinely uncertain at the individual level.

What to expect at the appointment

Many people have no side effects. The CDC lists arm pain, redness or swelling, fever, dizziness or fainting, headache, nausea, and muscle or joint pain as the common ones.2 Because fainting can follow any injection, teens are asked to sit or lie down during the shot and for 15 minutes afterward. A life-threatening allergic reaction to a vaccine ingredient or a previous dose is the main reason not to receive it; a mild illness is not a reason to delay, while a moderate or severe one is a reason to wait until recovery.2

If you are looking at a vaccination record and trying to work out which product you received, how to tell which HPV vaccine brand you received covers that.

Mix-ups that come up often

“It protects against all HPV.” It covers nine types. The CDC says about 15% of cervical cancers come from other types, so a vaccinated person is still screened later in life.3

“It protects against other infections spread the same way.” NCI states the vaccine does not prevent other sexually transmitted infections.1 Condoms, testing and other measures are unaffected by vaccination status.

“It is only for girls.” The FDA license covers females and males ages 9 through 45, and the male indications include anal and throat cancers and genital warts.5

“One shot is a complete series.” In the U.S. schedule described above, the series is two or three doses depending on age at the start and immune status. NCI also notes that a trial found one dose noninferior to two doses against the vaccine’s types, but that finding is not the same as the current U.S. schedule, and anyone planning around it should check what their clinic or country uses.1

“A positive HPV test later means the vaccine failed.” It may not. A positive result can involve a type outside the nine, or an infection picked up before the series was complete. The test cannot say which. If a result like that is the reason you are reading, whether the vaccine can treat an infection you already have deals with it.

What this page does not settle

Protection has been followed for at least a decade, and no loss has been detected, but nobody can state exactly how many decades it will last for a given person. The effect on cancer itself, rather than on infections and precancers, takes longest to show because cancers develop slowly after infection. The vaccine does not replace screening, and it does not protect against HPV types outside the nine it contains.

Sources

  1. HPV Vaccine. National Cancer Institute. United States · Checked 2026-11-25
  2. About HPV Vaccination. CDC. United States · Checked 2026-11-25
  3. Human Papillomavirus (Pink Book chapter 11). CDC. United States · Checked 2026-11-25
  4. Clinical Considerations and Recommendations for HPV Vaccination. CDC. United States · Checked 2026-11-25
  5. GARDASIL 9. FDA. United States · Checked 2026-11-25

Spot an error or an outdated figure? Report a correction for this page. Please do not include personal health details.