An image forming apparatus includes an image carrying member that carries a toner image; a transfer member whose endless peripheral surface that circulates is disposed so as to oppose the image carrying member; a cleaning member that is disposed so as to contact the peripheral surface of the transfer member and removes toner adhered to a surface of the transfer member; a cleaning bias applying unit that applies a cleaning bias voltage to a portion between the cleaning member and the transfer member; a print mode switching section that switches a print mode between print modes including a borderless print mode and an ordinary print mode; and a bias voltage controller that performs control so that the cleaning bias voltage is a first bias voltage value in the ordinary print mode and a second bias voltage value in the borderless print mode.