Magnesium: what it does, deficiency signs and the best foods

What magnesium does in the body, signs you are low, how much you need a day (ICMR-NIN 2020), and the Indian foods richest in it.

Not yet reviewed by a dietitian. ULak Micros wrote this guide from the sources listed below. How we write guides

Short answer

Magnesium helps every cell make and use energy, and keeps nerves, muscles, the heart and bones working. ICMR-NIN sets the daily need at 370 mg for adult women and 440 mg for men1. Green leafy vegetables, dals, whole grains such as ragi and atta, nuts and seeds are the best everyday sources1,2.

Key points

  • ICMR-NIN 2020 sets a Recommended Dietary Allowance of 440 mg a day for men and 370 mg for women, and 440 mg in pregnancy1.
  • The national urban nutrition survey of 2016 found a median adult intake of 323 mg a day, below both figures1.
  • Magnesium from food has not been shown to cause harm, but supplements can; ICMR-NIN caps non-food magnesium at 350 mg a day for adults1.
On this page
  1. What does magnesium do in the body?
  2. How much magnesium do you need a day?
  3. What happens if you do not get enough magnesium?
  4. What are the signs and symptoms of magnesium deficiency?
  5. Which foods are richest in magnesium?
  6. Can you have too much magnesium?
  7. Who is most likely to fall short?
  8. What to do
  9. Sources

Magnesium rarely makes headlines, yet more than 300 of the body's chemical reactions depend on it3. An adult carries about 20 to 25 g of it, most of it in the bones and the rest in muscle and other soft tissue1.

Indian diets were long thought to supply plenty. ICMR-NIN's 2020 committee set a daily allowance for the first time, and the national urban survey of 2016 found a median adult intake of 323 mg a day, below the new figures1. Dals, greens and whole grains close most of that gap.

What does magnesium do in the body?

Magnesium helps cells turn food into usable energy and keeps nerves, muscles and the heart working. It is also part of the structure of bone.

Inside cells, magnesium sits alongside ATP, the molecule that carries energy, and it switches on many enzymes, including those that drive muscle contraction1. It is needed to make DNA, RNA and proteins, and to move potassium and calcium across cell walls, which nerve signals and a steady heartbeat depend on3.

Figure 1What magnesium does in the body
  • Energy from food

    Magnesium is needed for the reactions that make and use ATP, the cell's energy carrier1.

  • Muscle contraction

    It drives the energy reactions behind muscle contraction1.

  • Nerve signals

    It keeps the electrical charge across nerve and muscle membranes steady1.

  • Steady heartbeat

    It moves potassium and calcium across cell walls, which a normal heart rhythm needs3.

  • Bone structure

    About 60 to 70% of the body's magnesium sits in bone, alongside calcium and phosphorus1.

  • Building cells

    It is needed to make DNA, RNA and proteins3.

Simplified. Sources: ICMR-NIN 2020; Linus Pauling Institute1,3.

How much magnesium do you need a day?

ICMR-NIN sets the Recommended Dietary Allowance at 370 mg a day for adult women and 440 mg for men1. That 370 mg is the daily target this site uses for a woman of 30.

The figures come from Indian balance studies, which compare what people eat with what they lose. The committee worked back from about 40% absorption to an average requirement of 370 mg for men, and set the allowance a little higher to cover most people1. The allowance rises to 440 mg in pregnancy, and breastfeeding adds about 25 mg to the requirement for the magnesium that goes into milk1.

Figure 2Daily magnesium need by life stage (RDA, mg)
Children 1–3 y
90 mg
Children 4–6 y
125 mg
Children 7–9 y
175 mg
Girls 13–15 y
340 mg
Boys 13–15 y
345 mg
Women
370 mg
Breastfeeding
400 mg
Men
440 mg
Pregnancy
440 mg
Show the data
Value (mg)
Children 1–3 y90 mg
Children 4–6 y125 mg
Children 7–9 y175 mg
Girls 13–15 y340 mg
Boys 13–15 y345 mg
Women370 mg
Breastfeeding400 mg
Men440 mg
Pregnancy440 mg

Recommended Dietary Allowance, ICMR-NIN 2020, Table 8.2.11.

Group Average requirement (EAR) RDA Upper limit, non-food magnesium only
Men 370 mg 440 mg 350 mg
Women 310 mg 370 mg 350 mg
Pregnancy 370 mg 440 mg 350 mg
Breastfeeding 335 mg 400 mg 350 mg
Children 1–3 y 73 mg 90 mg 65 mg

ICMR-NIN 2020, Table 8.2.11. Other bodies set lower adequate intakes: the European Food Safety Authority uses 350 mg for men and 300 mg for women4.

What happens if you do not get enough magnesium?

In people who eat normally, real magnesium deficiency is uncommon. It usually turns up alongside illness, such as conditions that stop the gut absorbing food or severe malnutrition1.

When it does happen, the nerves and muscles misfire. In severe cases people develop tetany (painful muscle spasms) and fits, and blood calcium and potassium fall too, recovering once magnesium is replaced1. A rare form of rickets that responds to magnesium but not to vitamin D has been described in Indian children1.

Mild shortfalls may cause no symptoms at all. Low magnesium intake has been linked in observational studies with heart disease, type 2 diabetes and weak bones, though this kind of study cannot prove that magnesium is the cause3.

What are the signs and symptoms of magnesium deficiency?

The signs are vague and overlap with many other problems. These are the ones described in severe deficiency3,1:

  • Loss of appetite and nausea. Sometimes with vomiting.
  • Muscle tremor, cramps and spasms. Tetany, a sustained painful cramp, appears when deficiency is severe.
  • Fits. Seizures can occur in severe depletion.
  • Personality changes. These are described in severe deficiency.
  • Low calcium and potassium. Blood tests show these falling as well, because magnesium is needed to hold them steady.

A doctor confirms low magnesium with a serum magnesium blood test. It has a weakness: blood holds only about 1% of the body's magnesium, so a normal result does not always mean the body is well stocked3.

Figure 3Serum magnesium: the cut-off for low (mmol/L)
1
Low (hypomagnesaemia)At or above the cut-off
011
  • Low (hypomagnesaemia)Below 1 mmol/L
  • At or above the cut-off1 mmol/L and above
  1. 11 mmol/L 0.74 mmol/L

Hypomagnesaemia is usually defined as serum magnesium below 0.74 mmol/L (1.7 mg/dL). Laboratories set their own reference ranges. Source: Linus Pauling Institute3.

See a doctor if you have repeated muscle cramps or spasms, long-lasting diarrhoea, or you take acid-reducing tablets or water tablets (diuretics) for months. These can all lower magnesium, and a doctor can check your blood and the medicines together3.

Which foods are richest in magnesium?

Seeds, nuts, dals and green leafy vegetables lead, because magnesium sits at the centre of chlorophyll, the green pigment in plants1. Whole grains and millets add a steady amount every day.

Figure 4Seeds and nuts are the most concentrated sources of magnesium
RankFoodMagnesium, per 100 gOf the day
1Pumpkin seeds, rawNuts and seeds592 mg160%
2Sunflower seedsNuts and seeds413 mg112%
3FlaxseedsNuts and seeds392 mg106%
4Gingelly seeds, blackNuts and seeds390 mg105%
5Niger seeds, grayNuts and seeds379 mg102%
6Gingelly seeds, whiteNuts and seeds372 mg101%
7LinseedsNuts and seeds349 mg94%
8Niger seeds, blackNuts and seeds346 mg94%

Per 100 g of the raw, edible part, as the ULak Micros Food library holds them. Share of the daily target for a woman of 30, lightly active (ICMR-NIN 2020, or the US allowance where ICMR-NIN sets none).

Few people eat 100 g of seeds, so the everyday staples matter more:

Figure 5Dals, greens and whole grains richest in magnesium
RankFoodMagnesium, per 100 gOf the day
1Amaranth seed, blackCereals325 mg88%
2Soya chunks (defatted soy flour)Beans and pulses290 mg78%
3Amaranth seed, pale brownCereals270 mg73%
4Soya bean, brownBeans and pulses259 mg70%
5Cowpea, brownBeans and pulses213 mg58%
6Cowpea, whiteBeans and pulses213 mg58%
7Moth beanBeans and pulses205 mg55%
8Amaranth spinosus, leaves, greenLeafy greens202 mg55%
9RicebeanBeans and pulses201 mg54%
10Green gram, wholeBeans and pulses198 mg54%

Per 100 g of the raw, edible part, as the ULak Micros Food library holds them. Share of the daily target for a woman of 30, lightly active (ICMR-NIN 2020, or the US allowance where ICMR-NIN sets none).

Whole dishes show how this adds up. Leafy greens cooked with dal top the list:

Figure 6The vegetarian Andhra dishes highest in magnesium, per serving
RankDishMagnesiumOf the day
1Thorny amaranth leaves moong dal curryThorny amaranth with moong dal · Andhra357 mg96%
2Amaranth leaves moong dal curryAmaranth with moong dal · Andhra344 mg93%
3Amaranth leaves moong dalAmaranth with moong dal · Andhra277 mg75%
4Amaranth leaves pappuAmaranth with toor dal · Andhra263 mg71%
5Red amaranth leaves moong dalRed amaranth with moong dal · Andhra259 mg70%
6Amaranth leaves masoor dalAmaranth with masoor dal · Andhra246 mg66%
7Red amaranth leaves pappuRed amaranth with toor dal · Andhra245 mg66%
8Amaranth leaves fryStir-fried Amaranth · Andhra235 mg64%

One standard serving of each dish, from the ULak Micros Food library. Share of the daily target for a woman of 30, lightly active (ICMR-NIN 2020, or the US allowance where ICMR-NIN sets none).

In real portions, from lab-measured Indian food values: 100 g of atta gives about 125 mg, 100 g of ragi about 146 mg, and 30 g of dry moong dal about 47 mg2. A spoonful of pumpkin seeds (10 g) adds about 59 mg, and ten almonds (about 10 g) about 32 mg2. Polishing rice strips most of it out: 100 g of raw brown rice holds about 94 mg against 19 mg in milled white rice2.

In the kitchen

Pressure cooking or boiling dals breaks down much of their phytic acid, which otherwise holds on to minerals such as magnesium, so more of it can be absorbed5. A katori of thotakura pappu (amaranth with dal), rotis from whole atta and a few groundnuts or some sesame in the day go a long way towards 370 mg2.

Can you have too much magnesium?

Not from food. Magnesium in food has not been shown to cause harm, because healthy kidneys pass out what the body does not need1.

Supplements, laxatives and antacids are different. Diarrhoea is the first sign of too much, and ICMR-NIN sets an upper limit of 350 mg a day of non-food magnesium for adults, including in pregnancy, based on the lowest dose seen to cause diarrhoea, 360 mg1. Very high blood magnesium can lower blood pressure and, rarely, stop the heart1,3. People with weak kidneys are at the greatest risk, even from moderate doses of magnesium-containing laxatives or antacids3.

Figure 7From enough to too much: magnesium for adults, mg a day
12
Non-food magnesium (supplements, antacids, laxatives)on top of food
0–350 mg
RDA from food, adult women
370 mg
0100200300400
  1. 1350 mg Upper limit for non-food magnesium (ICMR-NIN)
  2. 2360 mg Lowest dose seen to cause diarrhoea
Show the data
From (mg)To (mg)
Non-food magnesium (supplements, antacids, laxatives)0350
RDA from food, adult women370370

The upper limit applies only to magnesium from supplements and medicines, not to food. ICMR-NIN 2020, Table 8.2.1 and section 8.2.51.

Trials show that magnesium supplements lower blood pressure a little. In a meta-analysis of 34 trials, a median 368 mg a day for about three months lowered systolic pressure by 2.0 mm Hg and diastolic by 1.8 mm Hg6. That is not a reason to take them without advice.

Magnesium also interacts with medicines. It can make some antibiotics (tetracyclines and quinolones) work less well, and osteoporosis tablets called bisphosphonates should be taken two hours apart from it3. Ask your doctor or pharmacist before you combine them.

Who is most likely to fall short?

These groups are more likely to run low, mostly through illness or medicines rather than diet alone3:

  • People with gut disorders. Long-lasting diarrhoea, Crohn's disease, coeliac disease or surgery on the small intestine reduce absorption.
  • People with diabetes. Diabetes can increase the magnesium lost in urine.
  • Heavy drinkers. Alcohol lowers intake and raises losses.
  • Older adults. Absorption falls and urinary losses rise with age.
  • People on certain medicines. Proton pump inhibitors taken for three months or more, and long courses of some diuretics, can lower blood magnesium.

What to do

  • Eat greens and dal most days. Amaranth, spinach and drumstick leaves, cooked with moong or toor dal, are among the richest dishes2.
  • Choose whole grains. Whole atta, ragi, jowar and bajra carry several times the magnesium of polished rice2.
  • Add a small handful of nuts or seeds. Pumpkin, sesame, groundnuts and almonds are concentrated sources2.
  • Keep supplements under 350 mg unless a doctor advises more. This includes magnesium in antacids and laxatives, and anyone with kidney disease should ask first1,3.

Magnesium works closely with potassium, calcium and phosphorus. The free Microgauge tracker shows your magnesium against 370 mg as you log meals, and the Food library lists it for every food and dish.

Sources

Numbered in the order the guide cites them. Each link opens the paper, report or regulation itself.

  1. 1ICMR-National Institute of Nutrition. Nutrient Requirements for Indians: Recommended Dietary Allowances and Estimated Average Requirements. Report of the Expert Group. Hyderabad: NIN; 2020. nin.res.in/RDA_Full_Report_2024.html
  2. 2ULak Micros Food library. Lab-measured Indian food values, per 100 g. ulakmicros.com/foods/ingredients
  3. 3Higdon J, Drake VJ. Magnesium. Micronutrient Information Center. Corvallis (OR): Linus Pauling Institute, Oregon State University; updated July 2025. lpi.oregonstate.edu/mic/minerals/magnesium
  4. 4EFSA Panel on Dietetic Products, Nutrition and Allergies. Scientific opinion on dietary reference values for magnesium. EFSA J. 2015;13(7):4186. doi.org/10.2903/j.efsa.2015.4186
  5. 5ICMR-National Institute of Nutrition. Dietary Guidelines for Indians. Hyderabad: NIN; 2024. nin.res.in/dietaryguidelines/pdfjs/locale/DGI_2024.pdf
  6. 6Zhang X, Li Y, Del Gobbo LC, Rosanoff A, Wang J, Zhang W, et al. Effects of magnesium supplementation on blood pressure: a meta-analysis of randomized double-blind placebo-controlled trials. Hypertension. 2016;68(2):324-33. doi.org/10.1161/HYPERTENSIONAHA.116.07664

About this guide

ULak Micros wrote this guide from the sources above, opening each one to check the figures we quote. It was last updated on 15 November 2026. A registered dietitian has not reviewed it yet, so search engines are asked not to list it until one has. How we write guides.

Spotted something wrong or out of date? Tell us and we will check it against the evidence and correct the guide.

This guide gives general nutrition information. It is not medical advice. Speak to your doctor or a registered dietitian about your own health, and before you start or stop any supplement or medicine.

Tell us what you think

What works, what doesn’t, what you wish it did. It comes straight to the team.