The objective was to examine associations between social jetlag and diet quality among young adults in the US using nationally representative data from the 2017–2018 NHANES survey, and evaluate effect modification by gender and race/ethnicity. Social jetlag was considered ≥2-hour difference in sleep midpoint (median of bedtime and wake time) between weekends and weekdays. Diet quality was assessed with the Healthy Eating Index (HEI)-2015 and its 13 dietary components. Ordinal logistic models were run with diet scores binned into tertiles as the outcome. Models accounted for potential confounders and survey weights. Effect modification by gender and race/ethnicity was examined. The study sample included 1,356 adults aged 20–39 years. 31% of young adults had social jetlag. Overall, there were no associations between social jetlag and diet quality. However, interaction analysis revealed several associations were race-specific (P, interaction<0.05). Among Black adults, social jetlag was associated with lower overall diet quality (OR = 0.4, 95% CI 0.2, 0.8; i.e. less likely to be in higher diet quality tertiles) and more unfavourable scores on Total Vegetables (OR = 0.6, 95% CI 0.3, 1.0) and Added Sugar (i.e. OR = 0.6, 95% CI 0.4, 0.9). For Hispanic adults, social jetlag was associated with worse scores for Sodium (OR = 0.6, 95% CI 0.4, 0.9) However, White adults with social jetlag had better scores of Greens and Beans (OR = 1.9, 95% CI 1.1, 3.2). Within a nationally representative sample of US young adults, social jetlag was related to certain indicators of lower diet quality among Black and Hispanic Americans.