A motor for electric power steering, comprising: a motor main body for outputting an assist torque to a steering wheel of a vehicle; a resolver provided to one end portion of a shaft of the motor main body, for detecting a rotational position of a rotor provided to another end portion of the shaft; a controller for controlling supply of a current from a battery mounted in the vehicle to the motor main body so as to control driving of the motor main body; and terminals for electrically connecting the resolver and the controller, for transmitting an output voltage from the resolver to the controller, the resolver including a stator core having teeth, an insulator (30, 31) provided on the inner diameter side of said stator core covering said teeth, and coils wound around the teeth through the insulator (30, 31), characterized in that: the controller is adapted to be provided between the resolver and the motor main body; the terminals are provided with a fixing portion; and in that the motor for electric power steering further includes: a housing for separating and shielding the controller and the resolver from each other; and a sealing means is provided between the housing and the insulator of the resolver opposed to the housing so as to surround said fixing portion for fixing base end portions of the terminals electrically connected to distal end portions of conductors of the coils, for preventing a foreign substance from passing between the housing and the insulator to enter the interior of the controller. a motor main body for outputting an assist torque to a steering wheel of a vehicle; a resolver provided to one end portion of a shaft of the motor main body, for detecting a rotational position of a rotor provided to another end portion of the shaft; a controller for controlling supply of a current from a battery mounted in the vehicle to the motor main body so as to control driving of the motor main body; and terminals for electrically connecting the resolver and the controller, for transmitting an output voltage from the resolver to the controller, the resolver including a stator core having teeth, an insulator (30, 31) provided on the inner diameter side of said stator core covering said teeth, and coils wound around the teeth through the insulator (30, 31), characterized in that: the controller is adapted to be provided between the resolver and the motor main body; the terminals are provided with a fixing portion; and in that the motor for electric power steering further includes: a housing for separating and shielding the controller and the resolver from each other; and a sealing means is provided between the housing and the insulator of the resolver opposed to the housing so as to surround said fixing portion for fixing base end portions of the terminals electrically connected to distal end portions of conductors of the coils, for preventing a foreign substance from passing between the housing and the insulator to enter the interior of the controller. the controller is adapted to be provided between the resolver and the motor main body; the terminals are provided with a fixing portion; and in that the motor for electric power steering further includes: a housing for separating and shielding the controller and the resolver from each other; and a sealing means is provided between the housing and the insulator of the resolver opposed to the housing so as to surround said fixing portion for fixing base end portions of the terminals electrically connected to distal end portions of conductors of the coils, for preventing a foreign substance from passing between the housing and the insulator to enter the interior of the controller. a housing for separating and shielding the controller and the resolver from each other; and a sealing means is provided between the housing and the insulator of the resolver opposed to the housing so as to surround said fixing portion for fixing base end portions of the terminals electrically connected to distal end portions of conductors of the coils, for preventing a foreign substance from passing between the housing and the insulator to enter the interior of the controller.