Our findings suggest that IL-1β SNPs could be used for the early identification of THA and TKA patients with a high risk of infection. The gene discussed is IL1B; the disease is infection.