Objective. To study comorbidity correlates of moderate to severe pain after total knee arthroplasty (TKA).Methods. We analysed prospectively collected Total Joint Registry data to examine whether medical (heart disease, peripheral vascular disease, renal disease, chronic obstructive pulmonary disease, diabetes and CTD) and psychological (anxiety and depression) comorbidity is associated with moderate to severe pain after primary or revision TKA. Multivariable-adjusted logistic regression simultaneously adjusted for all comorbidities, age, sex, BMI, underlying diagnosis, American Society of Anesthesiologist (ASA) class, distance from medical centre and implant fixation (only for primary TKA) was used to analyse primary and revision TKA separately.Results. The primary TKA cohort consisted of 7139 and 4234 TKAs (response rates 65% and 57%) and the revision TKA cohort consisted of 1533 and 881 TKAs at 2 and 5 years (response rates 57% and 48%), respectively. In the primary TKA cohort, anxiety was associated with 1.4 higher odds (95% CI 1.0, 2.0) of moderate to severe index knee pain at 2 years; at 5 years, heart disease (OR 1.7; 95% CI 1.1, 2.6), depression (OR 1.7; 95% CI 1.1, 2.5) and anxiety (OR 1.9; 95% CI 1.2, 3.1) were significantly associated with moderate to severe pain. For revision TKA, CTD (OR 0.5; 95% CI 0.2, 0.9) and depression (OR 1.8; 95% CI 1.1, 3.1) were significantly associated with moderate to severe pain.Conclusion. This study identified medical and psychological comorbidity risk factors for moderate to severe pain after primary and revision TKA. This information can be used to provide realistic outcome expectations for patients before undergoing primary or revision TKA. © 2013.