Conclusions Approximately 3% of previously opioid naïve patients continued to use opioids for more than 90 days after major elective surgery. Specific patient and surgical characteristics were associated with the development of prolonged postoperative use of opioids. Our findings can help better inform understanding about the long term risks of opioid treatment for acute postoperative pain and define patient subgroups that warrant interventions to prevent progression to prolonged postoperative opioid use.