This invention provides an image forming apparatus that can suppress variations in writing densities of LED heads and form stable images.