An image forming apparatus comprising: a first unit configured to transfer a toner image to a recording material (s) at a transfer portion; a feeding member (71 to 74) configured to feed the recording material (s) toward the transfer portion; a guide member (112, 113) configured to guide the recording material (s) fed by the feeding member (71 to 74) to the transfer portion, the guide member (112, 113) including a first guide provided at the first unit and a second guide provided at a second unit which is drawable to an exterior of an image forming apparatus main body and includes a transfer roller, the second guide being disposed at a position opposite the first guide; a detection member (114, 115) disposed on an upstream side of the transfer portion in a feeding direction of the recording material (s) and configured to detect timing at which the recording material (s) passes, the detection member (114, 115) including a first detection portion mounted on the first guide and a second detection portion mounted on the second guide; a speed setting member configured to set a conveyance speed of the recording material (s) according to a result of detection by the detection member (114, 115); a lock member configured to lock the second unit stored in the image forming apparatus at a position within the image forming apparatus main body; and a pressure member configured to urge the first guide and the second guide to each other, in a rotational axis direction of the transfer roller which is the direction in which the second unit is drawable to the exterior of the image forming apparatus main body, when the second unit is locked within the image forming apparatus main body. a first unit configured to transfer a toner image to a recording material (s) at a transfer portion; a feeding member (71 to 74) configured to feed the recording material (s) toward the transfer portion; a guide member (112, 113) configured to guide the recording material (s) fed by the feeding member (71 to 74) to the transfer portion, the guide member (112, 113) including a first guide provided at the first unit and a second guide provided at a second unit which is drawable to an exterior of an image forming apparatus main body and includes a transfer roller, the second guide being disposed at a position opposite the first guide; a detection member (114, 115) disposed on an upstream side of the transfer portion in a feeding direction of the recording material (s) and configured to detect timing at which the recording material (s) passes, the detection member (114, 115) including a first detection portion mounted on the first guide and a second detection portion mounted on the second guide; a speed setting member configured to set a conveyance speed of the recording material (s) according to a result of detection by the detection member (114, 115); a lock member configured to lock the second unit stored in the image forming apparatus at a position within the image forming apparatus main body; and a pressure member configured to urge the first guide and the second guide to each other, in a rotational axis direction of the transfer roller which is the direction in which the second unit is drawable to the exterior of the image forming apparatus main body, when the second unit is locked within the image forming apparatus main body.