Abstract Improving the future global grain production within existing cultivated land is a crucial issue to meet increasing food demand under future climate adaption. Yet, the potential may vary across different regions reflecting uncertainties about future climate changes. Here, we simulated the potential production and the yield gaps for rice, maize, wheat and soybean under SSP1-2.6, SSP3-7.0 and SSP5-8.5 in the near-term, mid-term and long-term future (2030s, 2050s and 2070s). We further decomposed future yield gaps into a historical gap, representing untapped potential from management optimization, and a future climate gap, isolating the net effect of climate change on production capacity. Our findings revealed moderate warming might provide a transient ‘climate dividend’ in 2030s, particularly in high-latitude regions, by narrowing both components of the yield gaps. However, exceedance of crop-specific thermal thresholds might constrains production and compress early climate gains under SSP5-8.5 in 2070s, especially in tropical and low-latitude zones. To ensure global food security, we advocated for a dual-track strategy: establishing resilient cross-border trade networks to buffer asymmetric production shocks, and implementing systemic local adaptations, such as shifting to heat-resilient alternative crops and upgrading climate-smart infrastructure, safeguarding the livelihoods of smallholder farmers to adapt future climate change.