The invention provides a method for preparing metandienone, the method comprises firstly using a nutrient medium and one or more microbial strains, performing microbial fermentation on phytosterol toprepare 1,4-androstenedione, namely IDD, then using the IDD as the raw material, introducing alpha-CH3 and beta-OH into a 17 site with the existence of methyl magnesium halide, an organic solvent andan acid, and preparing the metandienone. The method uses the IDD as the raw material to prepare the metandienone, compared with the traditional method taking diosgenin as the raw material, the sourceof the raw material is wide, the process is economical and environmentally friendly, and the production cost is greatly reduced. Compared with the traditional production method, the synthesis route isshort, the process is simple, convenient and environmentally friendly, the yield of a product is high, the quality is high, and the cost of the raw material for production is reduced by 40-45% according to the current price of the raw material.