An image forming apparatus includes an image forming apparatus main body;
a development device that develops a latent image formed in an image
retainer with toner; a toner cartridge that is detachably attached to the
image forming apparatus main body and that contains toner supplied to the
development device; and a controller that switches and controls a first
print mode wherein printing is carried out in a state where the toner
cartridge is not attached to the image forming apparatus main body and a
second print mode wherein printing is carried out in a state where the
toner cartridge is attached to the image forming apparatus main body.