Treatment of screen-detected anal high-grade squamous intraepithelial lesions has been shown to effectively reduce the incidence of invasive anal cancer in people with HIV. We provide population-based estimates of cumulative incidence of anal cancer by risk group and age at HIV or AIDS diagnosis. The 0- to 10-year cumulative incidence of anal cancer for men who have sex with men and are younger than 30years of age at HIV diagnosis was 0.17% (95% confidence interval [CI] = 0.13% to 0.20%) compared with 0.04% (95% CI = 0.02% to 0.06%) in other men and 0.03% (95% CI = 0.01% to 0.04%) in women. For men who have sex with men and have a diagnosis of AIDS and are younger than 30years of age, the 0- to 10-year cumulative incidence was 0.35% (95% CI = 0.28% to 0.41%). Among people with HIV, men who have sex with men are at the greatest risk of anal cancer, and those with a diagnosis of AIDS had higher risk than those without AIDS. These estimates may inform recommendations for priority populations that could benefit most from anal cancer screening and treatment.