A controller (40) for an
internal combustion engine (10) provided with a
turbocharger (20) having a
turbine (202) provided in an exhaust path (15), a compressor (201) provided in an intake path (11) and rotating integrally with the
turbine (202), an exhaust bypass path (30) allowing the upstream and downstream sides of the
turbine (202) to communicate, a
wastegate valve (31) adjusting the flow rate of
exhaust gas flowing through the exhaust bypass path (30), and an electrovalve
actuator (34) changing an actuating position of the
wastegate valve (31), the controller (40) for the
internal combustion engine (10) comprising: a driving condition detection unit (400) that detects the actuating position of the
wastegate valve (31) and a true supercharging pressure, which is an actual value of a pressure of intake air compressed by the compressor (201); a supercharging state determination unit (402) that determines whether a supercharging driving state exists in which the actual supercharging pressure is higher than
atmospheric pressure or is expected to become higher than
atmospheric pressure, or a non-supercharging driving state exists in which the actual supercharging pressure is less than or equal to
atmospheric pressure or is expected to become less than or equal to atmospheric pressure; a target opening degree calculation unit (403) that calculates a target opening degree of the wastegate valve (31); a true opening degree calculation unit (404) that calculates a true opening degree of the wastegate valve (31) based on the operating position of the wastegate valve (31); an operation amount calculation unit (405) that calculates a basic operation amount (DT1) to bring the actual opening degree close to the target opening degree; in the case of determining that a supercharging driving state exists, calculates an operation amount determined by upper-limiting a magnitude of the basic operation amount (DT1) by a preset first
limit value (L1) as a final operation amount (DT2); and in the case of determining that a non-supercharging driving state exists, calculates an operation amount determined by upper-limiting the magnitude of the basic operation amount by a second
limit value, which is preset to a smaller value than the first
limit value, as the final operation amount; and an
actuator drive unit (406) that performs drive control of the electric
valve actuator (34) based on the final operation amount.