Postoperative pain and opioid consumption were increased among patients who underwent TKA but decreased among those who underwent THA.