In chemistry, the principle that states that in a chemical reaction, the total amount of energy in the system remains unchanged. For each component there may be changes in energy due to change of physical state, changes in the nature of chemical bonds, and either an input or output of energy. However, there is no net gain or loss of energy.