An image forming apparatus that forms an image on a recording material, comprising:
- a housing unit that includes an intermediate plate on which the recording material is loaded and is attachable to or detachable from the image forming apparatus;
- a lift-up unit that lifts up the intermediate plate along a vertical direction with driving force supplied from a driving source;
- a first detection unit that detects that the recording material loaded on the intermediate plate which is lifted up by the lift-up unit has reached a feeding position;
- a second detection unit that detects presence of the recording material on the intermediate plate;
- a feeding unit that feeds the recording material which has reached the feeding position;
- a control unit that, when the housing unit is attached to the image forming apparatus, executes first lift-up control through which the intermediate plate is lifted up by the lift-up unit until the first detection unit detects that the recording material has reached the feeding position, and after the first lift-up control, executes second lift-up control through which when the first detection unit does not detect the recording material because the recording material has been fed by the feeding unit, the intermediate plate is lifted up by the lift-up unit until the first detection unit detects again that the recording material has reached the feeding position;
- a first acquisition unit that acquires a first driving amount serving as a driving amount of the driving source when the first lift-up control is executed until the first detection unit detects that the recording material has reached the feeding position;
- a storage unit that stores a threshold for determining overloading of the recording material on the intermediate plate;
- a determination unit that determines that the recording material is overloaded on the intermediate plate when the first driving amount acquired by the first acquisition unit is smaller than the threshold;
- a second acquisition unit that acquires a second driving amount obtained by adding the first driving amount to a cumulative driving amount of the driving source when the second lift-up control is executed until the second detection unit detects that there is no recording material on the intermediate plate;
- and
- a correction unit that obtains a differential amount by subtracting a predetermined driving amount from the second driving amount acquired by the second acquisition unit, and corrects, on a basis of the differential amount, the threshold stored in the storage unit or the first driving amount acquired by the first acquisition unit.