IntroductionDescriptions of opioid use trajectories and their association with postsurgical pain and opioid consumption are limited. We hypothesized that trajectories of opioid consumption in the first 28 days following surgery would be associated with unique patterns of pain and duration of opioid use.MethodsA prospective longitudinal cohort of patients undergoing elective inpatient abdominal, joint, or spine surgery between June 2016 and June 2019 was studied. At hospital discharge and every 7 days for 28 days, patients were assessed for pain, analgesic use, pain interference, satisfaction, and side effects. Duration of opioid use was determined for 6 months. The primary analysis used latent class group modeling to identify trajectories of opioid use.ResultsDecreasing, high, and persistent opioid trajectories were identified following joint and spine surgery and a decreasing and persistent trajectory following abdominal surgery. Reported pain was greater in the high and persistent trajectories compared with the decreasing use trajectories. Compared with the decreasing opioid trajectory, the median duration of opioid use was increased by 4.5 (95% CI 1 to 22, p<0.01) weeks in persistent opioid use abdominal and by 6 (95% CI 0 to 6, p<0.01) weeks in the high or persistent use joint and spine groups. The odds (95% CI) of opioid use at 6 months in the high or persistent opioid use trajectory was 24.3 (2.9 to 203.4) for abdominal and 3.7 (1.9 to 7.0) for joint or spine surgery compared with the decreasing use trajectory. Morphine milliequivalent per 24 hours of hospitalization was the primary independent predictor of opioid use trajectories.ConclusionsWe observed distinct opioid use trajectories following abdominal and joint or spine surgery that were associated with different patterns of pain and duration of opioid use postoperatively. Prediction of postoperative opioid use trajectory groups may be clinically important for identifying risk of prolonged opioid use.