Purpose Patient-controlled oral analgesia (PCOA) is a novel method of oral opioid administration using set doses of short-acting oral opioids self-administered by patients with a ''lockout'' period as part of a multimodal regimen. Failure of PCOA can result in severe postoperative pain necessitating use of intravenous patient-controlled analgesia (IV-PCA) with its potential complications. This study evaluated factors related to success or failure of PCOA following total hip arthroplasty (THA) and total knee arthroplasty (TKA). Methods We conducted a retrospective cohort study of all adults who underwent THA and TKA at our institution by extracting data from the proprietary database of our acute pain service. Patient, anesthetic, and surgical variables associated with PCOA failure defined as inadequate analgesia requiring conversion to IV-PCA within 24 hr following THA and TKA were evaluated. Univariable and multivariable logistic regression analyses were performed to identify predictors of PCOA failure.