Remedy · pantry

Magnesium-rich foods: how much you need and what the evidence says

Pumpkin seeds, nuts, beans, leafy greens and whole grains are the main food sources. Many Americans eat less than the recommended amount, and supplement trials show small effects.

By the editors of Alimentotherapy Last reviewed 6 min read Not medical advice

Magnesium-rich foods

Best-supported use: Blood pressure (supplement trials)

EvidenceModeratebest use

Affiliate disclosure: this page links to Cronometer, iHerb and USA Magnesium. If you buy through those links we may earn a commission, at no extra cost to you, and that does not change what we recommend or the evidence grades on this page. How we make money

The short answer

Adults need 310 to 420 mg of magnesium a day, and seeds, nuts, beans, leafy greens and whole grains supply it: an ounce of roasted pumpkin seeds has 156 mg NIH ODS. In trials, magnesium supplements lowered blood pressure by about 2 mm Hg, a moderate-grade finding, while the evidence for sleep, migraine and blood sugar is limited Zhang 2016; Mah 2021.

The evidence, use by use

Each claim graded on human studies only. How we grade

UseGradeWhat the research found
Blood pressureModerateA meta-analysis of 34 double-blind trials (2,028 adults) found supplements at a median 368 mg a day for about 3 months lowered systolic pressure by 2.0 mm Hg and diastolic by 1.8 mm Hg. NIH ODS describes the effect as marginal. Zhang 2016; NIH ODS
Falling asleep (older adults with insomnia)LimitedThree small trials (151 older adults) found people fell asleep about 17 minutes sooner on magnesium than placebo. All were at moderate to high risk of bias, and the reviewers rated the evidence low to very low quality. Mah 2021
Migraine frequency (people with migraine)LimitedIn several small trials, people with migraine who took magnesium supplements had modestly fewer migraines. The American Academy of Neurology and American Headache Society rated magnesium probably effective (Level B), and NIH ODS calls the data limited. NIH ODS; Holland 2012
Blood sugar in people with or at risk of diabetesLimitedEighteen double-blind trials found supplements lowered fasting glucose in people with diabetes, with high variation between trials. NIH ODS notes the American Diabetes Association says there is not enough evidence to recommend magnesium for glycemic control. Veronese 2016; NIH ODS

How much magnesium you need

Magnesium is a cofactor in more than 300 enzyme systems, including those for muscle and nerve function, blood glucose control and blood pressure regulation NIH ODS. The Recommended Dietary Allowances set by the National Academies are:

Recommended Dietary Allowance for magnesium, adults (NIH ODS)

AgeMenWomenPregnancyBreastfeeding
14-18 years410 mg360 mg400 mg360 mg
19-30 years400 mg310 mg350 mg310 mg
31-50 years420 mg320 mg360 mg320 mg
51 and older420 mg320 mg

About 30% to 40% of the magnesium in food is absorbed NIH ODS. Because most of the body's magnesium sits inside cells and bone, a blood test does not show your total stores well, which is one reason "do I need magnesium?" is hard to answer from a lab result alone.

The best food sources

Magnesium in selected foods (NIH ODS, from USDA FoodData Central)

FoodMagnesium
Pumpkin seeds, roasted, 1 ounce156 mg
Chia seeds, 1 ounce111 mg
Almonds, dry roasted, 1 ounce80 mg
Spinach, boiled, ½ cup78 mg
Cashews, dry roasted, 1 ounce74 mg
Peanuts, oil roasted, ¼ cup63 mg
Soymilk, plain or vanilla, 1 cup61 mg
Black beans, cooked, ½ cup60 mg
Edamame, shelled, cooked, ½ cup50 mg
Peanut butter, smooth, 2 tablespoons49 mg
Potato, baked with skin, 3.5 ounces43 mg
Brown rice, cooked, ½ cup42 mg
Yogurt, plain, low fat, 8 ounces42 mg
Oatmeal, instant, 1 packet36 mg
Kidney beans, canned, ½ cup35 mg
Banana, 1 medium32 mg
Salmon, Atlantic, farmed, cooked, 3 ounces26 mg

Those figures come from the NIH Office of Dietary Supplements table NIH ODS. A day built on whole foods gets there without much effort: a handful of almonds, half a cup of black beans, a serving of brown rice and a cup of soymilk already add up to over 240 mg. The nuts and beans and lentils pages cover those foods in more depth.

In the kitchen

Toasted pumpkin seeds (pepitas) are the easiest boost: scatter them on soup, salad or oatmeal. If you want to buy them in bulk, iHerb lists pumpkin seeds; any supermarket has them too.

Who runs low

Many people in the US eat less magnesium than recommended, and men over 70 and teenagers are the most likely to have low intakes NIH ODS. Clear deficiency is uncommon in healthy people, because the kidneys hold on to magnesium when intake is low. The groups at higher risk are people with gastrointestinal diseases such as Crohn's or celiac disease, people with type 2 diabetes, people with long-term alcohol dependence, and older adults NIH ODS; NIH ODS.

Early signs of deficiency are vague: loss of appetite, nausea, vomiting, fatigue and weakness. Numbness, cramps, seizures and abnormal heart rhythms come later and need medical care NIH ODS. If you want to see what your usual meals provide before thinking about a supplement, a food diary app such as Cronometer reports magnesium from its food database.

What the supplement trials show

Almost all the trials below used supplements rather than food, so they tell you what extra magnesium does, not what a seed-and-bean diet does.

  • Blood pressure. Across 34 double-blind trials, a median 368 mg a day lowered blood pressure by about 2 mm Hg systolic and 1.8 mm Hg diastolic Zhang 2016. NIH ODS describes the effect as marginal NIH ODS.
  • Sleep. Three small trials in 151 older adults with insomnia found they fell asleep about 17 minutes sooner, with no significant change in total sleep time, and the evidence was rated low to very low quality Mah 2021. The sleep page covers the bigger levers.
  • Migraine. In several small trials, people with migraine who took magnesium supplements had modestly fewer migraines NIH ODS. A 2012 American Academy of Neurology and American Headache Society guideline rated magnesium "probably effective" (Level B) for reducing how often migraines occur Holland 2012. NIH ODS advises taking magnesium for this only under the care of a health care provider NIH ODS.
  • Blood sugar. Eighteen trials found supplements lowered fasting glucose in people with diabetes and improved glucose tolerance in people at high risk Veronese 2016, but the American Diabetes Association says the evidence is not enough to recommend magnesium for glycemic controlNIH ODS.

If you are considering a supplement

Food comes first: magnesium from food and drink is not harmful and does not need to be limited, because healthy kidneys clear the excess NIH ODS. Supplements and medicines are different. The upper limit for magnesium from supplements and medications is 350 mg a day for adults; above that, diarrhea, nausea and cramping are common, and very high doses can cause dangerous toxicityNIH ODS. The risk is higher with reduced kidney function NIH ODS. Citrate, aspartate, lactate and chloride forms tend to be absorbed better than oxideNIH ODS.

Before you try it: safety and interactions

Who should avoid it or ask first

  • You have kidney disease or reduced kidney function: do not take magnesium supplements without your clinician's advice.
  • You take bisphosphonates for osteoporosis, or tetracycline or quinolone antibiotics: separate them from magnesium supplements as your pharmacist advises, since magnesium can reduce their absorption.
  • You take diuretics or long-term proton pump inhibitors for reflux: these can change your magnesium levels, so ask your clinician whether to check them.

Possible side effects

  • From food: none expected in healthy people; the kidneys remove the excess.
  • From supplements or magnesium-containing laxatives and antacids: diarrhea, nausea and abdominal cramping, especially above 350 mg a day.
  • Very high doses: magnesium toxicity, with low blood pressure, vomiting, irregular heartbeat and, rarely, cardiac arrest.

Pregnancy and breastfeeding

Needs rise to 350 to 400 mg a day in pregnancy, depending on age, and food sources are the way to meet them. Take a supplement in pregnancy or while breastfeeding only if your clinician recommends one. NIH ODS; NIH ODS

Common questions

How much magnesium do adults need a day?

The RDA is 400 to 420 mg for men and 310 to 320 mg for women, rising to 350 to 360 mg in pregnancy, according to the NIH Office of Dietary Supplements. The upper limit for magnesium from supplements and medicines is 350 mg a day; food magnesium does not count toward it.

Which foods are highest in magnesium?

In the NIH ODS table, 1 ounce of roasted pumpkin seeds has 156 mg, chia seeds 111 mg, dry-roasted almonds 80 mg, half a cup of boiled spinach 78 mg and half a cup of cooked black beans 60 mg.

Does magnesium help you sleep?

The evidence is weak. A 2021 meta-analysis found three small trials in 151 older adults with insomnia; magnesium shortened the time to fall asleep by about 17 minutes, but the evidence was rated low to very low quality.

Sources

Primary research and government sources, each checked on the date this page was reviewed.

  1. NIH ODSNIH Office of Dietary Supplements. Magnesium: Fact Sheet for Health Professionals.
  2. NIH ODSNIH Office of Dietary Supplements. Magnesium: Fact Sheet for Consumers.
  3. PubMedZhang X, et al. Effects of Magnesium Supplementation on Blood Pressure: A Meta-Analysis of Randomized Double-Blind Placebo-Controlled Trials. Hypertension. 2016. PMID 27402922.
  4. PubMedMah J, et al. Oral magnesium supplementation for insomnia in older adults: a Systematic Review & Meta-Analysis. BMC Complement Med Ther. 2021. PMID 33865376.
  5. GuidelineHolland S, et al. Evidence-based guideline update: NSAIDs and other complementary treatments for episodic migraine prevention in adults. Neurology. 2012. PMID 22529203.
  6. PubMedVeronese N, et al. Effect of magnesium supplementation on glucose metabolism in people with or at risk of diabetes: a systematic review and meta-analysis of double-blind randomized controlled trials. Eur J Clin Nutr. 2016. PMID 27530471.

Keep reading