Foods High in Magnesium: The Best Sources, How Much You Need and When to Supplement
Pumpkin seeds, chia, almonds, spinach and cashews top the list. Here are the real numbers, how much magnesium you need, who runs low and when a supplement makes sense.

Foods high in magnesium include pumpkin seeds (156 mg per ounce), chia seeds (111 mg per ounce), almonds (80 mg per ounce), boiled spinach (78 mg per half cup) and cashews (74 mg per ounce). Those figures come from the NIH. Most adults need 310 to 420 mg a day, and seeds, nuts, beans, leafy greens and whole grains get you there fastest.
Below is the full list, how much you need, who tends to fall short and when a supplement makes sense. To plan meals around these foods, try our free meal plan generator.
Which foods are highest in magnesium?
This table comes from the NIH Office of Dietary Supplements (ODS) fact sheet on magnesium, which uses USDA data. The Daily Value (DV) is 420 mg, and food labels only have to list magnesium when it has been added to the food.
| Food | Serving | Magnesium (mg) | % DV |
|---|---|---|---|
| Pumpkin seeds, roasted | 1 oz (28 g) | 156 | 37% |
| Chia seeds | 1 oz (28 g) | 111 | 26% |
| Almonds, dry-roasted | 1 oz (28 g) | 80 | 19% |
| Spinach, boiled | ½ cup | 78 | 19% |
| Cashews, dry-roasted | 1 oz (28 g) | 74 | 18% |
| Peanuts, oil-roasted | ¼ cup | 63 | 15% |
| Shredded wheat cereal | 2 large biscuits | 61 | 15% |
| Soymilk, plain or vanilla | 1 cup | 61 | 15% |
| Black beans, cooked | ½ cup | 60 | 14% |
| Edamame, shelled, cooked | ½ cup | 50 | 12% |
| Peanut butter, smooth | 2 tbsp | 49 | 12% |
| Potato, baked with skin | 3.5 oz (99 g) | 43 | 10% |
| Brown rice, cooked | ½ cup | 42 | 10% |
| Yogurt, plain, low-fat | 8 oz (227 g) | 42 | 10% |
| Oatmeal, instant | 1 packet | 36 | 9% |
| Kidney beans, canned | ½ cup | 35 | 8% |
| Banana | 1 medium | 32 | 8% |
| Milk | 1 cup | 27 | 6% |
| Salmon, Atlantic, farmed, cooked | 3 oz (85 g) | 26 | 6% |
| Halibut, cooked | 3 oz (85 g) | 24 | 6% |
| Whole wheat bread | 1 slice | 23 | 5% |
| Avocado, cubed | ½ cup | 22 | 5% |
| Chicken breast, roasted | 3 oz (85 g) | 22 | 5% |
| Ground beef, 90% lean | 3 oz (85 g) | 20 | 5% |
| Broccoli, cooked | ½ cup | 12 | 3% |
| White rice, cooked | ½ cup | 10 | 2% |
Notice the rice. Half a cup of brown rice has 42 mg, while the same amount of white rice has 10 mg. Refining grains strips away the germ and bran, where much of the magnesium sits. As a rule, foods that contain fiber also bring magnesium. Your tap or bottled water can add some too, anywhere from 1 mg to more than 120 mg per liter depending on the source.
Is dark chocolate high in magnesium?
Fairly. One ounce (28 g) of 70% to 85% dark chocolate has about 65 mg, or 15% of the DV, based on Health Canada’s Canadian Nutrient File. That’s close to a half cup of black beans. It also has about 170 calories, so treat it as a bonus rather than your main source.
More magnesium-rich foods people ask about
These foods aren’t in the NIH table. We looked them up in the Canadian Nutrient File and worked out each serving ourselves:
| Food | Serving | Magnesium (mg) | % DV |
|---|---|---|---|
| Hemp seeds, hulled | 1 oz (28 g) | 167 | 40% |
| Quinoa, cooked | 1 cup (250 mL) | 125 | 30% |
| Brazil nuts | 1 oz (28 g) | 107 | 25% |
| Swiss chard, boiled | ½ cup (125 mL) | 80 | 19% |
| Tempeh, cooked | 3 oz (85 g) | 65 | 16% |
| Dark chocolate, 70–85% cacao | 1 oz (28 g) | 65 | 15% |
| Flaxseed, ground | 2 tbsp (30 mL) | 56 | 13% |
| Tofu, firm, with magnesium chloride | ½ cup (125 mL) | 49 | 12% |
| Sunflower seeds, dry-roasted | 1 oz (28 g) | 37 | 9% |
One caution on Brazil nuts: they’re also loaded with selenium, about 68 to 91 mcg per nut. An ounce (6 to 8 nuts) averages about 544 mcg, more than the adult upper limit of 400 mcg a day, and the NIH warns that eating them regularly could cause selenium toxicity. A nut or two is plenty. Many of these foods double as good sources of iron and protein; see our lists of foods high in iron and foods high in protein.
How much magnesium do you need a day?
These are the Recommended Dietary Allowances (RDAs) from the National Academies, as listed by the ODS:
| Age | Men | Women | Pregnancy |
|---|---|---|---|
| 4–8 years | 130 mg | 130 mg | – |
| 9–13 years | 240 mg | 240 mg | – |
| 14–18 years | 410 mg | 360 mg | 400 mg |
| 19–30 years | 400 mg | 310 mg | 350 mg |
| 31–50 years | 420 mg | 320 mg | 360 mg |
| 51+ years | 420 mg | 320 mg | – |
Breastfeeding women need the same as other women their age. Children aged 1 to 3 need 80 mg.
Many people fall short. In US survey data from 2013 to 2016, 48% of Americans got less magnesium from food and drinks than the average requirement for their age. Men 71 and older and teenagers were the most likely to come up short.
The good news is that a day built from the table gets you there without trying very hard. One ounce of pumpkin seeds (156 mg), half a cup of black beans (60 mg), half a cup of spinach (78 mg), an ounce of almonds (80 mg) and 8 ounces of plain low-fat yogurt (42 mg) add up to 416 mg.
How much magnesium does your body absorb?
You absorb about 30% to 40% of the magnesium in food and drinks. Your kidneys do the fine-tuning: they normally release about 120 mg a day into urine and hold on to more when your levels run low. That’s why a true deficiency from diet alone is uncommon in healthy people.
Age works against you, though. Older adults tend to eat less magnesium, absorb less of it from the gut and lose more through the kidneys. They’re also more likely to take medicines that affect magnesium.
Supplements vary as well. Forms that dissolve well in liquid are absorbed better. Small studies found the aspartate, citrate, lactate and chloride forms are better absorbed than magnesium oxide and sulfate. The label lists elemental magnesium, the amount that counts, not the weight of the whole compound. Our comparison of magnesium glycinate vs citrate covers which form suits which goal.
Who is most likely to run low on magnesium?
The ODS names these groups as most at risk:
- People with gut conditions such as Crohn’s disease or celiac disease, or who have had part of the small intestine removed or bypassed.
- People with type 2 diabetes, because high blood sugar makes the kidneys flush out more magnesium.
- People with alcohol dependence, through poor diet, vomiting, diarrhea and kidney losses.
- Older adults, for the reasons above.
- People on certain medicines. Long-term use of heartburn drugs called proton pump inhibitors, typically for more than a year, can cause low magnesium, and in a quarter of the cases the FDA reviewed, supplements didn’t fix it. Loop and thiazide diuretics (water pills) also raise magnesium losses.
Magnesium matters more as you age; our guide to magnesium after 40 goes deeper on that.
What are the symptoms of magnesium deficiency?
Early signs are vague: loss of appetite, nausea, vomiting, tiredness and weakness. As deficiency worsens, the ODS lists numbness, tingling, muscle cramps and contractions, seizures, personality changes, abnormal heart rhythms and spasms of the heart’s arteries. Severe deficiency can also drag down calcium and potassium levels.
Testing is tricky. Less than 1% of your magnesium is in your blood, and your body keeps that level within a tight range, so a normal blood test doesn’t rule out low stores. Doctors may combine lab tests with a look at your diet, health conditions and medicines. If cramps are your main concern, see our review of whether magnesium helps leg cramps.
Is magnesium good for your heart?
Probably a little, mainly through blood pressure. The evidence:
- Blood pressure trials. A meta-analysis of 34 placebo-controlled trials with 2,028 adults found that magnesium supplements, at a median of 368 mg a day for about 3 months, lowered blood pressure by about 2 mm Hg systolic and 1.8 mm Hg diastolic. That’s a small effect. For comparison, see what isometric exercise does for blood pressure.
- Long-term studies of diet. Across 40 cohort studies with more than a million people, each extra 100 mg of dietary magnesium a day was linked to a 22% lower risk of heart failure, 7% lower risk of stroke and 19% lower risk of type 2 diabetes. It was not linked to coronary heart disease or overall cardiovascular disease. These studies show links, not cause and effect: magnesium-rich diets differ in other ways too, which the NIH notes can muddy the results.
- The official view. In 2022 the FDA allowed a qualified claim that diets with adequate magnesium may reduce the risk of high blood pressure, while adding that the evidence is inconsistent and inconclusive.
Two other areas get attention. For migraine, the American Academy of Neurology and American Headache Society rate magnesium as probably effective for prevention, but the doses used are above the supplement upper limit, so do it only with your doctor. For blood sugar, the American Diabetes Association says there isn’t enough evidence to recommend magnesium supplements for diabetes control.
Does magnesium help with constipation?
Magnesium supplements and laxatives can. Magnesium salts that aren’t absorbed draw water into the bowel and speed things along, which is also why too much causes diarrhea.
The best evidence is for magnesium oxide. In a Japanese trial of 34 women with constipation, 1.5 grams of magnesium oxide a day for four weeks brought overall improvement in 71% of women, compared with 25% on placebo. A second trial of 90 people found improvement in 68% on magnesium oxide, 69% on senna and 12% on placebo. Based on these two small trials, the 2023 guideline from the American Gastroenterological Association and American College of Gastroenterology gives magnesium oxide a conditional recommendation, with very low certainty of evidence. It advises starting at a low dose and avoiding it in people with kidney problems.
Keep the dose in mind. By the NIH’s figures, 500 mg of magnesium oxide provides 300 mg of magnesium, so 1.5 grams supplies roughly 900 mg, well above the 350 mg upper limit for supplements. A tablespoon of one well-known milk of magnesia contains 500 mg. That’s why laxative doses belong under a doctor’s or pharmacist’s guidance. The same guideline also gives fiber a conditional recommendation; see our guide to getting more fiber.
Should you take a magnesium supplement?
Most people can meet their needs from food. If you do take one, know the limits:
- The upper limit is 350 mg a day from supplements and medicines for adults and children 9 and up. It doesn’t include magnesium from food, which is why it can look lower than the RDA.
- Diarrhea is the usual side effect, sometimes with nausea and cramping. Magnesium carbonate, chloride, gluconate and oxide cause it most often.
- Kidney disease changes everything. Your kidneys clear extra magnesium, so poor kidney function raises the risk of toxicity. Very large doses of magnesium laxatives or antacids, usually over 5,000 mg a day, have caused dangerous and sometimes fatal overdoses.
- Space it from some medicines. Take magnesium at least 2 hours away from osteoporosis drugs such as alendronate. Take tetracycline or quinolone antibiotics, such as doxycycline or ciprofloxacin, at least 2 hours before or 4 to 6 hours after magnesium.
For forms, side effects and sleep, our guides to magnesium glycinate side effects and the best magnesium supplements for sleep pick up from here. Magnesium is also one of the electrolytes you lose in sweat; see why water alone isn’t always enough.
The bottom line: a small handful of seeds or nuts, a serving of beans and some leafy greens or whole grains each day covers most adults. Keep supplements for when food falls short, stay under 350 mg unless your doctor says otherwise, and talk to your doctor first if you have kidney disease. Build a week of magnesium-rich meals with our free meal plan generator, or browse all our free health tools.
This article is for general information and is not medical advice. Please read our medical disclaimer.
Sources
- NIH Office of Dietary Supplements. Magnesium: Fact Sheet for Health Professionals. Updated January 6, 2026. ods.od.nih.gov
- Health Canada. Canadian Nutrient File, 2015 version (food codes 7568, 5917, 2544, 2053, 4986, 6672, 4528, 3404, 2527). food-nutrition.canada.ca
- NIH Office of Dietary Supplements. Selenium: Fact Sheet for Health Professionals. ods.od.nih.gov
- Zhang X, et al. Effects of magnesium supplementation on blood pressure: a meta-analysis of randomized double-blind placebo-controlled trials. Hypertension. 2016;68(2):324-333. PubMed 27402922
- Fang X, et al. Dietary magnesium intake and the risk of cardiovascular disease, type 2 diabetes, and all-cause mortality: a dose-response meta-analysis of prospective cohort studies. BMC Med. 2016;14(1):210. PubMed 27927203
- Holland S, et al. Evidence-based guideline update: NSAIDs and other complementary treatments for episodic migraine prevention in adults. Neurology. 2012;78(17):1346-1353. PubMed 22529203
- Mori S, et al. A randomized double-blind placebo-controlled trial on the effect of magnesium oxide in patients with chronic constipation. J Neurogastroenterol Motil. 2019;25(4):563-575. PubMed 31587548
- Morishita D, et al. Senna versus magnesium oxide for the treatment of chronic constipation: a randomized, placebo-controlled trial. Am J Gastroenterol. 2021;116(1):152-161. PubMed 32969946
- Chang L, et al. American Gastroenterological Association-American College of Gastroenterology clinical practice guideline: pharmacological management of chronic idiopathic constipation. Am J Gastroenterol. 2023;118(6):936-954. PubMed 37204227
This article is for informational purposes only and is not medical advice. See our Medical Disclaimer before changing your exercise, diet, or supplement routine.
See every method in action
New research-backed workouts on YouTube every week — no gym required.
Frequently asked questions
Which food is highest in magnesium?
Seeds lead the list. Roasted pumpkin seeds have 156 mg per ounce (37% of the Daily Value) and hulled hemp seeds about 167 mg per ounce. Chia seeds (111 mg), almonds (80 mg) and cashews (74 mg) per ounce, and half a cup of boiled spinach (78 mg), are close behind. Beans, whole grains, soymilk and edamame are good everyday sources too.
Is dark chocolate high in magnesium?
Fairly. One ounce of 70% to 85% dark chocolate has about 65 mg of magnesium, or 15% of the Daily Value, according to Health Canada’s Canadian Nutrient File. That is similar to half a cup of black beans. It also carries about 170 calories, so enjoy it as a bonus rather than a main source.
What are the symptoms of magnesium deficiency?
Early signs are vague: loss of appetite, nausea, vomiting, tiredness and weakness. As it worsens, the NIH lists numbness, tingling, muscle cramps, seizures, personality changes and abnormal heart rhythms. True deficiency is uncommon in healthy people because the kidneys hold on to magnesium when levels drop. It is more likely with gut diseases, type 2 diabetes, heavy drinking, older age or long-term use of heartburn drugs called proton pump inhibitors.
Does magnesium help with constipation?
Magnesium oxide does. In two small Japanese trials, 1.5 grams a day for four weeks helped about 70% of people, compared with 12% to 25% on placebo, and a 2023 US guideline gives it a conditional recommendation. That dose provides roughly 900 mg of magnesium, far above the 350 mg supplement limit, so start low, use it with your doctor’s or pharmacist’s advice and avoid it if you have kidney problems.
Is magnesium good for your heart?
Modestly. A meta-analysis of 34 trials found magnesium supplements lowered blood pressure by about 2 mm Hg systolic. In long-term studies, each extra 100 mg of dietary magnesium a day was linked to lower risks of heart failure and stroke, but those studies show links, not proof. The FDA allows a claim that adequate magnesium may reduce high blood pressure risk while calling the evidence inconsistent and inconclusive.
How much magnesium do you need a day?
Men need 400 mg a day at ages 19 to 30 and 420 mg from 31 on. Women need 310 mg at 19 to 30 and 320 mg from 31 on, with 350 to 360 mg in pregnancy. Separately, supplements and medicines should stay under 350 mg a day for adults unless a doctor advises more. That upper limit does not include magnesium from food.
Can you get too much magnesium from food?
Not if your kidneys are healthy. They remove the extra in urine, so the NIH says magnesium from food poses no risk to healthy people. Problems come from supplements, laxatives and antacids: high doses cause diarrhea, nausea and cramping, and very large doses can be dangerous, especially with kidney disease.


