The invention relates to a method for preparing cefmetazole sodium, which comprises the following steps: (1) dissolving sodium hydroxide in water, adding mercaptoacetic acid and chloroacetonitrile into the mixture to perform the reaction, then adding sodium chloride and ethyl acetate into the reaction solution, stirring and dissolving the mixture, standing to separate phases and reserving a solvent phase for later use; (2) dissolving 7-MAC in methylene dichloride, adding organic base and side-chain solution into the mixture, stirring the mixed solution to perform the reaction to carry out phase separation, removing a water phase and carrying out secondary phase separation on the solvent phase to obtain cefmetazole benzyl ester; (3) dissolving ferric trichloride in aether, adding methylene dichloride in the mixture, dropwise adding the obtained product into cefmetazole acid to perform the reaction for 0.5 to 1 hour, then carrying out phase separation, removing the water phase, carrying out back extraction of alkali liquor on the solvent phase, then reserving the water phase, adding seed crystals, stirring the product and carrying out crystallization to obtain cefmetazole acid; and (4) dissolving the cefmetazole acid in alkali water and freezing out the mixture to obtain cefmetazole sodium. The preparation method of the invention has the advantages of 58 to 62 percent of yield, low cost, environment-friendly property, 92 percent of product purity, suitability for industrial production and the like.