An image forming apparatus that includes: plural photosensitive members; plural charging units respectively opposed to the plurality of photosensitive members; a high-voltage power supply unit which applies a voltage to the charging unit; and a discharge detecting unit which detects discharge of the charging unit and detects abnormality of the charging unit, wherein the plural charging units are connected to the discharge detecting unit in parallel.