G-protein-coupled receptors (GPCRs) are important therapeutic targets and numerous approved drugs act by either stimulating or blocking receptor activation. However, the design of ligands that modulate GPCR signaling is challenging. We demonstrate that molecular simulations of GPCRs can be used to predict ligand efficacy and identify potent β2-adrenoceptor agonists.