Indirect calorimetry measures gas exchange in the lungs (O2 consumption and CO2 production). The difference in quantity reflects the energy produced and determines the basic metabolism.