An inverter control device that controls an inverter unit that converts a DC voltage from a converter unit to an AC voltage and supplies the AC voltage to a DC motor, where the converter unit converts a voltage from a commercial AC power supply to a DC voltage, the inverter control device comprising: a magnet-temperature detection unit that detects a magnet temperature of the DC motor; a bus-voltage detection unit that detects, as a bus voltage, a DC voltage to be applied to the inverter unit; a primary-current detection unit that detects a primary current to be input to the converter unit; and a control unit that controls the inverter unit, characterised in that the control unit includes a storage unit that is configured to store therein information regarding a synchronization-loss limit, a synchronization-loss limit-current calculation unit that is configured to calculate a limitation value on a synchronization-loss limit current on a basis of the magnet temperature, the bus voltage, and the information regarding the synchronization-loss limit, a primary-current limitation control unit that is configured to compare the primary current with the limitation value and that, when the primary current exceeds the limitation value, outputs an adjustment command to adjust an operating frequency of the DC motor such that the primary current becomes equal to or less than the limitation value, an operating-frequency control unit is configured to adjust the operating frequency on a basis of the adjustment command and that outputs a generation command to generate a signal corresponding to the operating frequency, and a waveform generation unit that is configured to generate a drive signal corresponding to the generation command and that outputs the drive signal to the inverter unit. a magnet-temperature detection unit that detects a magnet temperature of the DC motor; a bus-voltage detection unit that detects, as a bus voltage, a DC voltage to be applied to the inverter unit; a primary-current detection unit that detects a primary current to be input to the converter unit; and a control unit that controls the inverter unit, characterised in that the control unit includes a storage unit that is configured to store therein information regarding a synchronization-loss limit, a synchronization-loss limit-current calculation unit that is configured to calculate a limitation value on a synchronization-loss limit current on a basis of the magnet temperature, the bus voltage, and the information regarding the synchronization-loss limit, a primary-current limitation control unit that is configured to compare the primary current with the limitation value and that, when the primary current exceeds the limitation value, outputs an adjustment command to adjust an operating frequency of the DC motor such that the primary current becomes equal to or less than the limitation value, an operating-frequency control unit is configured to adjust the operating frequency on a basis of the adjustment command and that outputs a generation command to generate a signal corresponding to the operating frequency, and a waveform generation unit that is configured to generate a drive signal corresponding to the generation command and that outputs the drive signal to the inverter unit. a storage unit that is configured to store therein information regarding a synchronization-loss limit, a synchronization-loss limit-current calculation unit that is configured to calculate a limitation value on a synchronization-loss limit current on a basis of the magnet temperature, the bus voltage, and the information regarding the synchronization-loss limit, a primary-current limitation control unit that is configured to compare the primary current with the limitation value and that, when the primary current exceeds the limitation value, outputs an adjustment command to adjust an operating frequency of the DC motor such that the primary current becomes equal to or less than the limitation value, an operating-frequency control unit is configured to adjust the operating frequency on a basis of the adjustment command and that outputs a generation command to generate a signal corresponding to the operating frequency, and a waveform generation unit that is configured to generate a drive signal corresponding to the generation command and that outputs the drive signal to the inverter unit.