The chemical equation for photosynthesis is: 6CO2+6H2O→light energyC6H12O6+6O26\text{CO}_2+6\text{H}_2\text{O}\xrightarrow{\text{light energy}}\text{C}6\text{H}{12}\text{O}_6+6\text{O}_26CO2+6H2Olight energyC6H12O6+6O2 This means six molecules of carbon dioxide and six molecules of water, using light energy (usually from the sun), are converted into one molecule of glucose (a sugar) and six molecules of oxygen. The process occurs mainly in the chloroplasts of plant cells, involving two stages: light-dependent reactions and the Calvin cycle. Oxygen is released as a by-product.