Understanding the response of agriculture to heat and moisture stress is essential to adapt food systems under climate change. Although evidence of crop yield loss with extreme temperature is abundant, disentangling the roles of temperature and moisture in determining yield has proved challenging, largely due to limited soil moisture data and the tight coupling between moisture and temperature at the land surface. Here, using well-resolved observations of soil moisture from the recently launched Soil Moisture Active Passive satellite, we quantify the contribution of imbalances between atmospheric evaporative demand and soil moisture to maize yield damage in the US Midwest. We show that retrospective yield predictions based on the interactions between atmospheric demand and soil moisture significantly outperform those using temperature and precipitation singly or together. The importance of accounting for this water balance is highlighted by the fact that climate simulations uniformly predict increases in atmospheric demand during the growing season but the trend in root-zone soil moisture varies between models, with some models indicating that yield damages associated with increased evaporative demand are moderated by increased water supply. A damage estimate conditioned only on simulated changes in atmospheric demand, as opposed to also accounting for changes in soil moisture, would erroneously indicate approximately twice the damage. This research demonstrates that more accurate predictions of maize yield can be achieved by using soil moisture data and indicates that accurate estimates of how climate change will influence crop yields require explicitly accounting for variations in water availability.