In photosynthesis, water, carbon dioxide, and energy in the form of sunlight are inputs, and the outputs are glucose and oxygen.