Double-Ronchi shearing interferometry is a promising wavefront aberration measurement system for advanced lithography projection lens systems. The image grating defocusing is a key systematic error of the interferometer. However, the effects and elimination of this error have not been systematically researched. In this work, the interference field effects caused by the image grating defocusing are analyzed based on the theories of scalar diffraction, and a method to eliminate the effects is proposed. The theoretical analysis has been verified by a simulation and experiments. The results show that the error of image grating defocusing is mainly expressed as the Zernike Z4 term and Z9 term in the reconstructed wavefront, and the coefficients of Z4, and Z9, respectively, are related to NA2, NA4, and the defocus distance z. When the numerical aperture (NA) of the under-test projection lens is 0.6, 99.8384% of the errors caused by the image grating defocusing can be removed. When the NA is reduced to 0.3, 99.9854% of the errors can be removed. Additionally, when the NA is less than 0.1, almost all the errors can be eliminated.