Micronutrients10 min read

Foods High in Magnesium: A Complete List to Fix Your Deficiency

Magnesium is involved in more biochemical processes than almost any other mineral in the human body — over 700 enzyme reactions depend on it, touching everything from DNA synthesis and energy production to muscle contraction, nerve signaling, blood sugar regulation, and heart rhythm. It is one of the most metabolically important minerals you can eat.

It is also the one most adults consistently under-consume. Large population surveys consistently show that a majority of adults in developed countries fall below the Recommended Dietary Allowance for magnesium. The causes include food processing (which strips magnesium from whole grains), lower magnesium content in modern soils affecting produce, high rates of alcohol consumption and stress (both of which increase urinary magnesium excretion), and diets heavy in ultra-processed foods.

The good news is that increasing magnesium through food is both practical and effective. This guide gives you the complete, ranked list of magnesium-rich foods with specific amounts per serving, plus the practical strategies to actually absorb and retain what you eat. For background on what magnesium deficiency looks like and its symptoms, see our companion post on signs of magnesium deficiency.

How Much Magnesium Do You Need?

The Recommended Dietary Allowance (RDA) for magnesium is:

  • Men aged 19–30: 400 mg/day
  • Men aged 31+: 420 mg/day
  • Women aged 19–30: 310 mg/day
  • Women aged 31+: 320 mg/day
  • Pregnant women: 350–360 mg/day

The average adult in many Western countries consumes only around 230–270 mg per day — well below these targets. Achieving the RDA through diet alone is entirely possible, but it requires consistently including magnesium-rich foods rather than relying on a typical processed-food-heavy diet.

Top Foods High in Magnesium

The following table ranks the best dietary sources of magnesium by their content per standard serving. Seeds, legumes, leafy greens, nuts, and dark chocolate dominate the list.

Food Serving Size Magnesium (mg) % RDA (Adult)
Pumpkin seeds (roasted) 28g (1 oz) 156 mg 37–49%
Chia seeds 28g (1 oz) 111 mg 26–35%
Dark chocolate (70–85%) 28g (1 oz) 64 mg 15–20%
Almonds 28g (1 oz) 77 mg 18–24%
Spinach (cooked) 180g (1 cup) 157 mg 37–50%
Cashews 28g (1 oz) 74 mg 18–23%
Black beans (cooked) 172g (1 cup) 120 mg 29–38%
Edamame (cooked) 155g (1 cup) 99 mg 24–31%
Tofu (firm) 126g (½ cup) 73 mg 17–23%
Avocado 1 medium (200g) 58 mg 14–18%
Brown rice (cooked) 202g (1 cup) 84 mg 20–26%
Salmon (cooked) 178g (half fillet) 53 mg 13–17%
Peanut butter 32g (2 tbsp) 49 mg 12–15%
Whole wheat bread 1 slice (28g) 23 mg 5–7%
Banana 1 medium (118g) 32 mg 8–10%
Kidney beans (cooked) 177g (1 cup) 74 mg 18–23%
Oats (cooked) 234g (1 cup) 63 mg 15–20%

Notice that cooked spinach is one of the single best sources — a single cup of cooked spinach delivers roughly 40–50% of the daily magnesium requirement for adults. Pumpkin seeds are similarly impressive at nearly 40% per ounce. Building a diet around these foods systematically is the most effective way to close the magnesium gap without relying on supplements.

The Standout Foods: A Deeper Look

Pumpkin Seeds and Chia Seeds

Seeds are pound-for-pound the richest magnesium source available. Pumpkin seeds (also called pepitas) are extraordinary — just a small handful delivers more magnesium than most people get from entire meals. They are easy to add to oatmeal, yogurt, salads, and soups. Chia seeds are similarly potent and have the added benefits of omega-3 fatty acids and soluble fiber for gut health. Both seeds are also high in zinc, phosphorus, and plant-based iron.

Dark Chocolate

Dark chocolate with a high cocoa content (70% or above) is one of the more enjoyable ways to improve magnesium intake. A 28g serving provides around 64 mg — approximately 15–20% of the daily requirement. The magnesium in cocoa is also reasonably well-absorbed. The caveat is that most commercially available chocolate bars contain far less cocoa than raw dark chocolate — check the label for cocoa percentage.

Leafy Greens: Spinach, Swiss Chard, and Kale

Cooked leafy greens are rich in magnesium because cooking concentrates the leaves — you can easily eat a cup of cooked spinach that started as several cups of raw. Swiss chard and kale are also strong sources. The magnesium in leafy greens is accompanied by vitamin K, folate, and lutein — a combination that supports bone health, cardiovascular health, and brain function simultaneously.

Legumes: Black Beans, Edamame, Kidney Beans

Legumes are one of the most reliable, affordable magnesium sources in everyday cooking. Black beans, edamame, kidney beans, chickpeas, and lentils all deliver meaningful amounts per serving. Legumes also provide prebiotic fiber that supports the gut microbiome — see our post on best foods for gut health for more on this connection. Eating legumes four or more times per week meaningfully improves overall magnesium status across the week.

Nuts: Almonds and Cashews

A handful of almonds or cashews (about 28g) provides 15–24% of the daily magnesium requirement. Nuts are calorie-dense, so portion awareness matters if you are managing overall energy intake, but the nutritional density per calorie is genuinely excellent. Nut butter (almond butter, peanut butter) provides similar magnesium per serving with more versatility as a spread or ingredient.

How to Maximize Magnesium Absorption from Food

Eating magnesium-rich foods is only part of the equation. Absorption is significantly affected by other dietary and lifestyle factors.

Vitamin D Improves Magnesium Absorption

Vitamin D increases the intestinal absorption of magnesium. People who are deficient in vitamin D often show impaired magnesium absorption even when dietary intake is adequate. This is one reason that addressing vitamin D deficiency often secondarily improves magnesium status. See our post on vitamin D deficiency symptoms for more on this important relationship.

Reduce Alcohol and Processed Food

Alcohol significantly increases urinary magnesium excretion — the kidneys flush out more magnesium when alcohol is present. Ultra-processed foods are not only low in magnesium themselves but often contain phosphates and additives that reduce magnesium absorption. Reducing both simultaneously increases your effective magnesium retention from food.

Phytate and Oxalate: Limited Concern in Practice

Phytates in grains and legumes bind magnesium and reduce absorption. This is real but often overstated — soaking, sprouting, and cooking legumes substantially reduces phytate content, and the overall magnesium delivered by legumes even accounting for reduced absorption is still significant. Oxalates in spinach do bind some of the magnesium, but the amount of magnesium in cooked spinach is large enough that even with reduced absorption it remains an excellent source. Eating a variety of magnesium sources throughout the day eliminates any practical concern about phytate or oxalate competition.

Cooking Method: Steam or Roast, Don't Boil in Excess Water

Magnesium is water-soluble, meaning it leaches into cooking water when vegetables are boiled. A study on mineral losses in vegetables found that boiling can reduce magnesium content by 40–50% compared to steaming or roasting. For leafy greens and vegetables, steaming or sautéing in a small amount of water preserves significantly more magnesium than boiling in a large pot. Roasting nuts and seeds (at moderate temperature) does not meaningfully affect their magnesium content.

Can You Get Enough Magnesium from Food Alone?

Yes — the RDA for magnesium is achievable through diet for most people who consistently include magnesium-rich foods. A day that includes a cup of cooked spinach (157 mg), a handful of pumpkin seeds (156 mg), and a serving of black beans (120 mg) already provides 433 mg before accounting for any other food — well above the daily requirement.

The challenge is consistency. Most people do not eat these foods daily, and the average Western diet (high in processed foods, refined grains, and animal protein without the magnesium-dense plant foods) delivers far less magnesium than even a moderate plant-forward diet.

Magnesium Supplements: When Food Is Not Enough

When dietary magnesium is consistently insufficient, supplementation is a practical and generally safe option. Not all forms of supplemental magnesium are equivalent.

  • Magnesium glycinate — highly bioavailable, gentle on the digestive system, well-tolerated at higher doses; generally considered the best form for correcting deficiency
  • Magnesium citrate — good bioavailability, mildly laxative; useful for constipation but may cause loose stools at higher doses
  • Magnesium malate — good bioavailability, often used for energy and muscle function support
  • Magnesium oxide — poor bioavailability (only about 4% absorbed); common in cheap supplements and not recommended for correcting deficiency
  • Magnesium threonate — emerging evidence for crossing the blood-brain barrier; used for cognitive and sleep applications

A typical supplemental dose for correcting deficiency is 200–400 mg elemental magnesium per day. Always check with a healthcare provider before supplementing, particularly if you have kidney disease (kidneys regulate magnesium excretion). For a full guide on tracking your electrolyte intake including magnesium, see our post on electrolytes and why they matter.

Building a Magnesium-Rich Daily Eating Pattern

The most practical approach is to anchor magnesium-rich foods into your daily routine rather than consciously tracking every meal. Here are a few simple high-impact habits:

  • Add seeds to breakfast — chia seeds or pumpkin seeds in oatmeal, yogurt, or a smoothie easily adds 100–150 mg before 9am
  • Eat legumes 4–5 times per week — beans in salads, soups, curries, and as side dishes is the highest-leverage dietary shift for overall magnesium status
  • Choose cooked leafy greens as a regular side — spinach, Swiss chard, or kale sautéed with olive oil and garlic is one of the most magnesium-dense side dishes possible
  • Snack on nuts instead of processed snacks — almonds, cashews, or a tablespoon of almond butter replace nutrient-empty snacks with a meaningful magnesium contribution
  • Choose whole grains over refined grains — the refining process removes approximately 80% of magnesium from wheat; choosing brown rice, whole wheat, and oats over their refined counterparts makes a substantial difference

For more guidance on tracking your micronutrients systematically, see our guide on how to track micronutrients.

Frequently Asked Questions

How much magnesium do I need per day?

The Recommended Dietary Allowance for magnesium is 400–420 mg per day for adult men and 310–320 mg per day for adult women. Pregnant women need slightly more (350–360 mg). Most adults in Western countries consume significantly less than this — surveys suggest average intake is around 230–270 mg per day. Consistently including seeds, leafy greens, legumes, and nuts in your diet is the most reliable way to meet the RDA without supplements.

Can you get enough magnesium from food alone?

Yes, absolutely. The daily requirement for magnesium is achievable through food for most people who include magnesium-rich foods regularly. A single cup of cooked spinach provides about 40–50% of the daily requirement, and adding pumpkin seeds, legumes, or almonds on the same day easily covers the full RDA. The challenge is not that food sources are insufficient — it is that most people's diets are low in the plant foods where magnesium is concentrated. Dietary change is the most sustainable long-term solution; supplements are useful when dietary change is not enough or during periods of higher demand.

Which form of magnesium supplement is best?

Magnesium glycinate is generally considered the best form for correcting deficiency — it has high bioavailability, is well-tolerated, and is unlikely to cause digestive side effects at standard doses. Magnesium citrate is also well-absorbed and useful if you additionally want a mild laxative effect. Avoid magnesium oxide, which is commonly found in cheap supplements but is poorly absorbed (approximately 4% bioavailability). If you are specifically targeting sleep or brain health, magnesium threonate is showing promising early evidence for central nervous system effects, though it is more expensive. Always aim to meet as much of your magnesium requirement from food as possible, with supplements filling the remaining gap.

Know Exactly How Much Magnesium You're Eating with Acai

Knowing which foods are high in magnesium is the starting point — but knowing whether your actual daily meals are consistently delivering enough is where Acai comes in. Acai tracks 245 micronutrients including magnesium from a single photo of your meal, and the weekly deficiency dashboard shows you your magnesium intake patterns over the full week so you can see at a glance whether you are hitting your targets or falling short.

Download Acai on the App Store or get it on Google Play and track your magnesium alongside 244 other nutrients — from a single food photo.

Track every macro and micronutrient with one photo.

Acai shows you 245 micronutrients from a single food photo — not just calories. Download free today.

Related Articles