Many hospital and provincial-level recommendations now advise a tailored approach to postoperative opioid prescribing; recent trends in postoperative prescribing at the population level have not been well described. This population-based cohort study included opioid-naïve patients ≥ 18 yr of age who underwent one of 16 surgical procedures with varying anticipated postoperative pain between July 2013 and March 2020. We evaluated the rate of filled opioid prescriptions within seven days postoperatively, the total morphine milligram equivalent (MME) dose, duration, and type of the first opioid prescription. We then compared the MMEs in initial opioid prescriptions with available procedure-specific recommendations. The sample included 900,989 opioid-naïve patients (mean [standard deviation (SD)] age of 50 [17] 31 yr; 66% women). The percentage of patients filling an opioid prescription within 7 days postoperatively increased from 65% in 2013 to 69% in 2016, and returned to the baseline (65%) in 2019. The mean (SD) MMEs dispensed increased until 2015/2016 and then declined (226 [176] MMEs in 2013, 240 [202] MMEs in 2016, and 175 [175] MMEs in 2019). The most frequently prescribed opioid in 2013 was oxycodone compared with hydromorphone in 2019. Among patients who filled an opioid prescription in 2013, 67% were prescribed an opioid dose higher than those in one set of available prescribing recommendations, while in 2019, 41% were prescribed doses above those stated in recommendations. While the proportion of patients filling an opioid prescription postoperatively remained s during the study period, MMEs decreased after 2016. Opioid prescribing remained significantly higher than available prescribing recommendations, particularly among low pain procedures. These findings highlight the need to identify strategies that improve adherence to surgery-specific prescribing guidelines in North America.