People experiencing homelessness (PEH) face disproportionately high mortality rates compared with the general population, but few studies have examined mortality in this population by age, gender, and race and ethnicity. To evaluate all-cause and cause-specific mortality in a large cohort of PEH by age, gender, and race and ethnicity. An observational cohort study was conducted from January 1, 2003, to December 31, 2018. All analyses were performed between March 16, 2021, and May 12, 2022. A cohort of adults (age ≥18 years) seen at the Boston Health Care for the Homeless Program (BHCHP), a large federally funded Health Care for the Homeless organization in Boston, Massachusetts, from January 1, 2003, to December 31, 2017, was linked to Massachusetts death occurrence files spanning January 1, 2003, to December 31, 2018. Age-, gender-, and race and ethnicity-stratified all-cause and cause-specific mortality rates were examined and compared with rates in the urban Northeast US population using mortality rate ratios (RRs). Among the 60 092 adults included in the cohort with a median follow-up of 8.6 (IQR, 5.1-12.5) years, 7130 deaths occurred. The mean (SD) age at death was 53.7 (13.1) years; 77.5% of decedents were men, 21.0% Black, 10.0% Hispanic/Latinx, and 61.5% White. The all-cause mortality rate was 1639.7 deaths per 100 000 person-years among men and 830 deaths per 100 000 person-years among women. The all-cause mortality rate was highest among White men aged 65 to 79 years (4245.4 deaths per 100 000 person-years). Drug overdose was a leading cause of death across age, gender, and race and ethnicity groups, while suicide uniquely affected young PEH and HIV infection and homicide uniquely affected Black and Hispanic/Latinx PEH. In this large cohort study of PEH, all-cause and cause-specific mortality varied by age, gender, and race and ethnicity. Tailored interventions focusing on those at elevated risk for certain causes of death are essential for reducing mortality disparities across homeless-experienced groups.