Skip to content
Indian food, explained properly
Wah TasteIndian food, explained properly

Kitchen Science

The green in a vegetable is a magnesium atom and acid knocks it out

Chlorophyll survives heat reasonably well and does not survive acidity at all, which is why a covered pan of greens turns olive and an uncovered one does not.

By Omkar Joshi4 min read

Close-up of a chef cooking dumplings on a griddle in a commercial kitchen.
Photograph by Th2city Santana via Pexels
Editorial note. Independent reporting and analysis. Nothing here is sponsored or paid for. How we work.

A colour change that happens on a schedule

Put spinach, methi or green beans into a hot pan and the first thing that happens is that they get brighter. A minute or two later they are still green. Somewhere past that, particularly if the pan has a lid on it, the colour slides towards olive and then to a dull khaki, and it never comes back.

Both halves of that sequence have straightforward explanations, and neither is about overcooking in the general sense. The brightening isn’t the pigment changing at all, and the dulling isn’t really about the heat. They’re two separate events with two separate causes.

Why greens brighten before they fade

Raw leaves and pods contain small pockets of air between the cells, and air scatters light, so the surface looks slightly hazy and the colour underneath is muted. Heat drives that air out and the spaces fill with liquid from the tissue, which lets light reach the pigment directly.

It is a useful signal to watch for, because it marks the point at which the vegetable has been heated through and the clock on the second process has started. A cook who takes greens out shortly after the brightening appears is working with the mechanism rather than guessing at a time.

The effect is purely optical and it is immediate. That is why blanched vegetables look so vivid the moment they come out of the water, and why the same brightness appears within seconds in a hot pan. Nothing has been created; something has stopped getting in the way.

The pigment has a metal at its centre and it is loosely held

Chlorophyll is a large molecule built around a flat ring structure with a single magnesium atom held in the middle, and that magnesium is what makes the molecule absorb light the way it does. It is not held tightly. In the presence of acid, hydrogen ions displace it, and the resulting molecule absorbs light differently — the green goes and a dull olive-brown takes its place.

Cooking supplies the acid. Plant tissue contains a range of organic acids, and heating the cells releases them into the water around the vegetable, so a pan of greens becomes progressively more acidic as it cooks whether or not anything sour has been added.

The reaction is not reversible in any practical sense. Once the magnesium is gone the colour is gone, which is why every technique for keeping vegetables green is about prevention and none of them is about rescue.

This is what the lid is actually doing

Some of the acids released during cooking are volatile, meaning they leave with the steam if there is anywhere for the steam to go. Cooking uncovered lets them escape; cooking covered condenses them on the lid and returns them to the pan, keeping the acidity high and accelerating the colour loss.

That is the mechanism behind the old instruction to cook green vegetables uncovered, and it is one of the rare pieces of kitchen advice where the reason is both specific and easy to demonstrate. It also explains why a large volume of water helps: the acids are diluted, and the vegetable spends less time in contact with a concentrated solution of them.

Time is the other half. The reaction proceeds steadily, so a vegetable cooked hard and briefly loses little colour and one held at a simmer for twenty minutes loses all of it, regardless of how carefully everything else is managed.

The trade-offs in the usual workarounds

Alkaline conditions protect the pigment, and a pinch of soda in the water does keep vegetables a startling green. It also breaks down the pectin holding the cells together, giving a slimy texture, and it destroys some vitamins. Most cooks who try it once decide the colour was not worth it.

Hard water pushes gently in the protective direction, since it tends to be slightly alkaline, and soft or acidic water does the opposite. That is one of the small reasons the same vegetable cooked to the same instruction looks different in two cities, and it is not something most cooks can do much about beyond knowing it is there.

Adding acid deliberately is the opposite decision and a perfectly reasonable one. A squeeze of lime on cooked greens dulls the colour within minutes, which is why it is added at the table rather than in the pan. Where a dish is going to be sour anyway, the colour was never going to survive and there is no point pretending otherwise.

Which leaves the practical version, and it is short. Hot pan or plenty of water, no lid, not for long, and anything acidic goes on at the end. Everything else is an attempt to work around a reaction that cannot really be worked around.

Common questions

Does blanching and cooling in cold water really keep vegetables green?

It does, and for two reasons. The blanch is short enough that little acid accumulates, and the cold water stops the cooking immediately so the reaction does not continue in a hot pile. It also destroys the enzymes that would otherwise degrade the pigment slowly during storage.

Why do some green dishes look fine despite long cooking?

Usually because there is something else supplying colour, such as the deep green of a well-fried spinach paste with plenty of fat, or because the dish is dark enough that the olive shift is not visible. Fat also coats the surface and changes how light reflects. The pigment has still changed; the eye is simply not reporting it.

Is the olive colour a sign of lost nutrition?

Not directly, since the colour change is one specific reaction and nutrient loss is a separate matter. The two do correlate in practice, because both are driven by long cooking in water. Judging by colour is a rough proxy rather than a measurement, but a bright vegetable has usually had an easier time of it.

Kitchen Sciencechlorophyllcolourgreensacid
Omkar Joshi
Staff writer, Wah Taste

Omkar has been reporting on everyday cooking, street food, spice & pantry since long before it was fashionable and thinks most subjects are more interesting once you know how they work.