An image forming apparatus comprising: an apparatus body; an image forming unit that forms a toner image on a recording medium; a first transport part that transports the recording medium to the image forming unit along a feed path extending from one side toward the other side in the horizontal direction, the feed path being a path along which the recording medium transported by the first transport part passes, and that includes a portion extending toward the one side beyond the image forming unit; a second transport part that transports the recording medium from the image forming unit to the outside of the apparatus body along a discharge path extending from the other side toward one side in the horizontal direction and that includes a portion extending toward the one side beyond the image forming unit, the discharge path and the feed path at least partially overlapping each other in the vertical direction; a third transport part (82, 86) that transports the recording medium along a reversing path splitting from the discharge path at an intermediate portion thereof, extending from the other side toward the one side in the horizontal direction, extending from the one side toward the other side in the horizontal direction, and joining the feed path at an intermediate portion thereof; the reversing path is disposed between the feed path and the discharge path in the vertical direction, the third transport part (82, 86) transports the recording medium from the other side toward the one side in the horizontal direction, stops the transportation of the recording medium, and then transports the recording medium from the one side toward the other side in the horizontal direction, the image forming apparatus being characterized in further comprising: a measurement part configured to measure the dimensions of the recording medium stopped by the third transport part (82, 86) and a controller configured to adjust a position of the toner image such that the distance between edges of the toner image and edges of the recording medium are the same across all the edges. an apparatus body; an image forming unit that forms a toner image on a recording medium; a first transport part that transports the recording medium to the image forming unit along a feed path extending from one side toward the other side in the horizontal direction, the feed path being a path along which the recording medium transported by the first transport part passes, and that includes a portion extending toward the one side beyond the image forming unit; a second transport part that transports the recording medium from the image forming unit to the outside of the apparatus body along a discharge path extending from the other side toward one side in the horizontal direction and that includes a portion extending toward the one side beyond the image forming unit, the discharge path and the feed path at least partially overlapping each other in the vertical direction; a third transport part (82, 86) that transports the recording medium along a reversing path splitting from the discharge path at an intermediate portion thereof, extending from the other side toward the one side in the horizontal direction, extending from the one side toward the other side in the horizontal direction, and joining the feed path at an intermediate portion thereof; the reversing path is disposed between the feed path and the discharge path in the vertical direction, the third transport part (82, 86) transports the recording medium from the other side toward the one side in the horizontal direction, stops the transportation of the recording medium, and then transports the recording medium from the one side toward the other side in the horizontal direction, the image forming apparatus being characterized in further comprising: a measurement part configured to measure the dimensions of the recording medium stopped by the third transport part (82, 86) and a controller configured to adjust a position of the toner image such that the distance between edges of the toner image and edges of the recording medium are the same across all the edges.