A system and method for determining the respiratory function of a subject is disclosed, the system providing means for measuring the concentration of water vapour in the gas stream exhaled by the subj ect, and means for using the measured water vapour concentration to determine the respiratory function of the subject. Mathematical techniques for analyzing the data obtained from the measurement of concentrations of gaseous components in an exhaled gas stream are also disclosed and their use in determining the lung function of a subject.