An image forming apparatus includes a processing tray, a post-processing controller, and a detection sensor. The processing tray is configured to support a sheet or a sheet bundle on which a post-processing is to be executed. The post-processing controller is configured to execute the post-processing on the sheet positioned on the processing tray. The detection sensor is configured to detect an object in a predetermined detection range including a space above the processing tray. The post-processing controller stops execution of the post-processing when the detection sensor detects the object at a determination timing other than a timing at which passage of the sheet or the sheet bundle through the detection range is estimated.
展开▼