An image forming apparatus comprising: a light emitting device that emits light; a movable mirror that reflects the light emitted from the light emitting device; a first actuator that causes the movable mirror to swing about a first axis (ai); a second actuator that causes the movable mirror to swing about a second axis (a 2); a first reference signal output portion that outputs a first reference signal by estimating a point in time when a deflection angle of the movable mirror about the first axis (a 1) becomes equal to a first reference angle, wherein the first reference signal output portion estimates the point in time when the deflection angle of the movable mirror about the first axis (a 1) becomes equal to the first reference angle, based on a first driving signal provided to the first actuator; a second reference signal output portion that outputs a second reference signal by estimating a point in time when a deflection angle of the movable mirror about the second axis (a 2) becomes equal to a second reference angle, the second reference signal output portion estimates the point in time when the deflection angle of the movable mirror about the second axis (a 2) becomes equal to the second reference angle, based on a second driving signal provided to the second actuator; a light emission controller that causes the light emitting device to emit the light based on the first reference signal output from the first reference signal output portion; an imaging apparatus that images the light reflected by the movable mirror; and a correction portion that corrects a timing of the first reference signal output by the first reference signal output portion and a timing of the second reference signal output by the second reference signal output portion based on imaging information acquired by the imaging apparatus. a light emitting device that emits light; a movable mirror that reflects the light emitted from the light emitting device; a first actuator that causes the movable mirror to swing about a first axis (ai); a second actuator that causes the movable mirror to swing about a second axis (a 2); a first reference signal output portion that outputs a first reference signal by estimating a point in time when a deflection angle of the movable mirror about the first axis (a 1) becomes equal to a first reference angle, wherein the first reference signal output portion estimates the point in time when the deflection angle of the movable mirror about the first axis (a 1) becomes equal to the first reference angle, based on a first driving signal provided to the first actuator; a second reference signal output portion that outputs a second reference signal by estimating a point in time when a deflection angle of the movable mirror about the second axis (a 2) becomes equal to a second reference angle, the second reference signal output portion estimates the point in time when the deflection angle of the movable mirror about the second axis (a 2) becomes equal to the second reference angle, based on a second driving signal provided to the second actuator; a light emission controller that causes the light emitting device to emit the light based on the first reference signal output from the first reference signal output portion; an imaging apparatus that images the light reflected by the movable mirror; and a correction portion that corrects a timing of the first reference signal output by the first reference signal output portion and a timing of the second reference signal output by the second reference signal output portion based on imaging information acquired by the imaging apparatus.