IMPORTANCE Mortality is an important measure of the severity of a pandemic. This study aimed to understand how mortality by age of hospitalized patients who were tested for SARS-CoV-2 has changed over time. OBJECTIVE To evaluate trends in in-hospital mortality among patients who tested positive for SARS-CoV-2. DESIGN, SETTING, AND PARTICIPANTS This retrospective cohort study included patients who were hospitalized for at least 1 day at 1 of 209 US acute care hospitals of variable size, in urban and rural areas, between March 1 and November 21, 2020. Eligible patients had a SARS-CoV-2 polymerase chain reaction (PCR) or antigen test within 7 days of admission or during hospitalization, and a record of discharge or in-hospital death. EXPOSURE SARS-CoV-2 positivity. MAIN OUTCOMES AND MEASURES SARS-CoV-2 infection was defined as a positive SARS-CoV-2 PCR or antigen test within 7 days before admission or during hospitalization. Mortality was extracted from electronically available data. RESULTS Among 503 409 admitted patients, 42 604 (8.5%) had SARS-CoV-2-positive tests. Of those with SARS-CoV-2-positive tests, 21 592 (50.7%) were male patients. Hospital admissions among patients with SARS-CoV-2-positive tests were highest in the group aged 65 years or older (19 929 [46.8%]), followed by those aged 50 to 64 years (11 602 [27.2%]) and 18 to 49 years (10 619