Climate change and water scarcity are major challenges to sustainable agriculture and crop productivity, especially with increasing global food demand around 70% by 2050. Excessive use of water and nitrogen in agriculture accelerates environmental degradation and decreases crop water productivity (WPC) and net income. The aim of this work was to integrate irrigation systems with different fertilization rates to optimize WPC, nitrogen efficiency, and to reduce deep percolation and nitrate leaching. To estimate efficiency of RZWQM2 model, three treatments of irrigation and fertilization were SDIP=subsurface drip irrigation system with precise irrigation and fertilization, FIL= flood irrigation system with deficit irrigation and fertilization, CK= recommended irrigation and fertilization, were carried out at Luancheng Agro-Ecosystem Experimental Station during 2023–2025. The calibrated model was then used to simulate soil water, yield, WPC, deep percolation and, nitrogen leaching for long term weather data spanning 38 years (1984–2021) under different irrigation and fertilization scenarios. The results showed that RZWQM2 perfectly simulated soil moisture, crop growth, yield, biomass, and WPC, with nRMSE values ranging from 9.02% to 29%. It also performed well in simulating leaf area index, evapotranspiration, plant and grain nitrogen uptake, deep percolation, and nitrogen leaching, with R² values up to 0.93. Long-term simulations identified optimal soil moisture–triggered irrigation strategies as a 45% root-zone depletion threshold for wheat and 25% for maize, with 80% recharge of plant-available water for both crops. We can conclude that the interval between each irrigation for wheat is longer than for maize when using the same irrigation schedule under identical conditions. Overall, this study integrates lysimeter observations with long-term process-based modeling to demonstrate that moderate, crop-specific root-zone depletion offers a climate-resilient pathway for sustainable water and nitrogen management in the wheat–maize system.