Nondispersive infrared spectroscopy (NDIR) allows the continuous analysis of respiratory gases. Due to its high selectivity, simple and robust setup, and small footprint, it is also used to support (13)CO(2) breath tests to assess bacterial growth in the stomach, gut, or liver function. CO(2) NDIR signals, however, are biased by oxygen in the gas matrix. This complicates NDIR-based breath tests, if the inspired oxygen concentration has to be adjusted to the subject's requirements, or hyperoxia-induced effects were studied. To avoid the oxygen-induced bias, a "dilution" approach was developed: expired gas is mixed with N(2) to lower the oxygen content down to the usual range of 15-20%. Accuracy and precision were tested using synthetic gas mixtures with increasing (13)CO(2)-to-(12)CO(2) ratios ((13)CO(2)/(12)CO(2)), either based on synthetic air with approximately 20% volume O(2) or on pure O(2). For samples with delta(13)C values smaller than 300 (or (13)CO(2)/(12)CO(2) smaller than 0.003), the dilution does not significantly increase the bias in the (13)CO(2)/(12)CO(2) determination, and the within-run imprecision is smaller than 1 delta(13)C. The practical use of this approach was validated in a pig study using a sepsis model reflecting a clinical situation that requires an increased oxygen concentration for respiration. The N(2) dilution eliminated the high bias in NDIR measurement, thus allowing the determination of the impact of oxygenation on glucose oxidation in patients ventilated with increased oxygen.