Background The USA is in the midst of an opioid overdose epidemic. To address the epidemic, we conducted a large-scale population study on opioid overdose. Objectives The primary objective of this study was to evaluate the temporal trends and risk factors of inpatient opioid overdose. Based on its patterns, the secondary objective was to examine the innate properties of opioid analgesics underlying reduced overdose effects. Methods A retrospective cross-sectional study was conducted based on a large-scale inpatient electronic health records database, Cerner Health Facts ® , with (1) inclusion criteria for participants as patients admitted between 1 January, 2009 and 31 December, 2017 and (2) measurements as opioid overdose prevalence by year, demographics, and prescription opioid exposures.