An apparatus main body of an image forming apparatus from which a developer container is detachable, the developer container having an accommodating chamber that has a concave portion and an opening and accommodates developer and also having a conveying member that conveys the developer by rotation, a part of the concave portion being within a turning radius of the conveying member,
- the apparatus main body comprising:
- a first detecting portion and a second detecting portion that detect a change in an amount of the developer in the developer container in use of capacitance when the developer container is attached to the apparatus main body;
- and
- a voltage applying portion that applies voltage to the first detecting portion and the second detecting portion, wherein
- the first detecting portion is provided on a downstream side in a rotating direction of the conveying member relative to the concave portion, and
- the second detecting portion is provided on an upstream side in the rotating direction of the conveying member relative to the concave portion.