In a warming climate, high temperature stress greatly threatens crop yields. Maize is critical to food security, but frequent extreme heat events coincide temporally and spatially with the period of kernel number determination (e.g., flowering stage), greatly limiting maize yields. In this context, how to increase or at least maintain maize yield has become more important. Nitrogen fertilizer (N) is widely used to improve maize yields, but its effect in heat stress is unclear. For this, we collected 1536 pairs of comparisons from 113 studies concerning N conducted in the past 20 years over China. We classified the data into two groups – without high temperature stress (NHT) and with high temperature stress during the critical period for maize kernel number determination (HT) – based on the national meteorological data. We comprehensively evaluated N effects on grain yield under HT and NHT using meta-analysis. The effect of N on maize yield became significantly smaller in HT than that in NHT. In NHT, soil characteristics, crop management practices, and climatic conditions all significantly affected N effects on maize yield, but in HT, only a few factors such as soil organic matter and mean annual precipitation significantly affected N effects. Hence, it is difficult to improve N effect by improving soil characteristics and crop management when meeting with high temperature stress during flowering. On average, N effect increased with increased N input, but there were respective N input thresholds in NHT and HT, beyond which N effects on maize yield remained stable. According to the thresholds, it is speculated that moderately reducing N input (~20 %) likely increased high temperature tolerance of maize during flowering. These findings have important implications for the optimization of N management under a warming climate.