Provided are a motor control device and an electrical power steering device which are configured to perform a correction for advancing an estimated motor electrical angle in response to a steering torque, and are thus capable of correcting an estimated angle error, acting in a delaying direction with respect to the steering direction, with a simple configuration. This motor control device (25) is provided with a backup electrical angle detection circuit (24B), wherein: an inter-sensor error correction unit (54) calculates at least one advance gain (Gad) with respect to an input of a steering torque (Th) of at least predetermined torque value (Tht), and multiplies the advance gain (Gad) to an output shaft angular velocity (ωos) to calculate a post-advance steering angular velocity (ωosc) for correcting an estimated angle error in a delaying direction with respect to the steering direction. In addition, an estimated angle calculation unit (55) of the backup electrical angle detection circuit (24B) integrates the post-advance steering angular velocity (ωosc) and calculates a second motor rotation angle (θm2), which is an estimated value of a motor rotation angle (θ), on the basis of the integrated value.
MOTOR CONTROL DEVICE AND ELECTRIC POWER STEERING DEVICE PROVIDED WITH SAME