The invention discloses a method for preparing N,N-dimethylacetylamide. The method comprises the following steps: by taking formaldehyde, formic acid and N-methylacetamide as raw materials, firstly, enabling formaldehyde to react with the formic acid to form an active intermediate under a catalyst and the heating condition; secondly, enabling the generated active intermediate to react with the N-methylacetamide, so as to form the N,N-dimethylacetylamide; finally, obtaining the N,N-dimethylacetylamide from the product by the processes of centrifuging, filtering, vacuum distillation and the like. The method is short in preparation flow, and low in reaction temperature, and has the advantages of being low in temperature, environmental, and short in flow, and the problem of environmental pollution in the preparation process is avoided.