ObjectivesTo evaluate the risk of heart failure (HF) linked to human immunodeficiency virus (HIV) infection, how risk varies by demographic characteristics, and whether it is explained by atherosclerotic disease or risk factor treatment. Patients and MethodsWe performed a retrospective cohort study of persons with HIV (PWHs) from January 1, 2000, through December 31, 2016, frequency-matched 1:10 to persons without HIV on year of entry, age, sex, race/ethnicity, and treating facility. We evaluated the risk of incident HF associated with HIV infection, overall and by left ventricular systolic function, and whether HF risk varied by demographic characteristics. ResultsAmong 38,868 PWHs and 386,586 matched persons without HIV, mean ± SD age was 41.4±10.8 years, with 12.3% female, 21.1% Black, 20.5% Hispanic, and 3.9% Asian/Pacific Islander. During median follow-up of 3.8 years (interquartile range, 1.4-9.0 years), the rate (per 100 person-years) of incident HF was 0.23 in PWHs vs 0.15 in those without HIV (P<.001). The PWHs had a higher adjusted HF rate (adjusted hazard ratio [aHR], 1.73; 95% confidence interval [CI], 1.57 to 1.91), which was only modestly attenuated after accounting for interim acute coronary syndrome events. Results were similar by systolic function category. The adjusted risk of HF in PWHs was more prominent for those 40 years and younger (aHR, 2.45; 95% CI, 1.92 to 3.03), women (aHR, 2.48; 95% CI, 1.90 to 3.26), and Asian/Pacific Islanders (aHR, 2.46; 95% CI, 1.27 to 4.74). ConclusionHIV infection increases the risk of HF, which varied by demographic characteristics and was not primarily mediated through atherosclerotic disease pathways or differential use of cardiopreventive medications.