An image forming apparatus has: an image bearing member that bears a toner
image and moves; a transfer means that transfers the toner image on the
image bearing member to a transfer medium; a first eliminating member
that comes in contact with the image bearing member and collects and
eliminates the toner on the image bearing member by applying a bias in a
first eliminating area where toner is eliminated from the image bearing
member; a second eliminating member that comes in contact with the image
bearing member so as to eliminate the toner on the image bearing member
in a second eliminating area where the toner remaining on the image
bearing member from which the toner is eliminated in the first
eliminating area is eliminated; a controller that variably controls a
bias condition of the bias to be applied to the first eliminating means
based on a relationship between voltage and electric current when a test
bias is applied to the first eliminating means in contact with the image
bearing member; and a separating member that separates the second
eliminating means from the image bearing member when a part of the image
bearing member which passes through the first eliminating area during
application of the test bias to the first eliminating means is in the
second eliminating area.