An image forming apparatus includes an image carrier, a transfer member that transfers an image on the image carrier to a continuous medium, a fixing device that fixes the image transferred to the medium, and a transport member that is disposed downstream of the fixing device in a transport direction of the medium and that transports the medium. When the transport member transports the medium, the fixing device is passively rotated in accordance with movement of the medium.