Top Magnesium-Rich Foods to Add to Your Diet
If your plan is “I’ll just eat healthier,” magnesium is one of the easiest wins you can still miss. The good news is it’s not hiding in weird foods; it’s in regular stuff you can buy anywhere. The top magnesium-rich foods include: pumpkin seeds, chia seeds, almonds, cashews, spinach, Swiss chard, black beans, lentils, edamame, dark chocolate, avocado, yogurt, and salmon.
However, the same food can feel like it works for one person and does nothing for another, depending on portion size, how often you eat it, what else is on your plate, and even how you cook it.
Here's your complete list of magnesium-rich foods with realistic serving sizes and practical tips:
Nuts & Seeds (Highest Sources)
| Food | Serving | Magnesium | How to Eat |
|
Pumpkin seeds |
28g (small handful) |
150 mg |
Roasted snack, salad topping, trail mix |
|
Flax seeds (ground) |
2 tablespoons |
110 mg |
Smoothies, yoghurt, baking (must be ground) |
|
Brazil nuts |
6-8 nuts |
105 mg |
Daily snack (2-3 for selenium), crushed on granola |
|
Chia seeds |
2 tablespoons |
95 mg |
Chia pudding, smoothies, oat topping |
|
Sunflower seeds |
28g |
90 mg |
Roasted snack, salads, seed butter |
|
Cashews |
28g |
80 mg |
Cashew butter, curries, smoothies |
|
Hemp seeds |
3 tablespoons |
80 mg |
Smoothies, salads, sauces |
|
Almonds |
28g (23 almonds) |
75 mg |
Snack, almond butter, sliced on oats |
Legumes & Grains
| Food | Serving | Magnesium | How to Eat |
| Buckwheat | 1/2 cup cooked | 85 mg | Soba noodles, pancakes, porridge |
| Millet | 1/2 cup cooked | 75 mg | Porridge, grain bowls, pilaf |
| Quinoa | 1/2 cup cooked | 60 mg | Grain bowls, salads, side dish |
| Oats | 1/2 cup dry | 60 mg | Porridge, overnight oats, smoothies |
| Black beans | 1/2 cup cooked | 60 mg | Burritos, soup, salads |
| Edamame | 1/2 cup shelled | 50 mg | Steamed with salt, stir-fries |
| Chickpeas | 1/2 cup cooked | 40 mg | Hummus, roasted snack, and curries |
| Brown rice | 1/2 cup cooked | 40 mg | Stir-fries, burrito bowls, and side dishes |
| Lentils | 1/2 cup cooked | 35-40 mg | Soup, dal, salads |
| Kidney beans | 1/2 cup cooked | 35 mg | Chilli, stews, bean salads |
| Whole wheat bread | 1 slice | 25-30 mg | Toast, sandwiches |
Leafy Greens & Vegetables
| Food | Serving |
Magnesium |
How to Eat |
| Spinach (cooked) | 1 cup | 80 mg | Sautéed, smoothies, curries |
| Swiss chard (cooked) | 1 cup | 75 mg | Sautéed with garlic, soups |
| Artichokes | 1 medium | 50 mg | Steamed with lemon butter, grilled |
| Collard greens (cooked) | 1 cup | 40 mg | Braised, wraps, soups |
| Sweet potato | 1 medium | 30 mg | Baked, mashed, roasted |
| Kale (raw) | 1 cup chopped | 25 mg | Massaged salads, smoothies, baked chips |
| Brussels sprouts | 1/2 cup cooked | 15 mg | Roasted, sautéed |
| Arugula | 1 cup raw | 15 mg | Salads, pizza toppings, pesto |
| Broccoli | 1/2 cup cooked | 10 mg | Steamed, roasted, stir-fries |
Seafood & Animal Foods
|
Food |
Serving |
Magnesium |
How to Eat |
|
Halibut |
100g fillet |
90 mg |
Pan-seared, baked, fish tacos |
|
Mackerel |
100g fillet |
80 mg |
Grilled, smoked, canned |
|
Salmon |
100g fillet |
30 mg |
Grilled, baked, smoked |
|
Turkey |
100g |
30 mg |
Roasted, ground, deli slices |
|
Chicken breast |
100g |
25 mg |
Grilled, baked, stir-fries |
|
Beef |
100g |
20 mg |
Steaks, mince, stews |
Fruits & Other Foods
|
Food |
Serving |
Magnesium |
How to Eat |
|
Dark chocolate (70-85%) |
28g (1 ounce) |
60-95 mg |
Dessert, melted over fruit |
|
Cocoa powder |
1-2 tablespoons |
25-50 mg |
Smoothies, hot chocolate, baking |
|
Avocado |
1/2 avocado |
30 mg |
Toast, salads, guacamole |
|
Banana |
1 medium |
30 mg |
Snacks, smoothies, on oats |
|
Figs (dried) |
40g (3-4 figs) |
25 mg |
Snacks, salads |
Note: Cooking leafy greens concentrates their magnesium content because they wilt down significantly. One cup of cooked spinach provides much more magnesium than one cup of raw spinach.
Why "I Eat Healthy" Still Can Miss Magnesium?
Magnesium has a lot of benefits, but even with a clean diet, you can still fall short on magnesium, and I see this happen for a few very normal reasons. For starters, modern farming practices have depleted soil quality over the past 50–70 years.
That means the produce you buy today can contain less magnesium than the same foods did decades ago, even if you’re eating “healthy.”
Another common one is refined grains. Refined grains lose 75–90% of their magnesium during processing, so if your diet relies on white rice, white bread, and regular pasta instead of whole grains, you may be missing a major magnesium source without realizing it.
I also notice people accidentally create an imbalance when calcium intake is high, but magnesium is low. Many people focus on calcium for bone health through dairy, fortified foods, and supplements, but neglect magnesium.
Too much calcium relative to magnesium can interfere with absorption.
Then there’s lifestyle. Stress and exercise increase your magnesium needs. If you're training hard, chronically stressed, or drinking alcohol regularly, your body burns through magnesium faster than someone living a lower-demand lifestyle.
Also read: Signs of Magnesium Deficiency in the Body
Finally, a lot of common “health foods” don’t help much here. Chicken breast, egg whites, protein shakes, and low-fat yoghurt are all nutritious, but they don't contribute meaningful amounts of magnesium. If these foods dominate your meals, you might be protein-rich but mineral-poor.
Before the Food List: How to Read Magnesium Amounts
Daily Targets (Simple Range, Not a Math Class)
Most adults do well with 7-10 mg of magnesium per kg of body weight per day.
Practical targets by bodyweight:
- 60 kg person: 420-600 mg/day
- 75 kg person: 525-750 mg/day
- 90 kg person: 630-900 mg/day
-
100 kg person: 700-1,000 mg/day
If you're healthy with no obvious issues, aim for the lower end (7 mg/kg). If you're experiencing symptoms, training hard, or under significant stress, aim for the higher end (10 mg/kg).
Individual needs vary based on stress levels, training volume, and health status. For specific guidance, see our magnesium dosage article.
"Per 100g" Numbers Can Trick You; Use Portions Instead
Food databases list magnesium "per 100g," but nobody eats that way.
Examples:
Cocoa powder: 430 mg per 100g sounds incredible, but 100g is 3/4 cup of pure cocoa. A realistic serving (1-2 tablespoons) gives you 25-50 mg.
Chia seeds: 335 mg per 100g, but 100g is 2/3 cup. Most people use 1-2 tablespoons (50-100 mg).
Pumpkin seeds: 550 mg per 100g, but a typical snack is 28g (150 mg).
In this guide, we use realistic serving sizes you'll actually eat.
Common Mistakes That Quietly Sabotage Magnesium Intake
Rely on One "Superfood" and Quit After 3 Days
This is one of the most common patterns we see: someone learns that pumpkin seeds are high in magnesium, goes all-in for a few days, then gets sick of them and drops the whole idea.
The issue isn’t pumpkin seeds. It’s the “one food will save me” mindset. Magnesium intake is a weekly habit, and when your strategy depends on a single food, you’ve basically built your plan on boredom.
The moment taste fatigue hits, consistency collapses.
It also quietly creates a nutrition blind spot. Even if you do stick with one magnesium-rich food, you’re missing the wider range of nutrients you’d get from rotating sources.
Different foods bring different co-factors: fibre, potassium, B vitamins, healthy fats, that support digestion, energy, and overall mineral balance.
The fix: Rotate your magnesium sources so you don’t burn out. Think in categories: nuts and seeds, leafy greens, legumes, whole grains, and dark chocolate.
Build a system where you can swap one source for another without having to “restart” your diet every week. You’ll stay consistent longer, and your overall nutrient intake will be stronger.
Choose Ultra-Processed “Health” Foods That Crowd Out Real Food
A lot of people don’t realize they’re doing this because the packaging makes it feel like a responsible choice. Protein bars, meal replacement shakes, flavoured yoghurts, cereal “high in vitamins,” even “fitness” snacks, some of these are fortified, yes.
But the bigger problem is what they replace. When these become daily staples, they crowd out the foods that naturally carry magnesium in a form that comes with fibre, water, and a much richer nutrient profile.
The second issue is that “fortified” doesn’t always mean “absorbed.” If your overall diet is low in fibre, short on real meals, and heavy in additives or sugar alcohols, your digestion can get messy fast.
Digestion is very important here because magnesium is one of those nutrients where your gut environment plays a huge role. P
People think, “I’m taking care of magnesium,” while their day-to-day eating pattern is making it harder for their bodies to use it well.
The fix: Prioritise whole foods first. Use processed foods as backups, not daily staples. If you want something convenient, fine, but anchor your intake around real meals where magnesium is naturally present.
A bowl with beans, greens, and whole grains will do more for you long-term than relying on bars and shakes to carry the load.
Related article: Can You Take Magnesium Supplements When You're Pregnant?
Forget the Basics: Sleep, Hydration, and Enough Calories
This one is sneaky because it doesn’t appear to be a magnesium problem at first. People focus on the nutrient, but they overlook the environment in which the nutrient must operate.
If you’re under-eating, dehydrated, or sleep-deprived, your magnesium needs go up while your body becomes less efficient at recovery and regulation. It’s like trying to fix a leaky roof by repainting the ceiling. You might feel like you’re addressing the issue, but the foundation is still off.
Under-eating is especially common. When calories drop too low, magnesium intake usually drops with it because you’re simply eating less food overall.
On top of that, hard training plus low calories can raise stress hormones, increase muscle tension, and increase the feeling of “my body is running on empty.”
Hydration is very important too; magnesium works closely with electrolytes, and dehydration can throw off balance and amplify symptoms like fatigue, headaches, or cramps.
Sleep is where your body does most of its repair work. If sleep is consistently poor, the whole “supplement one thing and feel great” expectation becomes unrealistic.
The fix: Hit your calorie needs, drink enough water, and prioritise 7–8 hours of sleep. If your lifestyle is high-demand: training hard, high stress, long workdays, your magnesium plan has to match that reality.
For most people, fixing the basics makes magnesium strategies work better, not just “more.”
When Food Is Not Enough?
Sometimes diet alone doesn’t cut it, and that’s when supplementation makes sense (In some scenarios below):

The clearest example is when you have a diagnosed magnesium deficiency, or you’re noticing classic signs that match these magnesium deficiency symptoms. It is also worth considering if you’re an athlete or highly active, because training increases demand and you can burn through magnesium faster than someone with a more relaxed routine.
Supplementation is also a practical option when absorption is the real issue. If you have digestive problems that impair absorption, you can eat “all the right foods” and still fall short.
The same goes if you’re managing specific health conditions where magnesium is commonly part of the conversation, like migraines or high blood pressure.
For people on restricted diets: dairy-free, grain-free, or nut-free, it’s simply harder to hit magnesium targets consistently, because you’ve removed several of the easiest food sources.
If supplementation makes sense for you, see our guide on the best magnesium supplements or explore our magnesium powder.
For dosage guidance, see our magnesium dosage article.
Key Takeaways
If your plan is “I’ll just eat healthier,” magnesium is one of those nutrients you can still miss, even with a clean diet. In this guide, we broke down the most magnesium-rich foods (especially nuts, seeds, legumes, whole grains, and leafy greens) using realistic serving sizes, so you’re not stuck guessing from misleading “per 100g” numbers.
We also explained why magnesium intake can fall short in life, from refined grains and food choices that crowd out whole meals, to higher needs during stress or heavy training.
The goal wasn’t perfection. It was a simple, sustainable system: rotate sources, build meals that naturally add up, and use supplementation when food alone isn’t enough.
What Food Has the Most Magnesium per Serving?
Pumpkin seeds deliver around 150 mg per 28g (small handful). Dark chocolate (70-85% cocoa) comes close at 60-95 mg per ounce. Cooked spinach provides about 80 mg per cup.
But "highest per serving" isn't the only factor. A food you eat twice a week is more useful than a "superfood" you choke down once and never touch again.
How Fast Can Magnesium-Rich Foods Make a Difference?
For mild deficiency, consistently eating magnesium-rich foods can improve energy, sleep, and muscle tension within 1-2 weeks.
For severe deficiency or specific conditions like migraines, it can take 6-12 weeks of consistent intake to see meaningful changes. For more on how magnesium for sleep works, see our detailed guide.
Are Bananas a Good Magnesium Source?
Bananas contain about 30 mg per medium banana. That's modest compared to pumpkin seeds (150 mg) or almonds (75 mg).
Bananas are better known for potassium (420 mg per banana). If you like bananas, eat them. They're convenient and pair well with other magnesium-rich foods like almond butter or oats. But don't rely on them as your primary magnesium source.
Can I Get Enough Magnesium on a Dairy-Free Diet?
Yes. Dairy isn't a major magnesium source anyway (20-30 mg per serving).
If you're dairy-free, focus on:
- Nuts and seeds (pumpkin seeds, almonds, cashews)
- Leafy greens (spinach, Swiss chard)
- Beans and lentils
- Whole grains (quinoa, oats, brown rice)
- Dark chocolate
What's the Best Magnesium-Rich Breakfast That Takes Under 5 Minutes?
Overnight oats prepared the night before:
- 1/2 cup rolled oats (60 mg)
- 1 tablespoon chia seeds (50 mg)
- 1 tablespoon almond butter (25 mg)
- 1/2 sliced banana (15 mg)
Total: ~150 mg in under 5 minutes.
Alternatively, a smoothie with spinach (80 mg), hemp seeds (80 mg), banana (30 mg), and cocoa powder (25-50 mg) delivers 200+ mg.
Does Coffee Lower Magnesium Levels, or Is That Overstated?
It's overstated. Coffee slightly increases urinary magnesium excretion, but the effect is small.
Moderate coffee consumption (1-3 cups daily) alongside magnesium-rich meals isn't a concern for most people. If you're worried, pair your coffee with magnesium-rich foods at breakfast.
What Are the Best Magnesium-Rich Foods for Athletes?
Athletes need more magnesium due to increased sweat losses and metabolic demands. Best foods:
- Pumpkin seeds: Magnesium + zinc + iron
- Almonds: Magnesium + vitamin E + healthy fats
- Quinoa: Magnesium + complete protein + carbs
- Spinach: Magnesium + iron + nitrates
- Dark chocolate: Magnesium + flavonoids
- Bananas: Magnesium + potassium
Combine these with adequate hydration, protein, and carbohydrates.
Can Magnesium-Rich Foods Help Constipation?
Some magnesium-rich foods help through multiple mechanisms:
- Beans and lentils: Magnesium + fibre
- Flax seeds: Magnesium + fibre + omega-3s (must be ground)
- Chia seeds: Absorb water and add bulk
- Leafy greens: Magnesium + fibre + water content
- Oats: Soluble fibre + magnesium
For persistent constipation, magnesium supplements (citrate or oxide) have a more direct laxative effect. See our magnesium side effects article.
What Foods Pair Well With Magnesium for Muscle Recovery?
Pair magnesium-rich foods with:
Protein (muscle repair):
- Almonds + Greek yoghurt
- Quinoa + grilled chicken
- Spinach + eggs
Potassium (electrolyte balance):
- Banana + almond butter
- Sweet potato + black beans
- Avocado + pumpkin seeds
Omega-3s (reduces inflammation):
- Salmon + quinoa
- Flax seeds + oats
How Do I Raise Magnesium Without Raising Calories Too Much?
Focus on low-calorie, nutrient-dense options:
- Leafy greens: Spinach, Swiss chard, kale (extremely low calorie, high magnesium when cooked)
- Edamame: 120 calories per cup, 50 mg magnesium, high protein
- Pumpkin seeds (portion-controlled): 28g = 150 mg magnesium, 150 calories
- Cocoa powder: 1-2 tablespoons = 25-50 mg magnesium, 10-20 calories
- Green beans, broccoli, Brussels sprouts: Low-calorie vegetables with meaningful magnesium
Avoid relying on nuts and dark chocolate if keeping calories low.
Medical Disclaimer: This article is for informational purposes only and does not constitute medical advice. Always consult with a qualified healthcare professional before making significant dietary changes or starting any new supplement regimen, especially if you are pregnant, nursing, taking medications, or have a medical condition.






