An inverter control device comprising: an inverter configured to convert direct-current power inputted from a direct-current power supply into alternating-current power, and to supply the alternating-current power to a motor; a command value calculation unit (1, 2, 3) configured to calculate a command value of an alternating-current voltage outputted from the inverter, on the basis of a detection value of an alternating current; a phase compensation unit (16, 18) configured to compensate for any of a phase of the command value and a phase of the detection value, wherein the phase compensation unit compensates for phases of the d- and q-axis currents; an inverter control unit configured to control the inverter on the basis of any of the command value and the detection value compensated for by the phase compensation unit (16, 18); a motor rotational velocity detection unit (9, 14, 11) configured to detect a rotational velocity of the motor; a current detection unit configured to detect the detection value by detecting phase currents of the motor; and a first coordinate transformation unit configured to perform coordinate transformation of the phase currents into d- and q-axis currents; characterized in that the phase compensation unit (16, 18) calculates a phase lead amount by multiplying the rotational velocity by a phase compensation time determined on the basis of an inherent characteristic of the motor, and suppresses the reduction in phase margin in the low-frequency region attributed to the inherent characteristic of the motor by compensating for a phase in accordance with the phase lead amount. an inverter configured to convert direct-current power inputted from a direct-current power supply into alternating-current power, and to supply the alternating-current power to a motor; a command value calculation unit (1, 2, 3) configured to calculate a command value of an alternating-current voltage outputted from the inverter, on the basis of a detection value of an alternating current; a phase compensation unit (16, 18) configured to compensate for any of a phase of the command value and a phase of the detection value, wherein the phase compensation unit compensates for phases of the d- and q-axis currents; an inverter control unit configured to control the inverter on the basis of any of the command value and the detection value compensated for by the phase compensation unit (16, 18); a motor rotational velocity detection unit (9, 14, 11) configured to detect a rotational velocity of the motor; a current detection unit configured to detect the detection value by detecting phase currents of the motor; and a first coordinate transformation unit configured to perform coordinate transformation of the phase currents into d- and q-axis currents; characterized in that the phase compensation unit (16, 18) calculates a phase lead amount by multiplying the rotational velocity by a phase compensation time determined on the basis of an inherent characteristic of the motor, and suppresses the reduction in phase margin in the low-frequency region attributed to the inherent characteristic of the motor by compensating for a phase in accordance with the phase lead amount.