The HPV vaccine is not federally mandatory in the United States. No national law requires it; a handful of states and the District of Columbia tie it to school entry, usually with opt-outs. The CDC routinely recommends it as cancer prevention, but the decision rests with you, your family, and your clinician.

~42 million
Currently infected
~13 million
New infections / yr
~90%
Clear within 2 years
>90%
Vaccine prevents

of HPV-attributable cancers

HPV in the US at a glance. Source: CDC.
HPV in the US at a glance
ItemValue
Currently infected~42 million
New infections / yr~13 million
Clear within 2 years~90%
Vaccine prevents>90% — of HPV-attributable cancers

There's no nationwide HPV mandate. Vaccination policy in the US is set state by state for school and college entry, and most states list HPV as recommended rather than required. The few jurisdictions that do require it for school attendance pair the rule with medical, religious, or personal-belief exemptions, so even a "mandate" almost always has a documented way to decline. The CDC's routine recommendation is a strong public-health endorsement, not a legal order.

Why the strong push if it isn't required? Because the shot is cancer prevention with hard numbers behind it. Given at the recommended ages, it can prevent more than 90% of HPV-caused cancers, and Gardasil 9 is about 98% effective against the precancers caused by HPV 16 and 18 American Cancer Society. That's the lens to keep: this is a question about how to prevent the most common STI, and the vaccine is one of several tools.

How to prevent HPV — and how well each method works

HPV is the most common STI, and almost everyone who's sexually active is exposed at some point CDC. It spreads most often during vaginal or anal sex, but penetration isn't required — close skin-to-skin contact of the genital area during sex can pass it, and oral sex can carry it to the mouth and throat. No single method blocks every route, so prevention works best in layers.

  • Vaccination is the most effective single step. Gardasil 9 protects against nine HPV types and prevents the great majority of HPV-driven cancers and most genital warts when given before exposure.
  • Condoms and dental dams lower transmission but only partially — they don't cover every area skin can touch.
  • Cervical screening doesn't stop infection, but it catches the precancer changes high-risk HPV can cause, so problems get treated long before they become cancer.
  • Mutual knowledge with partners helps, though there's no routine HPV test for most people, so "getting tested" works differently here than for other STIs.

Keep two facts separate, because people constantly blur them. Low-risk types 6 and 11 cause genital warts; high-risk types like 16 and 18 cause cancers. The types that cause warts do not cause cancer — they're two different problems. If warts are your worry, start with our guide to hpv & genital warts.

Condoms and their limits

Condoms reduce HPV transmission and protect against plenty of other infections, so they're worth using consistently. But with HPV they're only partial protection: the virus lives in skin, and it can infect areas a condom doesn't cover — the base of the penis, the scrotum, the vulva, the groin. You can use a condom correctly every time and still acquire or pass HPV through uncovered skin contact. That limitation is exactly why the vaccine matters: it protects regardless of where contact happens.

Testing as prevention — and why HPV is different

For most STIs, testing is a frontline prevention tool. HPV is the exception, and it surprises people. There's no routine HPV test for men, and HPV tests aren't recommended to screen men, adolescents, or women under age 30 CDC Pink Book. HPV testing also isn't used to diagnose warts — a result won't confirm them or change how they're treated.

Where HPV testing does shine is cervical screening. Current guidance starts cervical screening at age 25 with a primary HPV test every five years as the preferred approach, rather than a yearly Pap ACS. The logic is reassuring: most HPV clears on its own within two years, so testing less often but with a more sensitive test catches more real precancer while sparing people unnecessary visits and procedures. Screening is how a silent high-risk infection gets caught before it ever becomes cancer.

Because HPV often doesn't show up on routine STI panels, knowing what each test covers and its timing matters — see when to test after exposure and, if you want a full panel, you can get tested for the infections that screening does cover.

Anal screening — an unsettled question

Anal cancer is overwhelmingly HPV-driven — over 90% of cases. CDC's 2021 guidance found the data insufficient to recommend routine anal cytology, even for men who have sex with men or people with HIV. That position predates the 2022 ANCHOR trial, which showed that treating anal high-grade lesions reduced anal cancer in people with HIV. On the strength of that, some specialty groups now suggest periodic anal Pap for high-risk groups where referral for high-resolution anoscopy exists — but it isn't a blanket CDC recommendation. If you're in a higher-risk group, ask a clinician what's available where you are.

The vaccine: what Gardasil 9 covers and what it can't do

The HPV vaccine used in the US today is Gardasil 9, which protects against nine types: 6, 11, 16, 18, 31, 33, 45, 52, and 58. Types 16 and 18 cause about 66% of cervical cancers; the five extra high-risk types add roughly another 15%, and types 6 and 11 cause more than 90% of genital warts NCI. So one shot series targets both the cancer-causing strains and the wart-causing strains at once.

This is a real upgrade over the older shots. The earlier quadrivalent Gardasil covered four types and Cervarix covered two; since 2016 only Gardasil 9 has been distributed in the US, so it protects against more cancer-causing types than the older versions. If you were vaccinated years ago, that's worth raising with your clinician.

The reach of HPV cancer goes well beyond the cervix. HPV causes virtually all cervical cancer, over 90% of anal cancers, and about 70% of throat (oropharyngeal) cancers — and oropharyngeal cancer has now overtaken cervical as the most common HPV-related cancer in the US, largely spread through oral sex. That's a major reason vaccination is recommended across genders, not just for people with a cervix.

One crucial limit: the vaccine is prevention, not treatment. Gardasil 9 protects against future infection but won't clear an HPV infection or warts you already have. And vaccinated people still need cervical screening, because the shot doesn't cover every high-risk type. If you already have warts, see genital warts treatment — and if they keep returning, do genital warts come back after treatment? explains why.

Prevention toolWhat it doesKey limit
Gardasil 9 vaccinePrevents infection with 9 HPV types; can prevent >90% of HPV cancersDoesn't treat existing infection or warts
Condoms / damsReduce transmission of HPV and other STIsPartial only — don't cover all skin contact
Cervical screeningCatches precancer early so it's treatableDetects, doesn't prevent infection

Putting it together

The strongest plan stacks the tools: get vaccinated before exposure if you can, use condoms knowing their limits, and keep up with cervical screening on schedule if you have a cervix. None of these is mandatory by law in most of the country — they're choices that lower a real cancer risk. The reassuring backdrop is that in most cases HPV goes away on its own within two years without causing problems, and warts and cancer come from different strains. The point of prevention is to protect against the minority of infections that don't clear quietly.

When to see a clinician

Book a visit if you notice new bumps or growths in the genital, anal, or oral area, if you're due for cervical screening, or if you simply want to start the vaccine series. Bring up your vaccination history if it was years ago or with an older shot. If you're in a higher-risk group for anal cancer, ask specifically about anal screening and whether high-resolution anoscopy is available locally.