Whether sprinkler fertigation stimulates greenhouse gas emissions and ammonia loss is an indispensable consideration for nitrogen management. To assess the effect of sprinkler fertigation on N2O, CH4, CO2 and NH3 emissions, three N recommendation methods for summer maize, including the local empirical value, mineral nitrogen method and modified mineral nitrogen method, and three topdressing methods, including no topdressing, one topdressing and two topdressings following intermittent rainfall events, were tested in the 2020 and 2021 seasons. Surface irrigation with fertilizer broadcasting was used as the control treatment. The results indicated that nitrogen topdressing and rainfall promoted soil N2O, CO2 and NH3 emissions but had no obvious effect on CH4 emissions. The increasing nitrogen application rate increased gaseous nitrogen losses of N2O and NH3. Sprinkler fertigation with the modified mineral nitrogen method and two topdressings obtained the greatest yield and nitrogen use efficiency. Compared to the control treatment, the yield and nitrogen use efficiency in the sprinkler fertigation treatments was maximally increased by 20%, and the cumulative NH3 volatilization losses and gaseous nitrogen loss rate were both reduced by 16%, while the cumulative N2O emissions increased by 4%. No significant difference in global warming potential was obtained among all treatments.