Background and objectivesGroundwater contamination poses a significant health challenge in India, particularly impacting children. Despite its importance, limited research has explored the nexus between groundwater quality and child nutrition outcomes. This study addresses this gap, examining the association between groundwater quality and child undernutrition, offering pertinent insights for policymakers. Data and methodsThe study uses data from the fifth round of the National Family Health Survey (NFHS) and the Central Groundwater Board (CGWB) to analyze the association between groundwater quality and child nutritional status. The groundwater quality data were collected by nationwide monitoring stations programmed by CGWB, and the child undernutrition data were obtained from the NFHS-5, 2019–21. The analysis included descriptive and logistic regression model. The study also considers various demographic and socio-economic factors as potential moderators of the relationship between groundwater quality and child undernutrition. FindingsSignificant variation in groundwater quality was observed across India, with numerous regions displaying poor performance. Approximately 26.53 % of geographical areas were deemed unfit for consuming groundwater. Environmental factors such as high temperatures, low precipitation, and arid, alluvial, laterite-type soils are linked to poorer groundwater quality. Unfit-for-consumption groundwater quality increased the odds of undernutrition, revealing a 35 %, 38 %, and 11 % higher likelihood of stunting, underweight, and wasting in children, with higher pH, Magnesium, Sulphate, Nitrate, Total Dissolved Solids, and Arsenic, levels associated with increased odds of stunting, underweight, and wasting. Higher temperatures (>25 °C), high elevations (>1000 m), and proximity to cultivated or industrial areas all contribute to heightened risks of child undernutrition. Children consuming groundwater, lacking access to improved toilets, or living in rural areas are more likely to be undernourished, while females, higher-income households, and those consuming dairy, vegetables, and fruits daily exhibit lower odds of undernutrition. Policy implicationsPolicy implications highlight the urgent need for investment in piped water supply systems. Additionally, focused efforts are required to monitor and improve groundwater quality in regions with poor water quality. Policies should emphasize safe sanitation practices and enhance public awareness about the critical role of safe drinking water in improving child health.