A method of calibrating a metabolic analyzer incorporating an oxygen analyzer and a NDIR carbon dioxide analyzer in the field that does not require the use of gas cylinders containing gases of known concentration is described. In calibrating the CO2 detector, at the time of factory setup, the detector output for a gas of a known concentration is measured and stored in the memory of the metabolic analyzer's microprocessor, as is the detector output voltage when the IR source is dimmed by a known percentage. Subsequently, in the field, CO2 levels in ambient air and cell pressure are measured at two different flow rates through the sample chamber and the IR source is again dimmed by the same percentage as had been used at the time of factory setup. Based upon the resulting readings, both the zeroing and span adjustment factors can be computed.