Secondary nutrients

Magnesium in Plants: What It Does and When Your Crop Needs It

Magnesium in plants sits at the very center of chlorophyll, the green that turns sunlight into food, and it switches on the enzymes that move energy around the plant. A crop short of it turns yellow between the veins of its older leaves. Here is what it does, when each crop needs it most, and why too much potassium can cause its shortage.

6 min read Updated October 30, 2026 By the anee.io agriculture team Register for free to read it all
Tomato leaf yellow between green veins: magnesium in plants running short
Photo: Scot Nelson, CC0 1.0, via Flickr

What magnesium does in plants

Every molecule of chlorophyll has one atom of magnesium at its center. Without it the leaf cannot catch light, so a plant short of magnesium makes less food however much nitrogen it gets.

Magnesium also switches on the enzymes that handle ATP, the energy carrier, and it helps load sugar into the phloem so it can travel to the grain, the fruit and the roots. That is why a shortage shows late in the season as poor filling, after the crop has looked fine for weeks.

Both a building block and a helper

Magnesium works two ways. As part of chlorophyll it is a building block, held in the leaf. As the partner of ATP and many enzymes it is a helper, doing its job without being used up.

Crops take less magnesium than calcium, often 10 to 30 kilograms per hectare, but on sandy and acid soils that can be more than the soil gives.

Magnesium in short
FactMagnesium
GroupSecondary macronutrient
Kind of nutrientBuilding block and helper
Moves inside the plantYes
Where a shortage shows firstThe old leaves, between the veins
Taken up asMagnesium ion

Where magnesium shows first

Magnesium moves inside the plant, so the shortage starts on the older leaves. The tissue between the veins turns yellow while the veins stay green, giving a striped or marbled look, and later the yellow parts can turn reddish or die.

It is easy to confuse with potassium, which scorches the leaf edges instead, or with manganese, which starts on the young leaves. See magnesium deficiency to tell them apart.

When magnesium in plants is most critical

Magnesium matters most when the crop is filling: grain in palay and mais, fruit in tomato and melon, bunches in banana. Before that the leaves need it to keep making food at full speed.

DAT means days after transplanting, DAS days after sowing in the field, and DAP days after planting. The days are the usual ones for a typical variety, so a long or short variety moves them a little. Timing magnesium in plants to these windows gets more harvest from the same bags. Our guide to fertilizer timing by growth stage puts them together for a whole season.

Here is when each crop needs it most, from the anee.io stage book:

Rice, corn and other grains

When magnesium is critical: rice, corn and other grains
CropMost criticalAlso neededWhy it matters then
Palay, transplantedNo stage stands outPanicle initiation (DAT 35 to 49), Booting and heading (DAT 50 to 59)Magnesium keeps leaves green as panicles form.
Palay, direct seededNo stage stands outPanicle initiation (DAS 40 to 54), Booting and heading (DAS 55 to 69)Magnesium keeps leaves green as panicles form.
Yellow cornNo stage stands outRapid growth (DAP 30 to 44), Tasselling (DAP 45 to 54)Magnesium keeps leaves green during the fastest growth.
Sweet cornNo stage stands outRapid growth (DAP 24 to 37), Tasselling (DAP 38 to 45)Magnesium keeps leaves green during the fastest growth.
Other grains (sorghum)No stage stands outReproductive (DAP 46 to 65)Magnesium keeps leaves green while demand is high.

Vegetables and legumes

When magnesium is critical: vegetables and legumes
CropMost criticalAlso neededWhy it matters then
Leafy vegetables (pechay, cabbage)No stage stands outLeaf growth (DAT 6 to 18), Heading and filling (DAT 19 to 29)Magnesium keeps leaves green while demand is high.
Fruit vegetables (tomato, eggplant, pepper)No stage stands outVegetative (DAT 14 to 33), Flowering (DAT 34 to 45), Fruit set and filling (DAT 46 to 63)Magnesium keeps leaves green while demand is high.
Gourds and melons (ampalaya, squash)No stage stands outVine growth (DAP 9 to 23), Flowering (DAP 24 to 33), Fruit set and filling (DAP 34 to 49)Magnesium keeps leaves green while demand is high.
Legumes (mungbean, peanut, sitaw)No stage stands outSmall amounts the rest of the seasonMagnesium need is small and the soil usually covers it.
Onion and garlicNo stage stands outSmall amounts the rest of the seasonMagnesium need is small and the soil usually covers it.

Root crops, sugarcane and banana

When magnesium is critical: root crops, sugarcane and banana
CropMost criticalAlso neededWhy it matters then
Root crops (kamote, cassava)No stage stands outVegetative (DAP 16 to 46), Root initiation (DAP 47 to 67), Bulking (DAP 68 to 91)Magnesium keeps leaves green while demand is high.
SugarcaneNo stage stands outTillering (DAP 45 to 119), Grand growth (DAP 120 to 269)Magnesium keeps leaves green while demand is high.
BananaNo stage stands outVegetative growth (DAP 60 to 179), Late vegetative (DAP 180 to 269), Shooting (DAP 270 to 329)Magnesium keeps leaves green. Heavy potash use can push it short.

What keeps magnesium from the crop

Sandy and strongly acid soils hold little magnesium and lose it in heavy rain. On other soils the trouble is competition: heavy potassium or ammonium fertilizer, or a lot of calcium from lime, crowds magnesium out at the roots.

So a field that gets plenty of muriate of potash season after season, without magnesium, can start to show the yellow stripes. Dolomite instead of plain lime fixes both the acidity and the magnesium.

Where magnesium comes from

Dolomite gives magnesium along with calcium and is the cheapest choice for acid soil. Magnesium sulfate, sold as Epsom salt or kieserite, dissolves quickly and works on the soil or as a leaf spray. Many complete fertilizers and foliar feeds also carry some. See micronutrients for rice for the trace nutrients that often go with it.

  • Dolomite: magnesium and calcium, raises the pH of acid soil.
  • Magnesium sulfate (Epsom salt, kieserite): fast magnesium with sulfur, on the soil or the leaves.
  • Compost and manure: small amounts released slowly.
Too much magnesium hurts the soil

Very high magnesium can make clay soil tight and slow to drain, and it crowds out potassium and calcium. Add it when a soil test or the leaves say it is short.

Keep magnesium up through the filling weeks

Put your fertilizers on your crop's calendar in anee.io and the Coverage Planner shows, day by day, whether magnesium reaches the stages that need it, and where it runs out. Free to start.

Start free

Magnesium questions

Is Epsom salt good for plants?
Epsom salt is magnesium sulfate, so it helps where magnesium or sulfur is short. On a soil with enough magnesium it does nothing for the crop.
What does magnesium deficiency look like?
The older leaves turn yellow between green veins, often in stripes on palay and mais. The young leaves stay green at first.
Can too much potassium cause magnesium deficiency?
Yes. Heavy potassium crowds magnesium out at the roots, most of all on sandy soil.
Is magnesium a micronutrient?
No. Magnesium is a secondary macronutrient, along with calcium and sulfur.

Read the whole guide

Register for free on anee.io to read the whole page, and every guide on crops and land preparation.

Free to register. No credit card. Works on any phone.