The inverter is used as the power supply of modern permanent magnet synchronous motor (PMSM). The inverter may produce harmonics in inversion process and form harmonic currents in motor stator winding which can lead to factors against motor smooth operation such as torque fluctuating and winding heating. This article focuses on the harmonic currents formed in the motor stator winding by getting the harmonics frequency spectrum with software. The effect of harmonic currents to motor torque is analyzed with the finite element method (FEM)