An image forming apparatus includes a sheet guide that guides a sheet carried by a carrier mechanism in a first casing, a second casing that is mounted rotatably via a support shaft on the first casing and that is opened and closed about the support shaft, and a recording head that is provided in this second casing and that ejects ink to the sheet guided by the sheet guide while moving along a moving path orthogonal to a direction of carrying the sheet and thus records an image thereon, and that, after the end of this recording operation, moves to a standby position on one end side of the moving path and waits there.