An image forming apparatus includes: an image carrier that rotates; and a charging member that is provided opposingly to the image carrier, and that charges a surface of the image carrier, wherein a discharge inhibitor that suppresses a discharge in an axial end portion is interposed in a portion where the charging member is opposed to the image carrier.