An inverter control device that controls a rotary electric machine drive device that includes an inverter with a plurality of switching elements, where the active short circuit control is executed in a high rotational speed region, and the shut-down control is executed in a low rotational speed region, which is on a low rotational speed side with respect to the high rotational speed region, in accordance with at least a rotational speed of the rotary electric machine.