Research into how alignment to UK dietary guidelines during childhood affects cardiometabolic health is limited. The association between adherence to UK dietary guidelines during childhood and overall cardiometabolic risk (CMR) in adolescence/early adulthood was explored using data from the Avon Longitudinal Study of Parents and Children (ALSPAC). ALSPAC children with diet diaries completed at 7, 10 and 13 years of age, and data on CMR markers at 17 years (n 1940) and 24 years (n 1957) were included. A children’s Eatwell Guide (C-EWG) score was created by comparing dietary intakes at each age to UK dietary guidelines for nine foods/nutrients. Cardiometabolic health at 17 and 24 years was assessed using a composite CMR score. Multivariable linear regression models examined associations between C-EWG scores at 7, 10 and 13 years and the CMR score at 17 and 24 years, adjusting for confounders. C-EWG scores were generally low. However, a higher score (adherence to more dietary guidelines) at 7 years old was associated with a lower CMR score at 17 and 24 years: β −0·13 (95 % CI −0·25, –0·01) and β −0·25 (95 % CI −0·38, –0·13) for a 1-point increase in C-EWG score, respectively. A higher C-EWG score at 10 years was also associated with a lower CMR z-score at 24 years. No clear associations were evident at other ages. Greater adherence to UK dietary guidelines during mid-childhood was associated with a better overall cardiometabolic profile, suggesting that encouraging children to eat in this way has long-term benefits to health.