An inkjet recording apparatus comprising: a conveying unit to transfer a recording medium on a conveying surface in a predetermined moving direction; at least one ink ejecting unit to eject an ink droplet through a nozzle opening disposed on at least one nozzle surface facing the conveying surface; an elevating unit to move the ink ejecting unit to change a distance between the nozzle surface and the conveying surface; a measuring unit to measure a lift distance of the recording medium from the conveying surface at a measuring point disposed upstream of the ink ejecting unit in the moving direction so as to be distant from the ink ejecting unit by a predetermined separation distance, the inkjet recording apparatus being characterized in that it further comprises: an elevation control unit to cause the elevating unit to perform a retreating movement to change a distance between the ink ejecting unit and the conveying surface to a predetermined retreating distance to prevent the nozzle surface from coming into contact with a lifted portion of the recording medium on the basis of the separation distance and a moving rate (Vt) of the recording medium transferred by the conveying unit when the lift distance measured by the measuring unit becomes a first predetermined distance or greater at a lift detection timing, after elapse of a predetermined time from the lift detection timing, before a timing of arrival of the lifted portion having the lift distance equal to or greater than the first predetermined distance at an area facing the ink ejecting unit; and an ejection control unit to cause the ink ejecting unit to continue to eject the ink droplet from the lift detection timing at least until a timing ahead of a retreating movement start timing at which the retreating movement starts. a conveying unit to transfer a recording medium on a conveying surface in a predetermined moving direction; at least one ink ejecting unit to eject an ink droplet through a nozzle opening disposed on at least one nozzle surface facing the conveying surface; an elevating unit to move the ink ejecting unit to change a distance between the nozzle surface and the conveying surface; a measuring unit to measure a lift distance of the recording medium from the conveying surface at a measuring point disposed upstream of the ink ejecting unit in the moving direction so as to be distant from the ink ejecting unit by a predetermined separation distance, the inkjet recording apparatus being characterized in that it further comprises: an elevation control unit to cause the elevating unit to perform a retreating movement to change a distance between the ink ejecting unit and the conveying surface to a predetermined retreating distance to prevent the nozzle surface from coming into contact with a lifted portion of the recording medium on the basis of the separation distance and a moving rate (Vt) of the recording medium transferred by the conveying unit when the lift distance measured by the measuring unit becomes a first predetermined distance or greater at a lift detection timing, after elapse of a predetermined time from the lift detection timing, before a timing of arrival of the lifted portion having the lift distance equal to or greater than the first predetermined distance at an area facing the ink ejecting unit; and an ejection control unit to cause the ink ejecting unit to continue to eject the ink droplet from the lift detection timing at least until a timing ahead of a retreating movement start timing at which the retreating movement starts. an elevation control unit to cause the elevating unit to perform a retreating movement to change a distance between the ink ejecting unit and the conveying surface to a predetermined retreating distance to prevent the nozzle surface from coming into contact with a lifted portion of the recording medium on the basis of the separation distance and a moving rate (Vt) of the recording medium transferred by the conveying unit when the lift distance measured by the measuring unit becomes a first predetermined distance or greater at a lift detection timing, after elapse of a predetermined time from the lift detection timing, before a timing of arrival of the lifted portion having the lift distance equal to or greater than the first predetermined distance at an area facing the ink ejecting unit; and an ejection control unit to cause the ink ejecting unit to continue to eject the ink droplet from the lift detection timing at least until a timing ahead of a retreating movement start timing at which the retreating movement starts.