A printing apparatus of the invention acquires a velocity and an acceleration
of
a printing medium when a rear end of the printing medium passes through a detection
lever. A correction amount for the rear end of the printing medium is determined
in accordance with the velocity and the acceleration of the printing medium. The
correction amount is a transportation amount of the printing medium during a physical
return time after the rear end of the printing medium passes through the detection
lever until the detection lever is detected by a sensor. A remaining region from
a printing position of a print head up to the rear end of the printing medium is
controlled in accordance with the correction amount for the rear end of printing medium.