Journal
Magnesium-Rich Foods: What to Eat and How Much You Need
Most people fall short of magnesium — and if you're under chronic stress, you may need it more. Here are the everyday foods that fill the gap, and how to stack them.
The magnesium-rich foods table, at a glance
Here's where I always start with clients: not a supplement, but the plate. The foods below are ordinary, affordable and easy to build meals around. Values are per a realistic serving and drawn from the NIH Office of Dietary Supplements. Notice the pattern — seeds, nuts, leafy greens and legumes do most of the heavy lifting.
| Food | Serving | Magnesium |
|---|---|---|
| Pumpkin seeds | 1 oz (28g) | ~156mg |
| Chia seeds | 1 oz (28g) | ~111mg |
| Boiled spinach | 1/2 cup | ~78mg |
| Almonds | 1 oz (28g) | ~80mg |
| Cashews | 1 oz (28g) | ~74mg |
| Black beans | 1/2 cup cooked | ~60mg |
| Edamame | 1/2 cup cooked | ~50mg |
| Peanut butter | 2 tbsp | ~49mg |
| Dark chocolate (70%+) | 1 oz (28g) | ~65mg |
| Avocado | 1 medium | ~58mg |
| Brown rice | 1/2 cup cooked | ~42mg |
| Wholemeal bread | 2 slices | ~46mg |
If money is tight, ignore the pricey superfoods and lean on cooked leafy greens, beans and lentils — they're the most cost-effective way to load up, and they bring fibre and potassium along for the ride.
How much magnesium do you actually need?
The Recommended Dietary Allowance (RDA) is the amount that covers nearly all healthy people. In plain numbers: adult women need about 310–320mg a day, adult men about 400–420mg, and needs rise in pregnancy (roughly 350–360mg). Here's the uncomfortable part — surveys consistently show most people fall short, especially those eating a lot of refined, processed food.
| Group | Daily target (RDA) |
|---|---|
| Women 19–30 | 310mg |
| Women 31+ | 320mg |
| Pregnancy | 350–360mg |
| Men 19–30 | 400mg |
| Men 31+ | 420mg |
Why magnesium matters when you're stressed
This is the part the standard listicles skip. There's a two-way loop between magnesium and stress: chronic stress and high cortisol increase how much magnesium your body loses through urine, while low magnesium seems to amplify the stress response — a quietly self-reinforcing cycle. It's one reason I look at magnesium intake first with clients who feel wired, depleted and stuck in fight-or-flight. Topping up your intake won't switch off stress, but it removes one drag on your nervous system. It works best as part of eating to lower cortisol, rather than as a standalone fix.
Magnesium and sleep
Magnesium helps regulate the nervous system and supports the calming signals your body relies on to wind down at night, which is why it gets talked about so much for sleep. Being honest about the evidence: studies suggest a modest benefit for sleep quality, mainly in people who were low to begin with — it's not a sedative and it won't rescue poor sleep habits. If your intake is already good, more won't help. If it's low, closing the gap with food is a sensible, low-risk place to start.
Magnesium and blood sugar
Magnesium is a cofactor in how your body uses insulin, and higher intake is associated with better insulin sensitivity and steadier glucose. Low magnesium tends to travel with insulin resistance and type 2 diabetes — cause and effect run both ways. This is why it fits the same food-first playbook as steadying blood sugar generally: the very foods highest in magnesium (beans, greens, nuts, seeds) are also the ones that flatten the glucose curve.
Magnesium, muscle and cramps
The mineral helps muscles relax after they contract, so a shortfall can show up as cramps, twitches or restless legs. It's also often raised around PMS-related cramping and low mood, though the evidence there is mixed rather than definitive. A practical note: you lose magnesium in sweat, so people who train hard, sweat heavily or work in the heat need more than the baseline — another reason to keep magnesium-rich foods on the plate daily.
Signs your intake might be low
Early low intake often causes no symptoms at all, which is exactly why it's easy to miss. When signs do appear, they're usually vague and overlapping:
- Persistent fatigue and low energy
- Muscle cramps, twitches or restless legs
- Poor or restless sleep
- Low mood or feeling more frazzled than usual
- Nausea or reduced appetite (with more marked deficiency)
Some people are at higher risk of genuinely running low. Keep a closer eye if you fit any of these:
- Older adults (absorption drops, intake often falls)
- Type 2 diabetes (more is lost in urine)
- Gut conditions like Crohn's or coeliac disease that reduce absorption
- Heavy or long-term alcohol use
- Long-term use of some acid-reducing or diuretic medications
How to actually hit your target from food
Here's a realistic day that stacks to comfortably over 350mg — no supplement, no exotic ingredients, just a magnesium-rich food anchored to each meal:
| Meal | Example | Magnesium |
|---|---|---|
| Breakfast | Porridge oats with 1 tbsp chia and a handful of almonds | ~110mg |
| Lunch | Big salad with 1/2 cup black beans, spinach and avocado | ~150mg |
| Snack | 1 oz pumpkin seeds (or a square of 70%+ dark chocolate) | ~90mg |
| Dinner | Salmon with edamame, brown rice and greens | ~110mg |
| Running total | ~460mg |
You don't need to hit every food every day — the point is the pattern. Anchor a seed, nut, bean or leafy green to most meals and you'll clear the RDA without thinking about it.
Food first, supplements second
The honest bottom line: for most people, food is the better route — it's cheaper, carries no risk of overdoing it, and brings fibre, protein and other minerals along with the magnesium. A supplement can genuinely be worth discussing with a clinician if you're in a high-risk group, have a diagnosed deficiency, or truly can't meet your needs from food — but it's a conversation, not a default. And magnesium is one lever among several: sleep, movement and steady meals matter just as much. If stress is the thread pulling all of this together, start with eating to lower cortisol and let the magnesium-rich foods do their quiet work inside that bigger picture.
Frequently asked questions
What foods are highest in magnesium?
Pumpkin seeds top the list at roughly 156mg per ounce, followed by chia seeds, almonds, cashews, cooked spinach, black beans, edamame, peanut butter, dark chocolate (70%+) and avocado. Seeds, nuts, leafy greens and legumes are the richest everyday sources, and greens and beans are the most affordable way to load up.
How much magnesium do I need per day?
The RDA is about 310–320mg a day for adult women and 400–420mg for adult men, rising to roughly 350–360mg in pregnancy. Surveys show most people fall short of these targets, largely because refined and processed foods are low in magnesium.
What are the signs of low magnesium?
Early low intake often has no symptoms. When signs appear they tend to be vague — fatigue, muscle cramps or twitches, poor sleep and low mood — with nausea and reduced appetite in more marked deficiency. Older adults, people with type 2 diabetes or gut conditions, and heavy drinkers are most at risk.
Does magnesium help with stress and anxiety?
There's a two-way loop: chronic stress increases magnesium loss, and being low can amplify the stress response. Topping up your intake removes one drag on the nervous system, but the effect is modest and it won't switch off stress on its own — it works best alongside sleep, movement and steady eating.
Can magnesium help you sleep?
Possibly, but modestly. Magnesium supports the body's calming signals, and studies suggest a small benefit for sleep quality mainly in people who were low to begin with. It's not a sedative and won't fix poor sleep habits — closing a genuine dietary gap is a sensible, low-risk place to start.
Is it better to get magnesium from food or supplements?
For most people, food is the better route — it's cheaper, carries no risk of overdoing it, and brings fibre and other minerals too. A supplement can be worth discussing with a clinician if you're in a high-risk group or have a diagnosed deficiency, but it shouldn't be the default. If pregnant, breastfeeding or on medication, check first.
Sources and further reading
Evidence-based — but always confirm with your own clinician for your situation.
- Magnesium — Fact Sheet for Health Professionals (NIH Office of Dietary Supplements)
- Magnesium — Fact Sheet for Consumers (NIH Office of Dietary Supplements)
- Magnesium — The Nutrition Source (Harvard T.H. Chan School of Public Health)
- The Role of Magnesium in Neurological Disorders and Stress (review, NIH/PMC)
Work with Yamila
Ready to eat for your roots?
Book a private consultation — we'll map your history, symptoms and goals, find the root cause, and build a plan around your biology.