An image forming apparatus to which a sheet positioning device can be provided to perform a sheet positioning includes an image forming device and a sheet positioning device that includes a sheet setting plate, a pair of side fence units disposed facing each other along opposite sides of the sheet setting plate to move in a lateral direction of the sheet, a moving mechanism to move the pair of side fence units, a contact member to contact and press the sheet, a position detector to detect the position of the contact member, and a controller moving the pair of side fence units when the sheet is placed on the sheet setting plate, halting movement of the pair of side fence units after the contact member has contacted and pressed the sheet, and moving the pair of side fence units again based on detection results obtained by the position detector.
展开▼