This page was reviewed under our medical and editorial policy by
Ruchi Garg, MD, Chair, Gynecologic Oncology, City of Hope Atlanta, Chicago and Phoenix
This page was reviewed on November 17, 2021.
Can a vaccine prevent cancer? In the case of cervical, genital and certain throat cancers, the answer is yes. The human papillomavirus (HPV) vaccine, also known by the brand names Gardasil®, Gardasil 9® and Cervarix®, helps prevent the cancer-causing human papillomavirus. The HPV vaccine is recommended for people of both genders as young as 9 and approved through age 45.
What is HPV? HPV is a virus that spreads through skin-to-skin contact, typically during sexual activity. There are hundreds of different types of HPV, but some pose more of a risk than others. While some are harmless and go away on their own, some types of HPV cause genital warts, and several other types may lead to cervical, anal, oropharyngeal (back of the throat), penile, vulvar and vaginal cancers.
Regular Pap tests screen for changes in cervical cells, which are almost always (over 99 percent) caused by HPV. If changes are detected during a Pap smear, an HPV test is used to confirm the presence of the virus and course of treatment.
The American College of Obstetricians and Gynecologists (ACOG) recommends:
HPV-related cancers develop slowly over time, and it’s possible to have HPV for a long time without showing any signs or symptoms. There are no regular screening recommendations to prevent penile, vulvar, anal or oropharyngeal cancers. These cancers are usually diagnosed through a physical exam when a patient has symptoms. People with weakened immune systems, such as those living with human immunodeficiency virus (HIV) or who underwent an organ transplant, may be more at risk for HPV-related cancers.
The HPV vaccine comprises a series of two to three shots, depending on the age, designed to prevent various strains of the virus. One HPV vaccine is available to U.S. patients: Gardasil®. This vaccine is up to 99 percent effective at preventing HPV infections that cause cancer, according to ACOG. They’re also effective at preventing some non-cancer-causing types of HPV, like the type that causes genital warts. The vaccines work by stimulating the immune system to create antibodies that ward off HPV infections. HPV vaccines don’t actually contain the virus. Instead, they contain virus-like particles (VLPs), so the vaccines don’t “give” you HPV.
The vaccine is routinely offered to children regardless of gender at age 11 or 12, but it’s safe for children as young as age 9 and approved through age 45.
While the vaccine is recommended for anyone through age 26, it is approved by the U.S. Food and Drug Administration for use through age 45. Those who are pregnant should wait until afterward to get the vaccine. Anyone older than 26 should ask his or her doctor whether the vaccine is the right choice. In general, the vaccine is more effective for younger people because they’re less likely to have already been exposed to the virus through sexual activity.
For most people, the HPV vaccine is considered safe. Like other vaccines, these are thoroughly tested for safety and efficacy before becoming available. Since their introduction in the 2000s, studies have overwhelmingly supported the safety of HPV vaccines, and many people have received them without issues.
Adverse events (bad reactions or side effects) may occur in a small number of people who receive the HPV vaccine. The most common adverse reactions to HPV vaccines are:
While fainting isn’t common, the doctor may recommend sitting or lying down for 15 minutes after getting the shot to prevent injuries.
HPV vaccines may cause allergic reactions in some people. In the worst case, this allergic reaction may cause anaphylaxis. People who have experienced allergic reactions to other vaccines or are allergic to any of the components that make up the HPV vaccine, including yeast, are advised not to get it.
Because HPV is spread skin to skin—usually during vaginal, anal or oral sex—doctors recommend using condoms and dental dams (latex or polyurethane barriers) to help reduce contact and prevent transmission.