A motor control device configured to drive a motor by means of vector control, the motor control device comprising: a power supply voltage detection unit configured to detect a power supply voltage; a rotational angular velocity detection unit (50, 63) configured to detect a rotational angular velocity of the motor; and a command value calculation unit configured to calculate a q-axis current command value and a d-axis current command value; characterized by a gain computation unit configured to compute, based on an upper limit value of power supply current supplied from a power supply to the motor, the power supply voltage, the rotational angular velocity, the q-axis current command value, and the d-axis current command value, a limit gain reducing the power supply current to the upper limit value or lower than the upper limit value by limiting the q-axis current command value and the d-axis current command value; and a driving circuit configured to drive the motor, based on the q-axis current command value and the d-axis current command value limited by the limit gain, wherein the limit gain separately includes a q-axis limit gain (Gq) for limiting the q-axis current command value and a d-axis limit gain (Gd) for limiting the d-axis current command value, and the gain computation unit computes the q-axis limit gain (Gq) and the d-axis limit gain (Gd) in such a way as to limit either of the q-axis current command value and the d-axis current command value in priority to the other based on a parameter (p), the parameter (p) having been set to prioritize the q-axis current and the d-axis current, wherein the parameter (p) has an arbitrary value greater than 0, wherein the q-axis limit gain and the d-axis limit gain relate to each other according to the equation (1-Gd)/(1-Gq)=p, where Gq and Gd denote the q-axis limit gain and the d-axis limit gain, respectively, and p is the parameter set according to output characteristics of the motor to be greater than or less than 1. a power supply voltage detection unit configured to detect a power supply voltage; a rotational angular velocity detection unit (50, 63) configured to detect a rotational angular velocity of the motor; and a command value calculation unit configured to calculate a q-axis current command value and a d-axis current command value; characterized by a gain computation unit configured to compute, based on an upper limit value of power supply current supplied from a power supply to the motor, the power supply voltage, the rotational angular velocity, the q-axis current command value, and the d-axis current command value, a limit gain reducing the power supply current to the upper limit value or lower than the upper limit value by limiting the q-axis current command value and the d-axis current command value; and a driving circuit configured to drive the motor, based on the q-axis current command value and the d-axis current command value limited by the limit gain, wherein the limit gain separately includes a q-axis limit gain (Gq) for limiting the q-axis current command value and a d-axis limit gain (Gd) for limiting the d-axis current command value, and the gain computation unit computes the q-axis limit gain (Gq) and the d-axis limit gain (Gd) in such a way as to limit either of the q-axis current command value and the d-axis current command value in priority to the other based on a parameter (p), the parameter (p) having been set to prioritize the q-axis current and the d-axis current, wherein the parameter (p) has an arbitrary value greater than 0, wherein the q-axis limit gain and the d-axis limit gain relate to each other according to the equation (1-Gd)/(1-Gq)=p, where Gq and Gd denote the q-axis limit gain and the d-axis limit gain, respectively, and p is the parameter set according to output characteristics of the motor to be greater than or less than 1.