Photosynthesis converts light energy to chemical energy in chloroplasts using chlorophyll. Chloroplasts contain thylakoids which are stacked to form grana. Photosynthesis uses carbon dioxide, water, and light energy to produce glucose and oxygen. The light reactions in thylakoid membranes use photosystems to split water, producing ATP, NADPH, and oxygen. The Calvin cycle in the chloroplast stroma uses ATP and NADPH to reduce carbon dioxide into glucose.