The Calvin cycle is part of photosynthesis, which occurs in two stages. In the first stage, chemical reactions use energy from light to produce ATP and NADPH. In the second stage (Calvin cycle or dark reactions), carbon dioxide and water are converted into organic molecules, such as glucose.