Die Erfindung betrifft ein Verfahren zur Bestimmung des Anteils an molekularem Sauerstoff in einem Atemgas, beispielsweise in der Lungenfunktionsdiagnostik, umfassend das Einleiten des Atemgases in ein Messrohr, das Senden eines Schallsignals durch einen Schallsender und Empfangen des Schallsignals durch einen Schallempfänger, das Definieren einer Schallmessstrecke durch den Schallsender und den Schallempfänger, das Bestimmen der mittleren molaren Masse des Atemgases mittels der über die Schallmessstrecke gemessenen Schalllaufzeit, und das Bestimmen des Kohlenstoffdioxidanteils des Atemgases mit einem Kohlenstoffdioxidgassensor. Zudem betrifft die Erfindung eine Vorrichtung zur Durchführung des Verfahrens.The invention relates to a method for determination of the proportion of molecular oxygen in a respiratory gas, for example in the pulmonary function diagnostics, comprising the introduction of the respiratory gas into a measuring tube, the transmission of a sound signal by means of a sound transmitter and receiving of the sound signal by means of a sound receiver, defining a sound measuring distance through the sound transmitter and the sound receiver, the determining the average molar mass of the respiratory gas via the sound by means of the measuring distance measured sound propagation time, and determining the material of the carbon dioxide proportion of the respiratory gas with a carbon dioxide gas sensor material. In addition, the invention relates to a device for carrying out the method.