Patients who present for surgery are already taking opioids and are at risk of adverse effects, including the need for higher opioid doses and difficulties with postoperative weaning. This article outlines how to manage opioid use in patients before and after surgery and how to successfully wean them off their opioids.