An image forming apparatus includes a first opening and closing device provided in an apparatus body and openable and closable with respect to the apparatus body, an operating member operable by a user to open the first opening and closing device, a first recess for receiving the hand of the user and to permit the hand to contact and operate the operating member to open the first opening and closing device, and a second recess for receiving the hand of the user and to permit the hand to contact and operate the operating member to open the first opening and closing device when the hand of the user is inserted thereinto. The second recess is located at a position different from the first recess.