ATP is the energy storing molecule in cells. [1] It releases energy quickly whenever a cell needs it. [2] Photosynthesis uses sunlight to produce ATP, oxygen, and glucose from carbon dioxide and water. [3] It occurs in chloroplasts and has two stages - the light-dependent reaction produces ATP and NADPH, while the light-independent Calvin cycle uses these to produce glucose.