The chemical reactions involved in the production and utilization of various forms of energy in cells.