A motor control device that includes a three-phase inverter configured to drive an electric motor having a housing connected to a frame ground to which a negative terminal of a power source is connected, and a control unit that controls the three-phase inverter through a control loop of the motor current, on the basis of a PWM signal generated for each PWM cycle (T c ), wherein the control loop has a computation cycle, the motor control device being characterised by comprising: a PWM count computation unit that computes a PWM count for each of three phases for each current control cycle (T a ) so that said PWM count is a PWM count in units of current control cycles, wherein each current control cycle (T a ) is one computation cycle and includes a plurality of PWM cycles, the motor control device further comprising; a noise reduction unit that sets a PWM count for each PWM cycle in the current control cycle (T a ) so that said PWM count is a PWM count in units of PWM cycles, such that a total value of PWM counts for each phase in units of PWM cycles, being a total value in the current control cycle (T a ), is a value that matches a PWM count in units of current control cycles (T a ) for the corresponding phase, and such that a current that flows through the frame ground because of a phase voltage (V U , V V , V W ) for any one of the three phases is canceled out with a current that flows through the frame ground because of a phase voltage for one of the two other phases in each PWM cycle (T c ) in the current control cycle (T a ); and a noise canceling circuit configured to generate a current that is opposite in phase to a current that flows through the frame ground because of a phase voltage for the other of the two other phases in each PWM cycle (T c ) in the current control cycle (T a ), wherein the current is a current not canceled out by the noise reduction unit . a PWM count computation unit that computes a PWM count for each of three phases for each current control cycle (T a ) so that said PWM count is a PWM count in units of current control cycles, wherein each current control cycle (T a ) is one computation cycle and includes a plurality of PWM cycles, the motor control device further comprising; a noise reduction unit that sets a PWM count for each PWM cycle in the current control cycle (T a ) so that said PWM count is a PWM count in units of PWM cycles, such that a total value of PWM counts for each phase in units of PWM cycles, being a total value in the current control cycle (T a ), is a value that matches a PWM count in units of current control cycles (T a ) for the corresponding phase, and such that a current that flows through the frame ground because of a phase voltage (V U , V V , V W ) for any one of the three phases is canceled out with a current that flows through the frame ground because of a phase voltage for one of the two other phases in each PWM cycle (T c ) in the current control cycle (T a ); and a noise canceling circuit configured to generate a current that is opposite in phase to a current that flows through the frame ground because of a phase voltage for the other of the two other phases in each PWM cycle (T c ) in the current control cycle (T a ), wherein the current is a current not canceled out by the noise reduction unit . <EOS>