Logistic analysis showed that age, primary disease duration, GC history, DAS-28, Sharp score, RANKL and 25 (OH) D were independent factors for OP in RA patients (P < 0.05). Here, TNFSF11 is linked to rheumatoid arthritis.