The invention relates to an electric motor with a torque sensor. The torque sensor is sheathed on the outwards extending end of a rotary shaft of the electric motor, the back end of an outer shell of the torque sensor is fixedly connected with a front end cover of the electric motor, and the rotary shaft of the electric motor is connected with the back end and a front cover of the outer shell of the torque sensor through rolling bearings. The torque sensor comprises a friction wheel, a generator, a generator seat, a transmitter, a shaft clamp ring, a proving ring and the outer shell, wherein the generator seat, the shaft clamp ring and the proving ring are sequentially and fixedly connected to the rotary shaft of the electric motor from left to right in the outer shell, the generator is fixedly connected to the generator seat, the friction wheel is connected to a rotary shaft of the generator, and the outer circle of the friction wheel is in frictional contact with the inner wall of the outer shell; and the shaft clamp ring is fixedly connected with the transmitter through a transmitter connecting plate. In the invention, the electric motor and the torque sensor are combined together, a working torque is directly tested by utilizing the torque sensor, and therefore, the electric motor can not be influenced by the fluctuation of parameters comprising current, voltage, rotary speed and the like, thereby greatly improving testing precision.