BackgroundPreoperative opioid use causes increased pain and opioid requirements after total joint arthroplasty (TJA), but the effect of depression on this relationship is not well defined.MethodsWe conducted a retrospective review of primary TJA patients using an institutional database. Demographic variables, inpatient opioid requirements, and discharge prescription quantities were collected and compared between patients with and without a prior diagnosis of depression in both the prior opioid-using and nonusing cohorts.ResultsFour hundred and three patients were analyzed between August 1, 2016, and July 31, 2017. Among prior opioid users, patients with depression experienced higher inpatient pain levels (4 vs 3; P = .001), required more inpatient opioids (117 oral morphine equivalents [OMEs] vs 70 OMEs; P = .022), were prescribed more opioids at discharge (1163 OMEs vs 750 OMEs; P = .02), and required more long-term opioid refills (57.7% vs 15.4%; P < .001) than patients without depression. However, depression was not associated with increased pain, opioid requirements, prescription quantities, or refill rates among opioid-naive patients.ConclusionsDepression is not associated with increased pain or opioid requirements among opioid-naive patients after TJA but is associated with significantly higher pain and opioid requirements among patients who use opioids preoperatively. The interaction of these variables may highlight a target for preoperative counseling and risk modification in the arthroplasty population.