A method, device, and computer program product for improving accuracy of a respiratory gas measurement from a subject ventilated at a predetermined respiration rate through a ventilator. A respiratory gas measurement value is acquired within a first expiration period of the subject, thereby to obtain a first measurement value. The ventilator is paused for a pause period within a second expiration period of the subject and a respiratory gas measurement is performed within the pause period, thereby to obtain a second measurement value. A correction factor is then determined based on the first measurement value and the second measurement value and the correction factor is employed to correct subsequent respiratory gas measurement values obtained from the subject at the predetermined respiration rate, thereby to improve the accuracy of the measurement.