The invention discloses a method for optimizing the crop water productivity of a salted farmland, which comprises the following steps: 1, setting at least three groups of irrigation and leaching water quantities in combination with the crop evapotranspiration quantity, and calculating the leaching proportion; 2, measuring the conductivity of irrigation water, the salt tolerance threshold value of crops and the yield reduction coefficient, and determining the yield reduction degree by combining the leaching ratio; 3, analyzing the unit water productivity of the salted farmland crops according to the leaching ratio, the evapotranspiration amount and the production reduction degree; 4, determining the relationship between the multiple groups of leaching ratios and the unit water productivity of the corresponding salted farmland crops, and obtaining three fitting coefficients; 5, determining the unit water productivity maximum value and the optimal leaching ratio of the salt-soaked farmland crops according to the fitting coefficient; and 6, determining the optimal irrigation amount according to the optimal leaching proportion. According to the method, the difficulty of optimizing the water productivity of the farmland crops is reduced, required parameters are few and are simple and easy to measure, and therefore the irrigation amount of the salted farmland per unit area can be effectively saved, and meanwhile the crop yield is increased.