Patent ID: 8571461

Claim:
An image forming apparatus comprising: a housing; an image forming unit that forms an image on a recording medium to which the image is transferred; a first ejection portion and a second ejection portion that eject the recording medium to the outside of the housing; a first conveying path that guides the recording medium to the first ejection portion; a second conveying path that guides the recording medium to the second ejection portion; a branch portion that connects the first conveying path with the second conveying path; a switch that is disposed in the branch portion and movable between a first position to direct the recording medium, which is to be discharged to the outside of the apparatus, toward the first conveying path, and a second position to direct the recording medium, which is to be discharged to the outside of the apparatus, toward the second conveying path; a drive unit that moves the switch from the first position to the second position or from the second position to the first position; a reference position setting unit that sets a reference position of the switch, the reference position being a position that the switch is controlled to take in an initial state; a control unit that controls the drive unit such that the switch in the initial state is positioned at the reference position set by the reference position setting unit; and a usage status storage portion that stores usage information including information regarding a position of the switch, wherein the reference position setting unit sets the reference position of the switch based on the usage information stored by the usage status storage portion.