This study aimed to evaluate the association between dietary carotenoid intake and periodontitis in diabetic patients. Data on diabetic patients were collected from the National Health and Nutrition Examination Survey (NHANES) 2009–2014 for this cross-sectional study. Dietary intake of carotenoids was assessed through the first 24-hour dietary recall interview. Full-mouth periodontal examinations were conducted by trained dental examiners. Subgroup analysis was conducted in terms of age, gender, the number of missing teeth, cardiovascular disease, smoking, and anti-diabetic drugs. Totally 1914 diabetic patients were included, with 1281 (66.93%) in the periodontitis group. After adjusting for age, gender, race, education, smoking, dental implants, hepatitis, and the number of missing teeth, α-carotene intake ≥55.82 mcg was associated with lower odds of periodontitis than α-carotene intake <55.82 mcg [OR = 0.70, 95% CI: 0.53–0.91, P = 0.010]; lutein and zeaxanthin intake ≥795.95 mcg was associated with decreased odds of periodontitis than lutein and zeaxanthin intake <795.95 mcg (OR = 0.75, 95%CI: 0.57–0.98, P = 0.039). The association between carotenoid intake and periodontitis varied across different subpopulations. In diabetes, dietary intake of α-carotene and lutein and zeaxanthin was inversely associated with the odds of periodontitis, which may facilitate clinical periodontitis management.