The invention relates to the technical field of permanent magnet synchronous motors, in particular to a torque pulsation compensation method based on current harmonic analysis and open-loop torque control, which comprises the following steps of: calculating a-phase current, b-phase current and c-phase current, calculating phase current, substituting the phase current into a current fundamental wave and torque formula to obtain torque, converting a three-phase static coordinate system into a rotating coordinate system, and calculating the torque pulsation. 24-order torque pulsation is obtained, and the value of the 24-order torque pulsation is shown in the specification; 24-order torque pulsation is substituted into an open-loop torque control compensation formula to obtain torque harmonic waves, a torque harmonic wave formula is obtained, the torque harmonic wave formula is adopted to replace the torque harmonic waves of open-loop torque control in an original model, and a 24-order noise compensation model is established. Compared with the prior art, the torque pulsation compensation method based on current harmonic analysis and open-loop torque control is designed, compensation of torque pulsation is achieved by establishing a relation formula of current harmonics and torque harmonics and establishing a model, and therefore the torque pulsation and noise of the electric power steering system are reduced.