The full-length prefusion-stabilized SARS-CoV-2 spike (S) is the principal antigen of COVID-19 vaccines. Vaccine efficacy has been impacted by emerging variants of concern that accumulate most of the sequence modifications in the immunodominant S1 subunit. S2, in contrast, is the most evolutionarily conserved region of the spike and can elicit broadly neutralizing and protective antibodies. Yet, the usage of S2 as an alternative vaccine strategy is hampered by its general instability. Here, we use a simulation-driven approach to design highly stable S2-only antigens retaining a closed prefusion conformation. Weighted ensemble simulations provide mechanistic characterization of the S2 trimer opening, informing the design of tryptophan substitutions that impart kinetic and thermodynamic stabilization. Alchemical free energy perturbation calculations and a corroborating set of experiments confirm that V991W and T998W in the central helices of S2 stabilize the trimer in the closed prefusion conformation, producing an antigen with increased protein expression, superior thermostability, and preserved immunogenicity against sarbecoviruses.