IntroductionAs children become adolescents and young adults (AYA), their risk for attempting suicide increases dramatically, with chronic health conditions an important risk factor. This study examined correlates of suicidality across development in AYA living with perinatally acquired HIV (AYALPHIV) and those perinatally HIV‐exposed but uninfected (AYAPHEU).MethodsData come from an ongoing longitudinal New York City‐based study (N = 339) with AYALPHIV and AYAPHEU interviewed every 12–18 months from 2003 to 2019 (mean enrolment age = 12 years; current mean age = 27 years). The Diagnostic Interview Schedule for Children (adolescent or young adult version) assessed psychiatric disorders and first‐reported suicide attempt. Generalized estimating equations were used to examine associations between first‐reported suicide attempt and socio‐demographic, contextual and psychosocial correlates measured concurrently across six timepoints.ResultsAt enrolment, 51% of participants were female, 72% heterosexual, 60% Black and 50% Latinx. Attempted suicide was significantly higher among AYALPHIV (27%, CI 21–33%) compared to AYAPHEU (16%, CI 10–22%), with an OR of 1.74 (CI 1.04–2.92) in a model adjusting for age. For AYALPHIV, anxiety (OR 2.66, CI 1.46–4.85), mood (OR 3.62, CI 1.49–8.81) and behaviour disorders (OR 5.05, CI 2.15–11.87) and past‐year arrest (OR 3.05, CI 1.26–7.4), negative life events (OR 1.27, CI 1.11–1.46), city stress (OR 2.28, CI 1.46–3.57), pregnancy (OR 2.28, CI 1.08–4.81) and HIV stigma (OR 2.46, CI 1.27–4.75) were associated with increased odds of attempted suicide, while identifying as heterosexual (OR 0.27, CI 0.14–0.52), higher personal (OR 0.45, CI 0.26–0.80) and family self‐concept (OR 0.36, CI 0.22–0.57) were protective. Interactions by HIV status and age were found: substance use was more strongly associated with attempted suicide among AYAPHEU than AYALPHIV, while negative life events and higher religiosity were more strongly associated with increased odds of attempted suicide among AYA ≥ 19 versus ≤ 18 years.ConclusionsAYALPHIV compared to AYAPHEU faced unique risks for attempted suicide as they age into adulthood, with the highest risk among AYALPHIV experiencing HIV stigma or pregnancy and the highest risk among AYAPHEU with substance use. Assessing for suicide risk and correlates with attention to ageing can inform preventive interventions tailored to meet AYALPHIV and AYAPHEU needs.