Living With HPV

What Is the Link Between HPV and Anal Cancer?

Short answerPersistent infection with a high-risk HPV type, most often HPV 16, causes the large majority of anal cancers. The U.S. National Cancer Institute puts the figure above 90 percent. Still, anal HPV infection is common and almost always clears without causing harm. Cancer is the rare outcome, and it usually follows years of persistent infection, often in people with weakened immunity. Vaccination before exposure lowers risk, and treating precancer has been shown to prevent cancer in people with HIV.
On this page
  1. The link is strong, but the infection is not the cancer
  2. How a virus on the skin becomes a cancer
  3. Which HPV types matter
  4. Who has a higher risk
  5. What lowers the risk
  6. The evidence that treating precancer prevents cancer
  7. Symptoms worth acting on
  8. What cannot be concluded

Anal cancer is one of the cancers most closely tied to a virus. The National Cancer Institute states that over 90 percent of anal cancer is caused by HPV.1 The CDC reaches a similar picture from the other direction: using 2018 to 2022 data, about 10 percent of anal cancers are HPV-negative, which means the great majority carry the virus.7

Two things need to be held together here. The link between the virus and the cancer is about as strong as it gets for any cancer outside the cervix. At the same time, anal HPV infection itself is common and nearly always harmless. A positive anal HPV result, or a history of genital HPV, is not a prediction that cancer will follow. The cancer is the rare end of a long chain of events in which the immune system repeatedly fails to clear the infection.

The ACS adds a useful sense of scale: anal cancer is fairly rare, much less common than cancer of the colon or rectum.5 The rarity is why routine screening of the general public is not standard, a point covered in more detail in the page on who may be offered anal cancer screening.

How a virus on the skin becomes a cancer

The anus has a transition zone where two kinds of cells meet, much like the cervix. High-risk HPV types can infect the cells there. In most people the immune system suppresses or clears the infection. In some, the virus persists, and the infected cells begin to change. These changes are called anal intraepithelial neoplasia (AIN), or anal squamous intraepithelial lesions. The ACS describes low-grade changes as often resolving without treatment, while high-grade changes are less likely to clear and could eventually become cancer.5

The NCI draws the parallel to cervical disease: persistent infection can progress to precancer and, in some cases, to cancer.1 The NCI’s timeline of roughly 5 to 10 years to precancer and about 20 years to cancer is given for the cervix. The sources reviewed here do not state a comparable timeline for the anus, so no figure should be assumed. What can be said is that the process is slow and that most infections never complete it.

The precancerous stage is what makes prevention possible. The difference between a visible wart and a precancerous change is taken up in the page on anal HSIL versus an anal wart.

Which HPV types matter

HPV 16 is the high-risk type most likely to cause anal cancer, and HPV 18 is seen less often, according to the ACS.2 The NCI names the same two types as responsible for most HPV-related cancers and describes HPV 16 as especially likely to persist.1

This is separate from the types that cause genital and anal warts. Those are mostly low-risk types that are not the usual drivers of cancer. Having had warts does not mean a person carries a cancer-causing type, though the ACS notes that people who have had anal warts have a higher likelihood of developing anal cancer, and that some warts contain areas of dysplasia.5 In practice, a person can be infected with several types at once, which is why a wart diagnosis and a high-risk type do not exclude each other.

Who has a higher risk

The ACS lists HPV infection as the most important risk factor, followed by several others that mostly work by making persistent infection more likely or by increasing exposure:2

  • HIV infection. People with HIV are much more likely to develop anal cancer than people without it. The NCI notes that HIV is a factor that makes high-risk HPV infections more likely to persist.1
  • Men who have sex with men. The ACS describes this group as having a high risk, linked to receptive anal sex and multiple partners, which raise the chance of HPV and HIV infection.
  • Immune suppression. Anti-rejection medicines after an organ transplant, or other causes of reduced immunity, are associated with higher rates.
  • Smoking. Risk rises with pack-years. Current smokers are more likely to develop anal cancer than non-smokers or former smokers, and quitting appears to lower risk.
  • Anal warts and other HPV-related cancers. A history of anal warts, or of cervical, vaginal, or vulvar cancer, is listed as a risk factor.

The ACS also notes that anal cancer is more common in White women and Black men. The reasons are not explained on the page, so no explanation should be read into the pattern.

None of these factors is a diagnosis. Most people with any of them never develop anal cancer. Women are sometimes surprised to find themselves on the list. Anal cancer occurs in all genders, and a history of HPV-related cervical, vaginal, or vulvar disease is itself a flag. How that history should change screening is still unsettled: a 2022 study of women with high-grade cervical, vaginal, or vulvar disease notes that no anal screening guidelines exist for them and calls for research on when and how often to screen.8

What lowers the risk

Vaccination. The NCI states that studies show vaccination lowers the risk of anal cancer, and that the vaccine may work best when given before HPV exposure.3 The ACS adds that vaccines cannot treat an existing infection.4 The 9-valent vaccine (Gardasil 9) covers nine types including 16 and 18, and the NCI describes it as working best at ages 9 to 12, with catch-up vaccination recommended through age 26.1 Dose counts and age rules for the vaccine are in the schedule pages; the schedule has been reported to be changing, so current CDC guidance should be checked. People with HIV who are weighing vaccination can start with this page on questions to ask.

Not smoking. The ACS says quitting smoking greatly reduces the risk of anal cancer and many other cancers.4

Controlling HIV. Antiretroviral therapy may lower the risk of long-term HPV infection and anal precancer. The ACS also reports that anal cancer cases among people on treatment have increased, for reasons that are unknown, possibly because people are living longer.2 For the effect of HIV on follow-up of persistent infection more broadly, see how HIV affects follow-up for persistent HPV.

Condoms. Condoms may offer some protection against HPV and HIV but do not prevent infection completely. Whether they reduce anal cancer risk is unknown because not enough studies have been done.3

Finding and treating precancer. This is the best-evidenced step beyond vaccination, and it is the reason screening exists for some groups.

The evidence that treating precancer prevents cancer

The strongest data come from the ANCHOR trial, a randomized study of 4,459 people with HIV, aged 35 or older, who had biopsy-proven anal HSIL (high-grade squamous intraepithelial lesion, the higher-risk form of precancer). Half were assigned to treatment and half to active monitoring. After a median follow-up of 25.8 months, anal cancer occurred at 173 per 100,000 person-years in the treatment group (9 cases) and 402 per 100,000 person-years in the monitoring group (21 cases), a 57 percent lower rate with treatment.6

Several limits apply. The participants all had HIV and were 35 or older, so the trial does not directly measure the benefit for people without HIV or for younger people. Treatment did not prevent every cancer, and recurrence of HSIL is common. The investigators also cautioned that results may not be replicated when examination and treatment are done by less-trained clinicians. The NCI says the findings may support screening recommendations that could extend to other higher-risk groups, which is a statement about possibility rather than an established guideline.

Symptoms worth acting on

Anal cancer often produces no symptoms early on. When symptoms occur, the ACS lists bleeding from the anus or rectum, itching, a lump near the anal opening, pain or a feeling of fullness, narrower stools, and unusual discharge. They overlap heavily with hemorrhoids and fissures, which are far more common causes. The ACS cautions against assuming rectal bleeding is always hemorrhoids and advises seeing a doctor for any new symptom that does not go away.2 Relevant detail on how clinicians look at the area is in the page on high-resolution anoscopy.

What cannot be concluded

A few misreadings are worth heading off. A past or current HPV infection does not mean anal cancer is coming. A genital HPV result does not say whether the anus is infected, because the sites can differ. A partner’s HPV history does not indicate who acquired the virus or when, since infections can lie quiet for years. And the term “high-risk” describes a type’s cancer potential across populations, not the odds for one person.

The CDC makes a technical caveat about the percentages themselves: HPV status is not routinely recorded by cancer registries, so the share of cancers attributed to HPV is estimated from laboratory genotyping of cancer tissue and applied to registry counts.7 The figures are therefore good estimates, not a head count.

Sources

  1. HPV and Cancer. National Cancer Institute. 2025. United States · Checked 2026-11-25
  2. Risk Factors for Anal Cancer. American Cancer Society. United States · Checked 2026-11-25
  3. Anal Cancer Prevention (PDQ) - Patient Version. National Cancer Institute. United States · Checked 2026-11-25
  4. Anal Cancer Prevention: Risk Factors and What You Can Do. American Cancer Society. United States · Checked 2026-11-25
  5. What Is Anal Cancer?. American Cancer Society. United States · Checked 2026-11-25
  6. Treatment of Anal High-Grade Squamous Intraepithelial Lesions to Prevent Anal Cancer (ANCHOR). New England Journal of Medicine (via PubMed Central). 2022. United States · Checked 2026-11-25
  7. Cancers Associated with Human Papillomavirus. CDC. 2026. United States · Checked 2026-11-25
  8. A cross-sectional study of the prevalence of anal dysplasia among women with high-grade cervical, vaginal, and vulvar dysplasia or cancer: The PANDA Study. Cancer Epidemiology, Biomarkers & Prevention (via PubMed Central). 2022. 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.