25 Foods High in Magnesium — Ranked by Serving, With a Same-Day Meal Plan
Exact mg counts, absorption tips, and one day of eating that hits your full RDA.

The foods highest in magnesium are pumpkin seeds (156 mg/oz), cooked spinach (158 mg/cup), chia seeds (111 mg/oz), black beans (60 mg per half-cup), and almonds (80 mg/oz). Most adults need 310–420 mg per day depending on age and sex. An analysis of National Health and Nutrition Examination Survey (NHANES) data from 2013 – 2016 found that 48% of Americans of all ages consume less magnesium from food and beverages than their respective Estimated Average Requirements [1]. You can close that gap without supplements – but only if you know which foods actually move the needle and how to combine them in a day.
Magnesium is a cofactor – meaning it activates and regulates other enzymes and processes – in more than 300 enzyme systems that govern biochemical reactions across your body, including protein synthesis, muscle and nerve function, blood glucose control, and blood pressure regulation.
That is a long list for a single mineral, yet, most people have no idea how much they are actually getting, or how far short they fall.
An analysis of NHANES (National Health and Nutrition Examination Survey) data from 2013–2016 found that 48% of Americans of all ages ingest less magnesium from food and beverages than their respective Estimated Average Requirements [1].
Based on NHANES data, 64% of women aged 51–70 years do not achieve the Estimated Average Requirement (EAR — the daily intake level estimated to meet the needs of half of all healthy people in a given group) for their age group [5].
This article does more than list foods. Every food entry includes exact mg-per-serving figures sourced from USDA FoodData Central [2].
You will also get a comparison of magnesium efficiency by calorie, a breakdown of what blocks and what improves absorption, and a complete same-day meal plan that hits your full RDA.
How much magnesium do you actually need?
The RDA for adults 19–51+ years is 400–420 mg daily for men and 310–320 mg for women. Pregnancy requires about 350–360 mg daily, and lactation calls for 310–320 mg [1].
The Daily Value (DV) printed on nutrition labels is 420 mg. That number is behind every “% DV” figure you see on a food package and gives you a consistent benchmark regardless of your sex or age.
The Tolerable Upper Intake Level (UL) – the maximum amount considered safe – only covers magnesium from dietary supplements and medications, not from food. Magnesium naturally present in food and beverages is not harmful. In healthy people, the kidneys eliminate any excess in urine [1].
In practical terms, you cannot eat too much magnesium from food.
Magnesium RDA by age and sex
| Group | RDA (mg/day) |
|---|---|
| Men 19–30 | 400 mg |
| Men 31+ | 420 mg |
| Women 19–30 | 310 mg |
| Women 31+ | 320 mg |
| Pregnant (19–30) | 350 mg |
| Pregnant (31+) | 360 mg |
Source: NIH Office of Dietary Supplements — Magnesium Fact Sheet for Health Professionals
Approximately 30–40% of the magnesium obtained from food and beverages absorbs into your body [1].
To reliably hit 420 mg of absorbed magnesium, your dietary target should sit higher – around 500 mg from food on most days, especially if your diet includes a lot of high-phytate foods like raw grains or unsoaked legumes.
25 foods high in magnesium – ranked by mg per serving
In general, foods that contain dietary fiber also provide magnesium [1]. That single fact is one of the most practical shortcuts in nutrition. If a food is genuinely high in fiber, it is very likely to be a meaningful magnesium source.
Magnesium content ranked by serving
| Food | Serving | Mg (mg) | % DV | Category |
|---|
Source: USDA FoodData Central. % DV based on 420 mg Daily Value.
Seeds

Seeds are the single most magnesium-dense food category by weight. A small handful delivers a quarter to a third of your daily target.
- One ounce of pumpkin seeds provides 156 mg, or around 37% of the Daily Value for magnesium [2]. They also contain manganese, copper, phosphorus, and zinc, making them one of the most nutrient-efficient snack options in this list. Hulled, roasted pumpkin seeds (also called pepitas) work in salads, oatmeal, or eaten directly out of the bag.
- Chia seeds provide 111 mg per ounce, which is 26% of the DV. They also contain omega-3 fatty acids, selenium, copper, zinc, iron, and manganese [2]. Ground chia and whole chia absorb the same amount of magnesium, unlike flaxseeds, which need to be ground for their nutrients to become accessible.
- Hemp seeds rank among the most potent sources on this entire list and rarely appear in competitor articles. Three tablespoons provide approximately 210 mg of magnesium alongside 10g of complete protein [2].
- Flaxseeds (ground): 1 tbsp = approximately 27 mg magnesium [2]. Lower per-serving than chia, but a useful daily add-on to yogurt or oatmeal given their high omega-3 and lignan (plant-based compounds that act as antioxidants and support hormonal health) content.
- Sesame seeds (whole, dried): 1 oz = approximately 99 mg magnesium [2]. Tahini, which is sesame paste, delivers similar numbers in a more versatile culinary form.
Leafy greens

- A 1-cup (180g) serving of cooked spinach contains 158 mg of magnesium. Spinach is also a strong source of iron, manganese, and vitamins A, C, and K [2].
Cooking matters significantly here. Raw spinach gives you only about 24 mg per cup. When you cook it down, the volume shrinks to roughly one-sixth of its raw size, which concentrates the magnesium dramatically. One cup of cooked spinach represents approximately six cups of raw leaves.
- Swiss chard (cooked): 1 cup = approximately 150 mg [2].
- Collard greens (cooked): 1 cup = approximately 52 mg [2].
- Kale (cooked): 1 cup = approximately 36 mg [2]. Kale ranks lowest of the major leafy greens on a per-cup basis. Worth knowing if you are eating it specifically to raise magnesium.
Raw vs. cooked spinach — magnesium per cup
| Form | Serving | Magnesium | % DV | Calories |
|---|---|---|---|---|
| Raw spinach | 1 cup (30g) | 24 mg | 6% | ~7 kcal |
| Cooked spinach | 1 cup (180g) | 158 mg | 38% | ~41 kcal |
Context matters: 1 cup of cooked spinach equals approximately 6 cups of raw spinach by volume. Per the same mass of plant material, cooked spinach delivers the same total magnesium in far less space on your plate.
Source: USDA FoodData Central
Legumes and beans

- Black beans deliver protein, fiber, vitamins, minerals, and antioxidants with a low glycemic index. A half-cup serving provides 60 mg of magnesium, which is 14% of the DV [2].
- Edamame is a low-calorie magnesium source. A half-cup of young green soybeans contains 50 mg of magnesium, 6g of protein, and fiber for just 65 calories [2].
- Lima beans are one of the most underrated sources in the legume category. One cup (cooked) provides 126 mg — higher per cup than black beans when you account for a full serving.
- Lentils (cooked): 1 cup = approximately 71 mg.
- Chickpeas (canned, drained): 1 cup = approximately 79 mg [2].
A note on phytates: raw or undercooked legumes contain phytic acid, which binds to minerals including magnesium in the gut and reduces how much your body absorbs. Soaking dried beans for 8–12 hours before cooking and discarding the soaking water reduces phytate content. Canned beans are already cooked, so this matters less with canned varieties. Rinsing canned beans reduces sodium without affecting magnesium.
Whole grains

Some types of food processing, such as refining grains in ways that remove the nutrient-rich germ and bran, substantially lower magnesium content [1]. When you switch from brown rice to white or from whole wheat to white flour, you lose a significant portion of the original grain’s magnesium.
- Quinoa (cooked): 1 cup = approximately 118 mg. Technically a seed rather than a grain, which is why it holds up in gluten-free eating patterns. It also provides all nine essential amino acids.
- Whole wheat flour: 100g = approximately 138 mg.
- White all-purpose flour: 100g = approximately 22 mg. That is an 84% reduction from the same starting ingredient, purely from the refining process.
- Oats (raw, rolled): 1 cup = approximately 144 mg. Cooked oatmeal (1 cup, prepared with water) drops to approximately 61 mg due to water dilution during cooking.
- Buckwheat (cooked): 1 cup = approximately 86 mg.
- Brown rice (cooked): 1 cup = approximately 84 mg.
- White rice (cooked): 1 cup = approximately 19 mg [2].
What refining grains costs you
| Grain pair | Whole grain (mg/100g) | Refined (mg/100g) | Mg lost |
|---|---|---|---|
| Brown rice vs. white rice | 44 mg | 12 mg | −73% |
| Whole wheat flour vs. white flour | 138 mg | 22 mg | −84% |
| Rolled oats vs. instant oats | 177 mg | 110 mg | −38% |
Source: USDA FoodData Central
5. Nuts, fish, fruit, and other sources

- One ounce of almonds contains 80 mg of magnesium, which is 19% of the DV.
- Cashews contain 74 mg per ounce, which is 18% of the DV [2].
- Dark chocolate contains 65 mg of magnesium in a 1-ounce (28g) serving. It also provides iron, copper, and manganese [2].
Look for 70% or higher cocoa content. Milk chocolate delivers significantly less magnesium per ounce and considerably more sugar. Dark chocolate is not a health food at scale, but it is a legitimate magnesium source in 1-oz servings.
- Avocado (whole, raw): approximately 58 mg [2].
- Banana (large): approximately 37 mg [2]. Bananas are commonly cited as a magnesium food but rank near the bottom of this list. They work as a supplement to higher-density sources, not as a primary strategy. Their real nutritional strength is potassium.
- Atlantic salmon (cooked, 3 oz): approximately 26 mg [2]. Salmon’s magnesium content is modest relative to seeds and greens, but it adds value alongside its omega-3 fatty acids, vitamin D, and potassium. Mackerel and halibut rank slightly higher among fish.
- Plain low-fat yogurt (8 oz): approximately 42 mg [2].
Mineral, and bottled waters can also contribute magnesium, but the amount varies widely by source and brand, ranging from 1 mg/L to greater than 120 mg/L [1]. If you drink mineral water, check the label. Some brands contribute meaningfully to your daily total.
Magnesium by the calorie: which foods are most efficient?
Knowing which foods are highest per serving is useful. Knowing which foods give you the most magnesium per calorie is a different and often more practical question – especially if you are watching total caloric intake.
Pumpkin seeds deliver 156 mg per ounce at about 158 calories. That is roughly 1 mg per calorie.
Cooked spinach delivers 158 mg per cup at approximately 41 calories. That is closer to 3.9 mg per calorie – nearly four times more efficient.
This reordering matters. If you are on a lower-calorie diet, eating your way to 420 mg via nuts and seeds alone would add 500–700 calories before you hit your target.
Adding 2 cups of cooked spinach to your day contributes over 300 mg of magnesium for under 90 calories.
Two ways to rank magnesium foods — and why the rankings shift
| # | Food | Mg |
|---|---|---|
| 1 | Hemp seeds (3 tbsp) | 210 mg |
| 2 | Cooked spinach (1 cup) | 158 mg |
| 3 | Pumpkin seeds (1 oz) | 156 mg |
| 4 | Swiss chard (1 cup) | 150 mg |
| 5 | Raw oats (1 cup) | 144 mg |
| 6 | Whole wheat flour (100g) | 138 mg |
| 7 | Lima beans (1 cup) | 126 mg |
| 8 | Quinoa (1 cup) | 118 mg |
| # | Food | Mg/100 cal |
|---|---|---|
| 1 | Cooked spinach | ~385 mg |
| 2 | Swiss chard (cooked) | ~350 mg |
| 3 | Pumpkin seeds | ~99 mg |
| 4 | Edamame | ~77 mg |
| 5 | Black beans (cooked) | ~34 mg |
| 6 | Quinoa (cooked) | ~33 mg |
| 7 | Almonds | ~28 mg |
| 8 | Dark chocolate (70%+) | ~23 mg |
Leafy greens are so low in calories that they rank first by calorie efficiency despite ranking mid-list by serving size. Nuts and seeds are calorie-dense, which drops their per-calorie ranking even when their per-serving count is high. If you are watching total calories, cooked greens are your most efficient magnesium source.
Calculations based on USDA FoodData Central data.
Spinach is the most efficient magnesium food on this entire list by a wide margin when measured per calorie. That is a fact worth building meals around.
What blocks magnesium absorption, and what helps it
Getting magnesium into your body requires two steps.
- Step one is eating the food.
- Step two is absorbing it. Approximately 30 – 40% of dietary magnesium you consume typically absorbs into your body [1].
What reduces absorption
Phytates are the main dietary obstacle.
Raw or undercooked legumes and whole grains contain phytic acid, which binds to magnesium in the gut and reduces absorption.
Soaking, sprouting, or fermenting these foods before cooking partially deactivates phytates.
Yeast-leavened whole grain bread goes through a fermentation process that naturally reduces phytate content – making whole wheat sourdough nutritionally superior to plain whole wheat bread on this metric.
Some medications, including diuretics and proton pump inhibitors (PPIs – drugs used long-term to reduce stomach acid, commonly prescribed for acid reflux), can affect magnesium status [1].
If you take either long-term, discuss magnesium monitoring with your doctor.
Alcohol reduces magnesium retention by increasing how much your body excretes in urine. This is a pattern-of-use effect, not a one-drink effect. Regular heavy alcohol consumption measurably depletes magnesium stores over time [1].
High-heat cooking in large volumes of boiling water causes magnesium to leach from vegetables into the cooking liquid. Steaming or sauteing with minimal water preserves significantly more of the mineral content.
What improves absorption
Magnesium and vitamin D have a functional relationship. Magnesium is required to convert vitamin D from its storage form (calcidiol) into its active hormone form (calcitriol) [3].
If your magnesium is low, vitamin D supplementation becomes less effective. These two nutrients depend on each other.
Foods that contain dietary fiber generally also provide magnesium, and fiber-rich diets appear to support better mineral absorption [1].
Prebiotic fibers – found in garlic, onions, asparagus, and legumes – may specifically support magnesium retention by improving colon health, since a portion of magnesium absorption occurs in the large intestine.
Bioavailability (= how much of a nutrient your body actually absorbs and uses) is also influenced by how dissolved a mineral is.
Liquid-rich foods like cooked greens and soups with beans deliver magnesium in a more accessible form than dry, densely packed snacks.
For people who eat a magnesium-rich diet but still test low, absorption pathway diversity is often the issue. Magnesium glycinate absorbs through a different mechanism than magnesium malate or magnesium taurate. Multi-form magnesium supplements – such as Magnesium Breakthrough by BiOptimizers, which combines seven distinct forms – are designed around this principle. Whether food or supplement is the right tool depends on your situation, but understanding why forms differ is useful regardless.
What affects how much magnesium you actually absorb
Sources: NIH Office of Dietary Supplements; Harvard T.H. Chan School of Public Health — The Nutrition Source
Signs you may not be getting enough magnesium
Early symptoms of magnesium deficiency include loss of appetite, nausea, vomiting, fatigue, and weakness. As deficiency worsens, symptoms can include numbness, tingling, muscle cramps, seizures, personality changes, and abnormal heart rhythms [1].
The challenge with mild deficiency is that these symptoms are nonspecific. Fatigue, irritability, poor sleep, and muscle cramps each have dozens of possible causes.
Magnesium is one of them and often the last one considered. Persistent muscle twitching at night – particularly in the calf or foot – is one of the more distinctive low-magnesium symptoms worth acting on before assuming a more complicated cause.
Identifying magnesium deficiency is not straightforward because serum magnesium (the amount of magnesium measured in the liquid portion of your blood) does not accurately reflect what is happening inside your cells, where most of the body’s magnesium lives.
Because serum magnesium does not reflect intracellular magnesium, the latter making up more than 99% of total body magnesium, most cases of magnesium deficiency go undiagnosed [5].
A standard blood test can come back normal even when cellular stores are low. Doctors who suspect chronic low-grade deficiency sometimes use red blood cell (RBC) magnesium tests for a more accurate picture.
Groups more likely to get too little magnesium include people with gastrointestinal diseases such as Crohn’s disease and celiac disease, people with type 2 diabetes, older adults, and those with long-term alcohol dependency. Adult men age 71 and older and adolescent males and females are most likely to have low intakes [1].
Common signs of low magnesium
These symptoms are nonspecific — each has many possible causes. A blood test (serum or RBC magnesium) is the only way to confirm low magnesium levels. Do not self-diagnose based on symptoms alone.
Source: NIH Office of Dietary Supplements — Magnesium Fact Sheet for Health Professionals
What magnesium actually does in your body
Knowing the functions changes how seriously you take the food list. This is not “eat this nutrient and feel vaguely healthier.” The evidence for magnesium’s role in specific health outcomes is more concrete than most people realize.
Bone health
More than half of the magnesium in your body is stored in bone [1]. It plays a direct structural role in bone matrix and regulates parathyroid hormone, which controls calcium levels [3].
Bone health recommendations that focus only on calcium and vitamin D are incomplete. Magnesium is a third variable that determines how well those two nutrients function.
Cardiovascular risk
Forty prospective cohort studies totaling more than 1 million participants were included in a dose-response meta-analysis. Follow-up periods ranged from 4 to 30 years. Each 100 mg/day increment in magnesium intake was associated with a 22% reduction in heart failure risk and a 7% reduction in stroke risk [4].
These are population-level associations from observational data, not controlled trials, so they show correlation rather than confirmed causation. That said, the consistency across more than a million participants across decades of follow-up is difficult to dismiss.
Type 2 diabetes
The same meta-analysis found that each 100 mg/day increase in magnesium intake corresponded to a roughly 19% lower risk of type 2 diabetes [4].
People with higher dietary magnesium tend to have lower risk of developing the condition. Magnesium helps your body process blood sugar and may reduce the risk of insulin resistance [3].
Blood pressure
Magnesium is an electrical conductor in the body. It relaxes smooth muscle cells in arterial walls, reducing the pressure blood exerts as it moves through your vessels – a process called vasodilation (the widening of blood vessels to reduce flow resistance).
Some studies show that people with higher dietary magnesium have a lower risk of certain types of heart disease and stroke, though supplement trials show only modest blood pressure reductions. [3]
Sleep
Magnesium’s role in sleep is more indirect than supplement marketing suggests, but it is real. Magnesium regulates neurotransmitter activity and is required for the synthesis of melatonin’s precursors.
It also suppresses the activity of NMDA receptors (nerve cell receptors that, when overstimulated, keep the brain in a state of excitation rather than relaxation).
One animal study found magnesium glycinate’s relaxing potential significant for sleep quality, but no human studies currently replicate those findings at the same level [3].
Getting adequate dietary magnesium associates with better sleep quality at the population level – and no study suggests magnesium-rich food hurts sleep.
Among supplement users specifically seeking sleep support, magnesium glycinate is the most commonly cited form – partly because of its lower laxative effect and partly because glycine itself has evidence as a sleep-supporting amino acid. Magnesium Breakthrough by BiOptimizers includes glycinate alongside six other forms, which is why it appears frequently in discussions of magnesium for sleep on forums like r/supplements. Whether it outperforms single-form glycinate supplements for sleep specifically has not been tested head-to-head in published trials.
How to hit your magnesium RDA in one day: a sample meal plan
Every other article on this topic gives you a list and leaves you to figure out the math. This section does the math.
The target below is approximately 420 mg of magnesium from food. Because only 30–40% of food magnesium absorbs, eating to the DV is the right strategy.
You do not need to calculate your absorbed dose; the DV already accounts for typical absorption rates [1].
“Can I actually hit 420 mg on a regular day without it feeling deliberate?” Yes — and the plan below shows how, without exotic foods or excessive calories.
How to hit your magnesium RDA in one day
Target: 420 mg Daily Value. This plan reaches ~652 mg to account for the 30–40% absorption rate.
| Meal | Foods included | Est. Mg | Running total |
|---|---|---|---|
| Breakfast | 1/2 cup dry rolled oats + 1 tbsp chia seeds + 1 large banana | ~109 mg | |
| Lunch | 2 cups spinach sauteed + 1/2 cup black beans + 1 oz pumpkin seeds + 1/4 avocado | ~246 mg | |
| Snack | 1 oz dark chocolate (70%+) + 1 oz almonds | ~145 mg | |
| Dinner | 3 oz cooked salmon + 1/2 cup cooked quinoa + 1/2 cup cooked lima beans | ~152 mg | |
| Day total — 155% of the 420 mg Daily Value | ~652 mg | ||
Adapt this plan for your diet
Plant-based substitutions
Lower-carb substitutions
Nut-free substitutions
Magnesium values are estimates based on USDA FoodData Central averages. Actual absorption varies by individual gut health, cooking method, and phytate intake.
Source: USDA FoodData Central
This plan runs to approximately 1,500–1,600 calories for the food items shown, fitting easily into a standard 2,000-calorie day. Targeting above 420 mg is intentional: given that absorption runs at 30–40%, aiming for 550–650 mg from food daily is a reasonable strategy for most adults.
Adapting for specific diets:
- For a plant-based approach, this plan already works almost unchanged. Replace salmon with 1/2 cup cooked edamame or an extra serving of lentils and magnesium remains high.
- For a lower-carbohydrate approach, remove the oats and quinoa. Replace with an extra tablespoon of hemp seeds in the morning (~21 mg), two additional cups of sauteed leafy greens at lunch (~150 mg), and a side of pumpkin seeds with dinner (~156 mg). The magnesium numbers hold up.
- For nut and seed allergies, lean harder on cooked greens and legumes. Two cups of cooked spinach at lunch plus one cup of cooked lima beans at dinner gives you over 280 mg from just those two items.
When does a supplement actually make sense?
Higher dietary magnesium consistently associates with reduced risk of stroke, heart failure, diabetes, and all-cause mortality across large observational studies [4].
The evidence for these outcomes points primarily to dietary magnesium rather than supplemental magnesium – a distinction worth taking seriously.
Whole foods high in magnesium also carry fiber, potassium, antioxidants, and phytonutrients that work together. In many studies of dietary magnesium and disease outcomes, isolating how much of the protective effect comes from magnesium specifically versus the broader food matrix proves difficult [3]. A supplement delivers only the isolated mineral.
Three situations genuinely justify supplementation: confirmed deficiency via bloodwork (serum or RBC magnesium below reference range);
- GI conditions that impair absorption such as Crohn’s disease,
- celiac disease, or short bowel syndrome; and
- long-term use of PPIs or loop diuretics, both of which deplete magnesium stores regardless of dietary intake [1].
On magnesium supplement forms, the aspartate, citrate, lactate, and chloride forms of magnesium tend to have higher bioavailability than magnesium oxide and magnesium sulfate [1].
Magnesium glycinate is the least likely form to cause GI side effects, which matters for anyone who has experienced digestive discomfort from other forms.
Magnesium citrate absorbs well but has a known laxative effect at higher doses. Magnesium oxide is inexpensive and widely available, but its bioavailability runs substantially lower than citrate, glycinate or other magnesium forms.
(Ed. note: If you are considering a supplement, discuss it with your doctor before starting – particularly if you have kidney disease, since the kidneys handle magnesium excretion and impaired kidney function changes the safety profile significantly.)
The default recommendation is food first, supplement only when diet-based strategies are insufficient or a clinical condition makes absorption unreliable.
Frequently Asked Questions
Citations
- [1] NIH Office of Dietary Supplements — “Magnesium: Fact Sheet for Health Professionals” — Updated 2025
- [2] USDA FoodData Central — FoodData Central Search — Release 2024. All mg-per-serving figures sourced directly from FoodData Central unless otherwise noted.
- [3] Harvard T.H. Chan School of Public Health — “Magnesium,” The Nutrition Source — 2024
- [4] Fang X, Wang K, Han D, 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 Medicine, December 2016. DOI: 10.1186/s12916-016-0742-z
- [5] DiNicolantonio JJ, O’Keefe JH, Wilson W — “Subclinical magnesium deficiency: a principal driver of cardiovascular disease and a public health crisis” — Open Heart, January 2018. DOI: 10.1136/openhrt-2017-000668. Note: a minor correction was published April 2018; the core findings remain unchanged.
Limitations: Magnesium content in food varies by growing conditions, soil quality, processing method, and cooking technique. All mg figures are database averages. Individual absorption varies based on gut health, medication use, phytate intake, and vitamin D status. This article is for educational purposes. Consult a registered dietitian or physician before making significant dietary changes to address a suspected deficiency.
