The risk of diabetes mellitus (DM) in vitiligo patients is higher than that in non‐vitiligo population. Our goal was to explore the influencing factors for DM in vitiligo patients. A matched‐pair design of 107 cases with DM and 428 controls without DM was conducted among vitiligo patients in Xijing hospital from January 2010 to October 2021. The baseline characteristics of patients were analysed based on standard descriptive statistics. The vitiligo‐associated characteristics were analysed by logistic regression to identify influencing factors of DM. Interaction analysis was performed to explore the additive interactions between vitiligo‐associated characteristics and baseline characteristics. After adjustment for the baseline characteristics, the severity of vitiligo [odds ratio (OR) = 2.47, 95% confidence interval (CI): 1.47–4.14] and onset age of vitiligo (OR = 0.98, 95% CI: 0.97–0.99) had a significant correlation with occurrence of DM. The severity of vitiligo had additive interaction with family history of diabetes [relative excess risk due to interaction (RERI) = 132.51 (95% CI: 5.51–1100.20), attributable proportion (AP) = 0.91 (95% CI: 0.17–0.95), synergy index (S) = 11.53 (95% CI: 1.32–100.5)] and with smoking history [RERI = 6.54 (95% CI: 0.67–19.83), AP = 0.64 (95% CI: 0.04–0.80), S = 3.48 (95% CI: 1.17–10.36)]. Earlier onset age of vitiligo and greater BSA involvement might be two independent risk factors for DM in vitiligo patients. Interaction assessment identified the severity of vitiligo as additive interaction factors with diabetes family history and with smoking history for the DM occurrence.