The present invention provides a conveying mechanism capable of accurately detecting a conveyance amount of an object to be conveyed with a simple configuration. A magnetic sensor is fixed to a casing along a locus of a contact point between a sheet and a conveying roller on the basis of a play between the conveying roller and an opening. With the configuration, the contact point and the magnetic sensor are disposed relatively close to each other. Consequently, the pure conveyance amount according to the rotation amount of a magnetic recording medium using the contact point as a reference can be detected by the magnetic sensor. Moreover, the movement amount of the contact point relative to the center axis of the opening as a reference position in association with the play can be also detected with high sensitivity. Thus, the conveyance amount of the sheet can be accurately obtained.