The invention discloses a preparation method of sodium salt of pravastatin, which comprises the following steps: adding inorganic alkaline or organic alkaline containing sodium ions as positive ions into organic solution containing the pravastatin until pH is more than 7 and obtaining sodium pravastatin the organic solution containing the pravastatin comprises the pravastatin and first solvent, wherein the first solvent is selected from one or a plurality of methyl formate, n-propyl formate, isopropyl formate, n-butyl formate, methyl acetate, ethyl acetate, n-propyl acetate, isopropyl acetate, n-butyl acetate, sec-butyl acetate, isobutyl acetate and tert-butyl acetate.