A control apparatus for an internal combustion engine including a
plurality of cylinders and a changing mechanism the changes a timing at
which an intake valve provided for each of the cylinders closes,
comprising: a control portion that controls the changing mechanism so
that the intake valve closes at a timing within a predetermined range
from a bottom dead center; and a detection portion that detects at least
one of an air-fuel ratio of each of the cylinders and a value
corresponding to the air-fuel ratio when the changing mechanism is
controlled so that the intake valve closes at the timing within the
predetermined range from the bottom dead center.