An inverter control device that controls an inverter as a control target, the inverter being connected to a direct-current power supply and connected to an alternating-current rotating electrical machine so as to convert power between direct current and alternating current of a plurality of phases, and the inverter having an arm for each alternating-current phase, the arm including a series circuit of an upper-stage switching element and a lower-stage switching element, the inverter control device including an electronic control unit.