Background Child stunting and wasting affect millions globally, with unexplained heterogeneity across LMICs. Staple foods - rice, wheat, maize, sorghum, millet and cassava - differ in protein quality (DIAAS) and zinc bioavailability. We hypothesised that these differences explain heterogeneity in undernutrition prevalence. Methods This ecological cross-sectional analysis included 127 LMICs (wasting) and 126 LMICs (stunting) using JME 2025 anthropometric data, GBD 2023 estimates and FAOSTAT 2019-2023 five-year mean food balances. Each staple was analysed individually using robust MM-estimation (primary) and quantile regression (secondary), with fixed covariates selected after circularity, correlation and multicollinearity assessment. Five sensitivity analyses tested robustness. Two secondary cross-reference analyses - WHZ, MUAC and oedema across 46 nationally representative surveys and undernutrition in infants under 6 months across 56 DHS datasets - were cross-referenced with dominant dietary staple supply. A post-hoc cross-reference analysis examined maternal short stature and low BMI by dominant dietary staple using DHS data. Findings Sorghum (beta=0.361, p