Although NLR and PLR independently correlate with anal cancer risk, when controlling for other risk predictors, only PNI and CD4/CD8 ratio were statistically significant biomarkers for anal cancer. The CD4/CD8 ratio is the strongest immune inflammatory marker that predicts risk of anal cancer among veterans living with HIV.