An inverter control device for controlling a rotating electric machine drive device that drives an alternating current rotating electric machine and includes an inverter and a DC link capacitor, the inverter being connected to a DC power supply via a contactor, being connected to the rotating electric machine, and performing power conversion between direct current and three-phase alternating current, the DC link capacitor smoothing a DC link voltage, which is a DC-side voltage of the inverter, and the inverter control device performing switching control on switching elements that form the inverter.