How does photosynthesis work?

Updated on November 28, 2026

Photosynthesis is the way a plant makes its food. In its leaves, a green pigment, chlorophyll, captures the energy of light; the plant uses it to turn water and carbon dioxide into sugars. Along the way, it releases oxygen into the air.

Cells of a moss leaf under the microscope, filled with small green grains, the chloroplasts
Picture: Cells of the moss Plagiomnium affine under the microscope, photograph by Kristian Peters, 2006, CC BY-SA 3.0, Wikimedia Commons · CC BY-SA 3.0

What goes in, what comes out

To work, the plant needs three things. Water, first, carrying mineral salts: the roots draw it from the soil, and the stem carries it up to the leaves as sap. Carbon dioxide, next, taken from the air. And light, which supplies the energy.

With these three ingredients, the leaf produces two things: sugars, which it keeps to feed itself and grow, and oxygen, a by-product, most of which it releases into the atmosphere. In simplified form, its balance is written: 6 CO₂ + 6 H₂O → C₆H₁₂O₆ + 6 O₂.

Where does the oxygen come from?

Reading this equation, one might think the oxygen released comes from the carbon dioxide, which holds two atoms of it. In fact it comes from water. Under the effect of light, water molecules are split in the chloroplast: this is the photolysis of water, and it is what gives off the oxygen. Labelling experiments showed it: plants were given water tagged with a heavier form of oxygen, and that form turned up in the oxygen they released. For the plant, oxygen is thus only a waste product of making sugars, yet the air we breathe depends on that waste: without photosynthesis, the oxygen in the air would no longer be renewed.

Chlorophyll and the green of leaves

The work happens in the chloroplasts, tiny grains held inside the cells of leaves. They contain chlorophyll, the pigment that gives plants their green colour.

Why green? Chlorophyll mostly absorbs red light and blue light, which it uses for photosynthesis. It takes hardly any green.

Stomata, the leaf’s doors

Carbon dioxide gets into the leaf through tiny pores, the stomata, found above all on its underside. Each one is framed by two curved cells, the guard cells. When they are full of water, they swell and the pore opens; when water runs short, they go limp and it closes.

Most cacti, plants of hot, dry regions, have found a trick to save their water: they open their stomata at night, in the cool, and store the carbon dioxide as malic acid. They only draw on that store in broad daylight, once their pores are closed again, for their photosynthesis. This way of working is called CAM metabolism.

A plant breathes too

A plant does not only produce oxygen: like every living thing, it breathes, and uses oxygen day and night. While the sun shines, it gives off more than it burns; once night falls, the balance flips: it absorbs oxygen and gives none off.

That is why the Amazon hardly deserves its nickname of “lungs of the planet”: the forest takes back nearly all the oxygen it makes. Its trees breathe about half of it, and the microbes and insects that make dead plants rot use the other half. It matters for many other reasons: the carbon it stores, the variety of species living there, and its part in the climate and in rainfall.

In the ocean, phytoplankton, the microscopic algae and bacteria drifting near the surface, accounts for around half of the planet’s oxygen output, according to estimates. According to NOAA, the US ocean agency, sea life consumes almost as much.

Why leaves turn yellow in autumn

When the days grow shorter and cooler, the leaf stops producing chlorophyll. The green fades, and yellow and orange pigments, the carotenoids, come into view. These are not new pigments: the leaf holds them for most of the year, but the far more plentiful chlorophyll hides them. In some trees, red pigments, the anthocyanins, are also produced at this time of year. Then a layer of cells grows at the base of the leaf and parts it from the branch.

Frequently asked questions

What gas does photosynthesis give off?

Oxygen. The plant keeps the sugars for itself.

Why are leaves green?

Because they are rich in chlorophyll. This pigment draws its energy from red and blue light, and almost none from green.

Does a plant carry out photosynthesis at night?

No: photosynthesis needs light. At night, a plant breathes and uses up oxygen; some, like the cactus, also take in carbon dioxide, which they only use by day.

Mini quiz · 3 questions

Test yourself

Tap an answer: it’s corrected right away.

  1. Question 1 of 3 · One answer

    Which gas do plants release through photosynthesis?

    Show the answer

    Correct answer: Oxygen

    Correct

    Not quite

    Correct answer: Oxygen

  2. Question 2 of 3 · Fill the gap

    Leaves owe their green colour to a pigment called caffeinemelaninchlorophyllhaemoglobin chlorophyll.

    Show the answer

    Correct answer: Leaves owe their green colour to a pigment called chlorophyll.

    It’s chlorophyll: this green pigment, held in tiny grains inside the cells called chloroplasts, captures light.

    Correct

    Exactly! It sits in tiny grains inside the cells, the chloroplasts, mostly in the leaves.

    Not quite

    It’s chlorophyll: this green pigment, held in tiny grains inside the cells called chloroplasts, captures light.

  3. Question 3 of 3 · One answer

    Why do leaves look green to us?

    Show the answer

    Correct answer: Their chlorophyll absorbs red and blue, little green

    Chlorophyll mostly absorbs red and blue, and hardly any green: we see the colour it doesn’t absorb.

    Correct

    Exactly! Chlorophyll takes almost nothing from green light: that’s the light it lets go, and the one our eyes see.

    Not quite

    Correct answer: Their chlorophyll absorbs red and blue, little green

    Chlorophyll mostly absorbs red and blue, and hardly any green: we see the colour it doesn’t absorb.

Your mini quizPerfect score!

0 correct answers out of 31 correct answer out of 32 correct answers out of 33 correct answers out of 3

One game a day is all it takes to keep your flame alight.

The other questions on this subject are waiting for you in Masteries.

Download on the App Store Get it on Google Play
Continue in the appFree on iPhone and Android

Sources

Start with a lesson

Masteries is free on iPhone and Android, with no account needed to start.

Get the app
Download on the App Store Get it on Google Play

Apple and the Apple logo are trademarks of Apple Inc. App Store is a service mark of Apple Inc. Google Play and the Google Play logo are trademarks of Google LLC.