Biological systems and thermodynamics
It is also important in the discussion of biological systems to understand that they are open systems, i.e. they take in nutrients and oxygen and excrete carbon dioxide, water, urea and other waste products, as well as heat. The importance with respect to weight considerations is that mass and energy are conserved (the more general statement of the first law of thermodynamics), but they are not conserved entirely within the organism.
To illustrate the proper interpretation of the first law of thermodynamics consider a subject whose resting energy expenditure is met by the production of 95 moles of ATP. Since oxidation of a single mole of glucose provides 38 moles of ATP, 2.5 moles of glucose will be needed to meet this individual's resting energy requirements. It is important to note that the resultant carbon dioxide, water, and heat are not retained within the organism. The useful retained energy is in the 95 moles of ATP (Figure 1B). (Similar equations could be written for lipid or protein but we restrict our discussion to glucose for simplicity).