Background Nonsteroidal anti-inflammatory drugs (NSAIDs) are indicated for postoperative pain management, but use may be precluded by the report of adverse drug reactions (ADRs). The effect of NSAID ADR labeling on opioid prescribing after total joint arthroplasty (TJA) is unknown. Objective To assess the association between NSAID ADRs and postoperative opioid prescribing after TJA, a common surgical procedure. Methods We performed a retrospective cohort study of adults who underwent total joint (knee or hip) replacement in a single hospital network between April, 1, 2016, and December 31, 2019. Demographic information, clinical and surgical characteristics, and prescription data were obtained from the electronic health record. We studied the association between reported NSAID ADRs and postoperative opioid prescribing in a propensity score–matched sample over 1 year of follow-up. Results NSAID ADRs were reported by 9.6% of the entire cohort (n = 584/6091). NSAID ADR was associated with 41% higher odds of receipt of opioid prescriptions at 181 to 365 days after hospital discharge (95% confidence interval: 13%-75%) in a propensity score–matched sample. Over 98% of individuals received an opioid prescription at the time of hospital discharge, with no difference in overall median opioid dose prescribed by NSAID ADR status. However, more patients with NSAID ADRs (7.6% vs 4.7%) received cumulative opioid doses ≥ 750 morphine milligram equivalents (MME) at discharge (P = .004). Conclusion Reported NSAID ADR was associated with increased risk for prolonged receipt of opioids at 181 to 365 days postoperatively. Patients with NSAID ADRs more frequently received cumulative opioid doses ≥ 750 MME at discharge after TJA. Clarification and evaluation of reported NSAID ADRs may be particularly beneficial for surgical patients at high risk for prolonged receipt of opioids. Nonsteroidal anti-inflammatory drugs (NSAIDs) are indicated for postoperative pain management, but use may be precluded by the report of adverse drug reactions (ADRs). The effect of NSAID ADR labeling on opioid prescribing after total joint arthroplasty (TJA) is unknown. To assess the association between NSAID ADRs and postoperative opioid prescribing after TJA, a common surgical procedure. We performed a retrospective cohort study of adults who underwent total joint (knee or hip) replacement in a single hospital network between April, 1, 2016, and December 31, 2019. Demographic information, clinical and surgical characteristics, and prescription data were obtained from the electronic health record. We studied the association between reported NSAID ADRs and postoperative opioid prescribing in a propensity score–matched sample over 1 year of follow-up. NSAID ADRs were reported by 9.6% of the entire cohort (n = 584/6091). NSAID ADR was associated with 41% higher odds of receipt of opioid prescriptions at 181 to 365 days after hospital discharge (95% confidence interval: 13%-75%) in a propensity score–matched sample. Over 98% of individuals received an opioid prescription at the time of hospital discharge, with no difference in overall median opioid dose prescribed by NSAID ADR status. However, more patients with NSAID ADRs (7.6% vs 4.7%) received cumulative opioid doses ≥ 750 morphine milligram equivalents (MME) at discharge (P = .004). Reported NSAID ADR was associated with increased risk for prolonged receipt of opioids at 181 to 365 days postoperatively. Patients with NSAID ADRs more frequently received cumulative opioid doses ≥ 750 MME at discharge after TJA. Clarification and evaluation of reported NSAID ADRs may be particularly beneficial for surgical patients at high risk for prolonged receipt of opioids.