Clinical outcomes of severe acute respiratory syndrome 2 (SARS-CoV-2) infection are highly heterogeneous, ranging from asymptomatic infection to lethal coronavirus disease 2019 (COVID-19). The factors underlying this heterogeneity remain insufficiently understood. Genetic association studies have suggested that genetic variants contribute to the heterogeneity of COVID-19 outcomes, but the underlying potential causal mechanisms are insufficiently understood. Here we show that common variants of the apolipoprotein E (APOE) gene, homozygous in approximately 3% of the world’s population1 and associated with Alzheimer’s disease, atherosclerosis and anti-tumour immunity2–5, affect COVID-19 outcome in a mouse model that recapitulates increased susceptibility conferred by male sex and advanced age. Mice bearing the APOE2 or APOE4 variant exhibited rapid disease progression and poor survival outcomes relative to mice bearing the most prevalent APOE3 allele. APOE2 and APOE4 mice exhibited increased viral loads as well as suppressed adaptive immune responses early after infection. In vitro assays demonstrated increased infection in the presence of APOE2 and APOE4 relative to APOE3, indicating that differential outcomes are mediated by differential effects of APOE variants on both viral infection and antiviral immunity. Consistent with these in vivo findings in mice, our results also show that APOE genotype is associated with survival in patients infected with SARS-CoV-2 in the UK Biobank (candidate variant analysis, P = 2.6 × 10E−7). Our findings suggest APOE genotype to partially explain the heterogeneity of COVID-19 outcomes and warrant prospective studies to assess APOE genotyping as a means of identifying patients at high risk for adverse outcomes.