The invention discloses an improved method for synthesizing an antianginal medicine ranolazine and belongs to the field of pharmaceutical chemistry. The method comprises the following steps of: amidating 2,6-dimethylaniline which is taken as a raw material, and alkylating to obtain N-(2,6-dimethylphenyl)-2-(1-piperazino)-acetamide; and reacting the N-(2,6-dimethylphenyl)-2-(1-piperazino)-acetamide and 2-(2-methylphenoxymethyl)ethylene oxide which is obtained by reaction of 2-methoxyphenol and epichlorohydrin to obtain crude ranolazine, and recrystallizing to obtain refined ranolazine. A reaction solvent, the molar ratio of raw materials, a phase transfer catalyst, a recrystallization solvent and the like are optimized; and the improved method is convenient to operate and is suitable for industrialized production, the production cost is reduced, and the yield is improved.