Abstract
Background: Opioid prescription practices in the United States have changed substantially over the past 25 years in response to government policies, medical guidelines, and the opioid epidemic.
Methodology: The Medical Information Mart for Intensive Care IV (MIMIC-IV) version 3.1 database comprises de-identified patient encounters from Beth Israel Deaconess Medical Center (BIDMC) in Massachusetts, United States. Data were analyzed using Structured Query Language (SQL) via Google BigQuery. Patients were grouped into three-year cohorts to further protect confidentiality.
Results: Between 2008 and 2022, data from 364,627 patient admissions were evaluated, including 1,150,944 opioid prescriptions. The percentage of patients receiving opioids decreased from 46.5% (47,273 of 101,607) in the 2008-2010 cohort to 33.6% (16,545 of 49,173) in the 2020-2022 cohort. The number of prescriptions per patient also decreased, from 9.9 in the 2008-2010 cohort to 5.8 in the 2020-2022 cohort. Furthermore, the total prescribed strength per patient decreased from 829 morphine milligram equivalents (MME) in the 2008-2010 cohort to 508 MME in the 2020-2022 cohort. These decreases were consistent across all cohorts during the study period.
Conclusions: These findings are consistent with other studies from the United States and internationally demonstrating declines in the volume and potency of opioid prescriptions during this period. Despite these reductions, opioid-related deaths increased over the same period. These trends persisted across the recognized waves of the opioid epidemic. Although previous studies have reported opioid prescription data from the MIMIC database, our findings provide the most up-to-date analysis spanning the opioid epidemic.
Keywords: mimic-iv database, opioid epidemic, pain management, prescriptions, trends
Introduction
Poppy extracts have been used to treat pain for thousands of years. Although some people have always been harmed by these medicines, many more have obtained relief from suffering. The American opioid epidemic has claimed hundreds of thousands of lives over the past three decades through addiction, overdose, and, more recently, fentanyl poisoning [1]. The Centers for Disease Control and Prevention (CDC) and other groups have divided the opioid epidemic into four overlapping phases [2]:
Wave 1 (late 1990s through 2010): The first phase of the epidemic was driven by intensified prescribing of semi-synthetic opioids such as OxyContin. From 1999 to 2010, the CDC found that rates of prescription opioid sales quadrupled. This increase was accompanied by a doubling of opioid-related overdose deaths.
Wave 2 (2010-2013): Characterized by efforts to tighten opioid prescribing, this period saw a spike in heroin-related addiction and overdose. Declining prices, caused by a shift in manufacturing from South America to Mexico, made this illicit narcotic more accessible. Under these conditions, heroin surpassed many popular prescription formulations as the deadliest opioid.
Wave 3 (2013 to the present): Fully synthetic opioids, primarily fentanyl, entered the market. Many overdose deaths resulted from illicit, non-pharmaceutical fentanyl. These opioids often have higher potency than their natural counterparts, increasing the risk of overdose and addiction. The third wave of the opioid epidemic saw another doubling of opioid-related overdose deaths.
Wave 4 (late 2010s onward): Now described in newer literature, this wave is marked by a rise in polysubstance-related deaths. In particular, the combination of fentanyl with stimulants such as cocaine or methamphetamine has become concerningly common in illicit drug markets.
These waves never cleanly replaced one another [1]. Prescription-opioid and heroin-related deaths continued as fentanyl use rose. The unpredictable course of the epidemic reflects the uneven evolution of policies intended to address both prescription and illicit opioid addiction. Our study aims to relate hospital data to this timeline.
Materials and methods
Study population
This retrospective analysis evaluated prescription orders for hospitalized patients older than 18 years who were admitted from 2008 to 2022. The Medical Information Mart for Intensive Care IV (MIMIC-IV) v3.1 was used for data analysis [3,4]. This is the most recent release of the large dataset from Beth Israel Deaconess Medical Center, a major academic medical center in Boston, Massachusetts. The data include emergency department visits, hospital admissions, and intensive care unit admissions. The most recent dataset covers patients from 2008 to 2022 and comprises 364,627 unique patients among 546,028 hospitalizations and 94,458 hospital admissions.
Data management
Patient information was de-identified to protect confidentiality. Best practices, including training through the Collaborative Institutional Training Initiative (CITI) for Data or Specimens Only Research, were followed to ensure data security.
Dates of admission are deliberately obscured to further protect patients. By linking patient data to 3-year intervals, referred to as anchor years, the database still permits date-based analysis. These anchor-year intervals are 2008-2010, 2011-2013, 2014-2016, 2017-2019, and 2020-2022.
After authorization was obtained from PhysioNet.org, the data were imported into Google BigQuery for extraction. Data were extracted from the following MIMIC-IV subsets: mimiciv_3_1_hosp.prescriptions and mimiciv_3_1_hosp.patients. SQL queries were then used to analyze the data.
Results
Percentage of patients receiving opioids
The proportion of patients who received opioids decreased over the study period (Table 1). In the first anchor-year cohort, 46.5% (47,273 of 101,607) of patients at Beth Israel Deaconess Medical Center (BIDMC) received at least one opioid prescription. This percentage declined in each successive three-year interval. A decade later, in the 2017-2019 cohort, the percentage of patients had fallen to 34.4% (22,651 of 65,941), a 26% relative decrease.
Table 1. Overall unique patients and percent receiving at least one opioid prescription.
| Real-year group | Unique patients | Unique patients who received opioids | Percent receiving opioids |
| 2008-2010 | 101,607 | 47,273 | 46.5% |
| 2011-2013 | 76,266 | 31,377 | 41.1% |
| 2014-2016 | 71,640 | 27,804 | 38.8% |
| 2017-2019 | 65,941 | 22,651 | 34.4% |
| 2020-2022 | 49,173 | 16,545 | 33.6% |
Amount of opioids received
The analysis examined the amount of opioids patients received in two ways. The database reported both the number of prescriptions per patient and the total quantity of opioids administered. From 2008 to 2022, the number of prescriptions per patient was nearly halved, from 9.9 to 5.8. This part of the analysis excluded patients who received no opioid prescriptions.
Further analysis of the same patients showed that those who received opioids were given less medication overall. In the peak 2008-2010 cohort, patients who received opioids were prescribed 829 morphine milligram equivalents (MME). This amount declined substantially over time; in the final 2020-2022 anchor-year cohort, patients received an average of only 508 MME (Table 2).
Table 2. Average opioid prescriptions and total morphine milligram equivalents per patient.
| Real-year group | Total opioid prescriptions | Unique patients who received opioids | Number of prescriptions per patient | Average morphine milligram equivalents per patient |
| 2008-2010 | 469,283 | 47,273 | 9.9 | 829 |
| 2011-2013 | 239,526 | 31,377 | 7.7 | 678 |
| 2014-2016 | 199,479 | 27,804 | 7.2 | 690 |
| 2017-2019 | 146,451 | 22,651 | 6.5 | 552 |
| 2020-2022 | 96,205 | 16,545 | 5.8 | 508 |
The data show a decrease in the amount of opioids prescribed, reflecting both a lower percentage of patients receiving opioids and fewer prescriptions per patient among those who received them (Figure 1).
Figure 1. Trend in the percentage of patients receiving opioids and the number of opioid prescriptions per patient.

Data explanation/limitations
A note on the data is that the overall number of patients declined over the analysis period. This is an artifact of the dataset and does not represent a decrease in patient volume. MIMIC-IV assigns each unique patient to an anchor-year group based on the first admission. As a result, all patients in the first group were counted as unique, while patients who returned in later anchor-year groups remained assigned to the earlier group.
Opioid-dosing data in MIMIC-IV have significant limitations. We included the following drugs in our search parameters: morphine, fentanyl, hydromorphone, oxycodone, hydrocodone, codeine, tramadol, and methadone. The number of prescriptions is relatively straightforward. The database is not fully consistent with as-needed (PRN) dosing or with MME conversions between intravenous (IV) and oral (PO) administration. For example, if a patient was given IV morphine as opposed to PO morphine, this would constitute a higher MME, which is not reflected in the data. To this extent, we included MME dosing as an exploratory analysis. The percentage of patients receiving opioids, as well as the number of prescriptions, are very robust data points.
Discussion
In this analysis, we present the most recent update of opioid prescription trends based on the MIMIC-IV database from BIDMC, a major academic hospital in Boston, Massachusetts. The scale of mortality from the opioid epidemic has had a substantial impact on government, pharmaceutical, and medical society policies.
We believe this analysis is the first published study of MIMIC-IV v3.1 for this specific question. Prior work, such as Chandra et al., evaluated earlier data, including MIMIC-III and earlier versions of MIMIC-IV [5]. Numerous other studies have also examined opioid prescription trends across different procedures, time periods, conditions, and countries.
Our dataset begins in 2008, marking the start of the second wave of the opioid epidemic, when use shifted away from prescription opioids toward street drugs. It then spans the third wave, dominated by fentanyl from 2013 to 2019, and ends at the beginning of the fourth wave, characterized by the rise of synthetic polysubstance combinations [1,6].
Transition from wave 1 to wave 2 of the epidemic
Trends in hospital opioid use were robust and consistent across all measures. Table 1 shows that the proportion of patients who received opioids declined steadily and substantially throughout the study period. Table 2 shows that even among patients who received opioid pain management, the number of prescriptions and overall dosing, standardized to MME, also declined. The shift from wave 1 to wave 2 was driven mainly by changes in the regulation of prescription opioids, particularly controversy surrounding OxyContin and federal and state efforts to police and curb prescribing of these powerful pharmaceuticals [7]. Prescription-monitoring programs enabled data analytics so that physicians could track patients, pharmaceutical companies could track pharmacies, and licensing agencies could monitor prescribers [8]. This pattern aligns with our data, which show the largest drop in prescriptions between the 2008-2010 and 2011-2013 cohorts.
Similar findings have been reported by other researchers examining the effects of policy changes on prescribing by surgeons, inpatient providers, and the general population [9-13]. There is also evidence that stricter government monitoring and enforcement led many pain-management clinics to close [14]. Although these policies helped stop fraud and abuse, patients who were addicted to prescribed opioids were left without medically supervised treatment. Thus, the transition from wave 1 to wave 2 coincided with a large increase in opioid-related deaths.
Transition between wave 2 and wave 3 of the epidemic
Despite falling opioid prescription rates, opioid-related morbidity and mortality continued to rise. As awareness grew that these prescriptions can lead to opioid use disorder and overdose, prescribing continued to decline [15]. Physicians not only wrote fewer prescriptions but also provided them for shorter durations [16]. As our analysis shows, both the number and potency of prescriptions continued to fall through this period.
Even so, deaths continued to increase despite tighter policing and guidelines. One reason is the delay between initiation of pain medication and overdose death, which averages 5.2 years [16]. In addition, the rising potency of street drugs - specifically, the shift from heroin to fentanyl - led to more overdoses and poisonings [17].
Wave 3 of the epidemic and beyond
By wave 3, overprescribing of opioids during wave 1 still accounted for a large share of morbidity and mortality because so many years had elapsed.
Studies of U.S. hospital systems are consistent with our more recent data. Opioid prescriptions continued to fall. The rate of decrease was relatively stable over time as further restrictions and government policies were implemented [18-20]. Opioid prescription rates and quantities also varied substantially by demographic and other characteristics. Other investigators found that although prescriptions decreased significantly in all populations, disparities by race and other demographics persisted [5]. Innovations in pain management, such as postoperative guidelines, have also helped limit opioid prescriptions [21,22].
Fewer analyses have used more recent databases for this question. Our data extend past 2020 into what is beginning to be called wave 4. We found that declining opioid administration and rising death rates both continued more than a decade after the epidemic began. By 2020, the harms of opioid prescribing were already widely recognized in the medical community, and policies had been in place for years. Even so, the rate and potency of prescriptions continued to fall. Despite that continued decline in narcotic prescribing, mortality has continued to rise (Figures 2-3).
Figure 2. Comparison of opioid deaths and average opioid prescriptions per patient.

Figure 3. Comparison of opioid deaths and percentage of patients receiving opioids.

International studies
Several papers from countries outside the United States have examined global efforts to reduce opioid use disorder and fatal opioid overdoses.
To address the limited research on opioid prescription trends in Canada, Rebić et al. [23] analyzed pharmaceutical opioid dispensing data from six provinces between January 1, 2018, and December 31, 2022. During that period, the prevalence of opioid prescribing declined by 11.1%, and the annual incidence fell by 7.9%. There was substantial variation among provinces, with Manitoba having the highest prevalence of opioid use and British Columbia the lowest. Opioid use rates were higher among women, people in low-income areas, and older adults.
In a study of 4,273 patients from 144 hospitals in 25 countries, the TASMAN Collaborative [24] sought to identify factors associated with opioid consumption after common surgical procedures. In the first seven days after discharge, a mean of 179 oral morphine milligram equivalents was prescribed, but patients consumed an average of only 79. Higher prescribed doses were associated with greater opioid consumption during follow-up. Overall, patients prescribed more than 100 oral morphine milligram equivalents were at increased risk of being given more opioids than needed.
The opioid epidemic is a global but uneven problem [25]. Studies of trends outside the United States help place U.S. prescribing practices and their consequences in an international context.
Limitations and future directions
Our results showed a significant decline both in the percentage of patients receiving opioid prescriptions and in the amount prescribed. These findings parallel trends reported in other states and countries.
Although restriction to a single medical center provided internal consistency, the data represent only one hospital in one state. Future studies could examine larger datasets that include more health systems. Second, as noted above, MME calculations were limited by the available data, which lacked clear information on as-needed dosing. More recent versions of the database include these details, but they cannot be compared directly with earlier years, which makes trend analysis difficult. As such, the MME data are presented only as an exploratory analysis. This limitation does not affect the percentage of patients receiving prescriptions or the number of prescriptions per patient, which are more robust measures.
Conclusions
The decrease in prescriptions demonstrates a clear and continued decrease over the entire study period. During the same period, the number of opioid-related deaths was also noted in the United States. Although prescription opioids such as OxyContin are potentially addictive and harmful, their purity and dose were known. After the epidemic shifted to street drugs, mortality trended upward. With the introduction of fentanyl in the mid-2010s, deaths rose sharply again as fentanyl poisoning compounded the dangers of illicit drugs. Our findings were consistent with this pattern: U.S. overdose deaths were plotted against the percentage of patients receiving opioid prescriptions and the number of prescriptions per patient. This 24-year span of data from more than 350,000 patients is robust and represents the most up-to-date analysis of the MIMIC system.
Acknowledgments
Artificial Intelligence (AI) was not used by the authors in the design, analysis, or manuscript preparation.
Disclosures
Human subjects: Informed consent for treatment and open access publication was obtained or waived by all participants in this study.
Animal subjects: All authors have confirmed that this study did not involve animal subjects or tissue.
Conflicts of interest: In compliance with the ICMJE uniform disclosure form, all authors declare the following:
Payment/services info: All authors have declared that no financial support was received from any organization for the submitted work.
Financial relationships: All authors have declared that they have no financial relationships at present or within the previous three years with any organizations that might have an interest in the submitted work.
Other relationships: All authors have declared that there are no other relationships or activities that could appear to have influenced the submitted work.
Author Contributions
Concept and design: Zachary Negin
Drafting of the manuscript: Zachary Negin
Acquisition, analysis, or interpretation of data: Kyra Cui, Amar Gupta
Critical review of the manuscript for important intellectual content: Kyra Cui, Amar Gupta
Supervision: Kyra Cui, Amar Gupta
References
- 1.Responding to the opioid crisis in North America and beyond: recommendations of the Stanford-Lancet Commission. Humphreys K, Shover CL, Andrews CM, et al. Lancet. 2022;399:555–604. doi: 10.1016/S0140-6736(21)02252-2. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2.Charting the fourth wave: geographic, temporal, race/ethnicity and demographic trends in polysubstance fentanyl overdose deaths in the United States, 2010-2021. [ Jun; 2025 ];Friedman J, Shover CL. Addiction. 2023 118:2477–2485. doi: 10.1111/add.16318. [DOI] [PubMed] [Google Scholar]
- 3.MIMIC-IV, a freely accessible electronic health record dataset. Johnson AE, Bulgarelli L, Shen L, et al. Sci Data. 2023;10:1. doi: 10.1038/s41597-022-01899-x. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.PhysioNet as a global platform for biomedical research. Pollard T, Moody BE, Lehman L, et al. Nature Health. 2026;1:792–795. [Google Scholar]
- 5.Chandra R. Massachusetts Institute of Technology. Massachusetts Institute of Technology; 2021. Relating Racial Disparities to Financial Concerns and Shared Decision Making in Opioid Prescriptions [Master’s Thesis] [Google Scholar]
- 6.The rise of illicit fentanyls, stimulants and the fourth wave of the opioid overdose crisis. Ciccarone D. Curr Opin Psychiatry. 2021;34:344–350. doi: 10.1097/YCO.0000000000000717. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Systematic evaluation of state policy interventions targeting the US opioid epidemic, 2007-2018. Lee B, Zhao W, Yang KC, Ahn YY, Perry BL. JAMA Netw Open. 2021;4:0. doi: 10.1001/jamanetworkopen.2020.36687. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Evidence for state, community and systems-level prevention strategies to address the opioid crisis. Haegerich TM, Jones CM, Cote PO, Robinson A, Ross L. Drug Alcohol Depend. 2019;204:107563. doi: 10.1016/j.drugalcdep.2019.107563. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9.Impact of policy interventions on postoperative opioid prescribing. MacLean CD, Fujii M, Ahern TP, Holoch P, Russell R, Hodges A, Moore J. Pain Med. 2019;20:1212–1218. doi: 10.1093/pm/pny215. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Changes in initial opioid prescribing practices after the 2016 release of the CDC Guideline for Prescribing Opioids for chronic pain. Goldstick JE, Guy GP, Losby JL, Baldwin G, Myers M, Bohnert AS. JAMA Netw Open. 2021;4:0. doi: 10.1001/jamanetworkopen.2021.16860. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.A retrospective analysis of the impact of Michigan's opioid prescribing legislation on discharge opioid prescribing at a single institution. Sadowski R, Hillaker E, Chavarria M, Khaliq F, Schwark A. J Opioid Manag. 2022;18:467–474. doi: 10.5055/jom.2022.0740. [DOI] [PubMed] [Google Scholar]
- 12.Analysis of opioid prescribing trends following thyroidectomy and parathyroidectomy before and after the 2021 American Academy of Otolaryngology-Head and Neck Surgery opioid prescribing clinical practice guidelines. Africa RE, McKinnon BJ, Coblens OM, Ranasinghe VJ, Shabani S. Otolaryngol Head Neck Surg. 2024;171:1690–1696. doi: 10.1002/ohn.1008. [DOI] [PubMed] [Google Scholar]
- 13.Racial disparities in opioid prescribing in the United States from 2011 to 2021: A systematic review and meta-analysis. Hirani S, Benkli B, Odonkor CA, et al. J Pain Res. 2024;17:3639–3649. doi: 10.2147/JPR.S477128. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Spatiotemporal analysis of the association between pain management clinic laws and opioid prescribing and overdose deaths. Cerdá M, Wheeler-Martin K, Bruzelius E, et al. Am J Epidemiol. 2021;190:2592–2603. doi: 10.1093/aje/kwab192. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.Effect of reductions in opioid prescribing on opioid use disorder and fatal overdose in the United States: a dynamic Markov model. Alexander GC, Ballreich J, Mansour O, Dowdy DW. Addiction. 2022;117:969–976. doi: 10.1111/add.15698. [DOI] [PubMed] [Google Scholar]
- 16.Decreasing utilization of opioids and prescription nonopioids following lumbar discectomy. Ratnasamy PP, Maloy GC, Slevin J, Varthi AG, Grauer JN. N Am Spine Soc J. 2025;24:100793. doi: 10.1016/j.xnsj.2025.100793. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17.Changes in synthetic opioid involvement in drug overdose deaths in the United States, 2010-2016. Jones CM, Einstein EB, Compton WM. JAMA. 2018;319:1819–1821. doi: 10.1001/jama.2018.2844. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18.Trends and factors associated with opioid prescribing from 2017 to 2023. Song W, Mukamal KJ, Suzuki J, et al. Pain. 2026;167:218–225. doi: 10.1097/j.pain.0000000000003806. [DOI] [PubMed] [Google Scholar]
- 19.Trends in opioid prescribing and new persistent opioid use after surgery in the United States. Luby AO, Alessio-Bilowus D, Hu HM, Brummett CM, Waljee JF, Bicket MC. Ann Surg. 2025;281:347–352. doi: 10.1097/SLA.0000000000006461. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20.Changes in opioid discharge prescriptions after primary total hip and total knee arthroplasty affect opioid refill rates and morphine milligram equivalents : an institutional experience of 20,000 patients. Chalmers BP, Lebowitz J, Chiu YF, Joseph AD, Padgett DE, Bostrom MP, Gonzalez Della Valle A. Bone Joint J. 2021;103-B:103–110. doi: 10.1302/0301-620X.103B7.BJJ-2020-2392.R1. [DOI] [PubMed] [Google Scholar]
- 21.Post-discharge opioid prescribing after surgery in the United States: a population-based analysis of specialty variation and prescribing intensity. Panayi AC, Matar DY, Schaschinger T, et al. Lancet Reg Health Am. 2026;57:101456. doi: 10.1016/j.lana.2026.101456. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22.Epidemiology of opioid prescribing after discharge from surgical procedures among adults. Alessio-Bilowus D, Chua KP, Peahl A, Brummett CM, Gunaseelan V, Bicket MC, Waljee JF. JAMA Netw Open. 2024;7:0. doi: 10.1001/jamanetworkopen.2024.17651. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 23.Trends in prescription opioid use for pain in Canada: a population-based repeated cross-sectional study of 6 provinces. Rebić N, Hamzat B, Cheung G, et al. CMAJ. 2025;197:0–83. doi: 10.1503/cmaj.250670. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24.Patterns of opioid use after surgical discharge: a multicentre, prospective cohort study in 25 countries. TASMAN Collaborative. Anaesthesia. 2024;79:924–936. doi: 10.1111/anae.16297. [DOI] [PubMed] [Google Scholar]
- 25.Drug overdose deaths in the United States, 2003-2023. Garnett MF, Miniño AM. NCHS Data Brief. 2024:1. doi: 10.15620/cdc/170565. [DOI] [PMC free article] [PubMed] [Google Scholar]
