Photosynthesis requires sunlight, carbon dioxide and water as substrates to produce energy-storing carbohydrates. Oxygen is then generated as a waste product of photosynthesis. This simple carbohydrate molecule are high in energy and subsequently converted to glucose, sucrose and other sugar molecule that contain covalent bonds that store energy. Then, organisms breaks these molecules to release energy for cellular work. Moreover, this basic chemical equation summarizes the complex chemical reaction of photosynthesis.
CARBON DIOXIDE + WATER ---- SUNLIGHT ==== SUGAR + OXYGEN
(6CO2 + 6H2O + Photons = C6H12O6 + 6O2)