Lower CD4 counts, being female, and being co-infected with PM, HCV, or TB were independent correlates of anemia in hospitalized people living with HIV. This evidence concerns the gene CD4 and tuberculosis.