The invention relates to a method for detecting fosfomycin sodium in pharmaceutical wastewater by adopting an ion chromatography. The method comprises the following steps that (1) chromatographic condition: chromatographic columns include a low-volume hydroxyl system cathodic protection column and a high-volume anion exchange separation column, a suppressor is an electrolytic film suppressor, an electrical conductivity detector is used, and leacheate is a sylvite solution; (2) the preparation of a standard solution: a standard product of the fosfomycin sodium is mixed with ultrapure water to obtain into the standard solution; (3) the pretreatment of a sample: a sample to be detected is filtered by using a 0.45mum filtering film and then processed by a C18 colonnette so that organic matters in the water sample are removed; (4) a detecting method: the standard solution is added in an ion chromatograph, then a spectrogram is recorded, the position of a standard peak is determined, the area of a fosfomycin sodium peak is calculated, and a standard curve is drawn according to the calculated area of the peak; a testing sample is added in the ion chromatograph, then a spectrogram is recorded, and the concentration of the sample is calculated according to the area of the fosfomycin sodium peak. The method provided by the invention has the advantages that the detection repeatability of the fosfomycin sodium in the pharmaceutical wastewater is good, the detection limit is low, the sensitivity is high, the operation is simple, the detecting condition is gentle, the detection equipment and instrument are widely applied, the source of a leacheate sylvite solution is wide, and the configuration is simple, and the method is widely used for detecting fosfomycin sodium in the industrial wastewater.