Magnesium: Benefits, How Much You Need, Food Sources and Supplements

Last updated

· By the Food Minerals editorial team · How we write

Magnesium is a major mineral that more than 300 enzymes in your body depend on. It supports muscles and nerves, blood sugar control, blood pressure, energy production and bones. Adult men need 400–420 mg a day and women 310–320 mg. This guide covers what magnesium does, how much you need, the best foods, and what to know before taking a supplement.

Type of mineralMajor mineral
Daily Value (food labels)420 mg
Adult needs400–420 mg (men); 310–320 mg (women); 350–360 mg (pregnancy)
Upper limit350 mg a day from supplements and medicines (food doesn’t count)
Top food sourcesPumpkin seeds, chia seeds, almonds, spinach, cashews, peanuts, black beans
Figures from the NIH Office of Dietary Supplements.

What magnesium does in your body

  • Muscles and nerves: magnesium helps muscles relax after they contract and keeps nerve signals steady. Low levels can show up as cramps, twitches and tingling.
  • Energy and blood sugar: it’s needed to make energy from food and to help insulin work.
  • Heart and blood pressure: it helps keep your heart rhythm normal and plays a part in blood pressure control.
  • Bones: magnesium is part of bone structure and works alongside calcium and phosphorus.

How much magnesium do you need?

AgeMaleFemalePregnancyBreastfeeding
19–30 years400 mg310 mg350 mg310 mg
31–50 years420 mg320 mg360 mg320 mg
51+ years420 mg320 mg
Recommended Dietary Allowances for adults. Source: NIH Office of Dietary Supplements, which also lists children’s amounts.

Free guide: The Green Mineral Smoothie. One simple recipe that gives you about half your daily calcium, magnesium and potassium in a single glass, with the real numbers behind it. Get the free 7-page guide.

Best food sources of magnesium

Seeds, nuts, beans, whole grains and leafy greens are the richest sources. Your body absorbs roughly 30–40% of the magnesium in food.

FoodServingMagnesium% Daily Value
Pumpkin seeds, roasted1 oz156 mg37%
Chia seeds1 oz111 mg26%
Almonds, dry roasted1 oz80 mg19%
Spinach, boiled½ cup78 mg19%
Cashews, dry roasted1 oz74 mg18%
Peanuts, oil roasted¼ cup63 mg15%
Shredded wheat cereal2 biscuits61 mg15%
Soymilk1 cup61 mg15%
Black beans, cooked½ cup60 mg14%
Edamame, cooked½ cup50 mg12%
Peanut butter2 tbsp49 mg12%
Potato, baked with skin3.5 oz43 mg10%
Source: NIH Office of Dietary Supplements, Magnesium fact sheet.

Want a longer list? See the 49 foods high in magnesium, ranked, foods high in calcium, potassium and magnesium and foods rich in chromium and magnesium.

Too little magnesium

Healthy people rarely become deficient from diet alone, because the kidneys hold on to magnesium when intake is low. The people most at risk are those with gut conditions such as Crohn’s or celiac disease, people with type 2 diabetes, people who drink heavily, and older adults.

Early signs are loss of appetite, nausea, tiredness and weakness. As it gets worse it can cause numbness, tingling, muscle cramps, abnormal heart rhythms and even seizures, and it can pull down calcium and potassium levels too.

Too much magnesium

Magnesium from food is safe because healthy kidneys remove the extra. The 350 mg upper limit applies to supplements and medicines such as laxatives and antacids. Going over it often causes diarrhea, nausea and stomach cramps. Very high doses, especially with kidney problems, can cause low blood pressure, an irregular heartbeat and worse. Read more in can you overdose on magnesium?

Magnesium supplements: what to know

  • Forms: citrate, chloride, lactate and aspartate appear to be absorbed better than oxide and sulfate. Labels list the amount of elemental magnesium.
  • Timing: see morning or night? and morning or night?, plus how long magnesium stays in your body.
  • Medicine interactions: separate magnesium from bisphosphonates (osteoporosis drugs) by at least 2 hours; take tetracycline or quinolone antibiotics at least 2 hours before or 4–6 hours after magnesium. Some diuretics raise or lower magnesium, and long-term use of acid-reflux medicines (PPIs) can cause low magnesium.

Frequently asked questions

Is magnesium a major or trace mineral?

Magnesium is a major mineral: adults need more than 100 mg a day. See major minerals.

Does magnesium help with sleep or stress?

Magnesium helps muscles and nerves relax, which is why it’s often linked to sleep and stress. If you’re low, getting enough may help you feel better, but supplements aren’t a proven treatment for insomnia or anxiety in people who already get enough.

Does coffee deplete magnesium?

Caffeine slightly increases how much magnesium you lose in urine, but moderate coffee drinking is unlikely to cause a deficiency on its own. See does coffee deplete magnesium?

Can I take magnesium while breastfeeding?

Breastfeeding women need 310–320 mg a day, which most can get from food. Ask your doctor before taking a supplement, and stay under the 350 mg supplement limit.


This article is for general information and isn’t medical advice. Talk to your doctor or pharmacist before taking supplements, especially if you have kidney disease or take medicine.

Source: NIH Office of Dietary Supplements, Magnesium Fact Sheet for Health Professionals.

How we check our facts: daily amounts and food values are checked against public sources such as the NIH Office of Dietary Supplements and USDA FoodData Central. Read our editorial policy, or tell us about a mistake.

This page is for general education and isn’t medical advice. See our disclaimer.