The 12 best magnesium-rich foods, ranked by mg per 100g
Magnesium hides in plain sight — it's the mineral most of us are quietly short on (roughly half of adults don't hit the target), and it's crucial for more than 300 reactions in your body. From making energy to relaxing muscles and helping you sleep. The richest sources are pumpkin seeds (592 mg per 100g), cocoa powder (499 mg), flaxseeds (392 mg), Brazil nuts (376 mg), and dark chocolate (228 mg).
Per realistic serving, a handful of pumpkin seeds, a bowl of cooked spinach, or a cup of black beans are the easy wins — and yes, dark chocolate genuinely counts.
Daily magnesium requirements
The RDA is 400–420 mg/day for men and 310–320 mg/day for women (the higher figure applies from age 31). Pregnancy nudges it up to ~350 mg. Here's the catch: surveys consistently show around half of adults fall short — partly because refining grains strips away up to 80% of their magnesium, and partly because modern soils are simply much more depleted than they were a century ago.
Daily magnesium requirement (mg/day)
Source: U.S. Institute of Medicine (DRIs). Note: the 350 mg/day Tolerable Upper Intake Level applies only to supplemental magnesium — food magnesium has no upper limit because healthy kidneys excrete the excess.
Magnesium content per serving: what real portions actually deliver
Per 100g is the lab reference, but you eat a 30g handful of seeds, not a full cup. The chart below shows magnesium per realistic serving, as a percentage of the daily target — just toggle between Women and Men.
Everyday foods that contribute magnesium (for reference)
You don't have to live on seeds. Plenty of everyday foods chip in meaningful magnesium across the day — here's how some common foods stack up per realistic portion for reference.
The 12 best magnesium-rich foods (per 100g)
All values are per 100g, sourced from USDA FoodData Central. The reference RDA is 320 mg/day for women and 420 mg/day for men.
-
1Pumpkin seeds (kernels)592 mgThe runaway leader — and a genuine snack, not a sprinkle. Pumpkin seeds are also top-tier for zinc and iron, making them one of the most efficient mineral foods you can keep in a jar. Daily intake~54g (~1/3 cup) for 320 mg. A realistic 30g handful delivers ~178 mg — over half a woman's daily target in one snack! Buy raw or dry-roasted, not the heavily salted kind.
-
2Cocoa powder (unsweetened)499 mgNot a serving-size food — you use a tablespoon at a time. But it explains why dark chocolate is such a good source of magnesium. Daily intake~64g (~6 tablespoons) for 320 mg. A tablespoon in your morning oats or a hot cocoa adds ~50 mg which is ~16% of daily needs with real flavour.
-
3Flaxseeds392 mgBest used as ground for maximum absorption. A tablespoon stirred into yogurt, smoothies, or porridge brings magnesium plus omega-3 ALA and fibre. Daily intake~82g for 320 mg. A 15g tablespoon delivers ~59 mg (~18%) — an easy daily add that does triple duty for magnesium, fibre, and omega-3.
-
4Brazil nuts376 mgFamous for selenium — and that's exactly the catch. A single Brazil nut already delivers ~70–90 mcg of selenium, more than a full day's target. Chronic excess of selenium (above the 400 mcg/day upper limit) can cause selenosis: brittle nails, hair loss and gastrointestinal upset. Daily intakeStick to 1–2 nuts a day, which gives ~19–38 mg of magnesium (about 6–12% of a woman's RDA). Useful as a small ritual, but lean on seeds and greens for the bulk of your magnesium — not Brazil nuts.
-
5Sesame seeds (whole)351 mgSprinkle sesame on stir-fries and salads, or eat as tahini. Whole seeds beat tahini slightly because the hull holds extra minerals. Daily intake~91g for 320 mg — far more than you'd sprinkle. A 15g tablespoon (or tahini in hummus) gives ~53 mg (~16%), plus calcium and copper.
-
6Chia seeds335 mgA tablespoon swells into a gel that thickens puddings and smoothies. Chia seeds contain magnesium plus they are loaded with fibre and omega-3. Daily intake~96g for 320 mg. A 15g tablespoon delivers ~50 mg (~16%). A chia pudding made with 2–3 tablespoons becomes a genuinely meaningful magnesium breakfast.
-
7Sunflower seeds (kernels)325 mgCheaper than most nuts and just as useful for magnesium. Great on salads, in trail mix, or as sunflower butter. Daily intake~98g for 320 mg. A 30g handful delivers ~98 mg (~31%) — one of the best value-for-money magnesium snacks around.
-
8Cashews292 mgCreamy and versatile — a snack, a sauce base (soaked and blended), or the protein in plant-based "cheese". Daily intake~110g for 320 mg. A 30g handful (~18 cashews) covers ~27% of daily needs.
-
9Almonds270 mgThe everyday all-rounder — magnesium, vitamin E, protein, healthy fats. A handful a day is one of the simplest nutrition upgrades there is. Daily intake~119g for 320 mg. A 30g handful (~24 almonds) delivers ~81 mg (~25%). Almond butter on whole-grain toast is a magnesium-rich combo.
-
10Dark chocolate (70–85%)228 mgYes, really — and one of the most enjoyable ways to add magnesium. Some researchers even speculate that chocolate cravings may partly reflect the body chasing magnesium (a fun theory, not proven). Daily intake~140g for 320 mg — that's too much sugar daily. A 30g portion (2–3 squares) delivers ~68 mg (~21%) without overdoing it. The darker the bar, the more magnesium it has.
-
11Oats (rolled, dry)177 mgA whole grain that keeps its bran and germ — which is exactly where the magnesium lives. A daily bowl is an effortless contributor. Daily intake~181g dry for 320 mg. A typical 40g bowl delivers ~71 mg (~22%) — top it with seeds and you've covered a third of the day before you leave the house.
-
12Spinach (cooked)87 mgLower per 100g than seeds, but you eat real volumes. Daily intake~368g cooked for 320 mg. A realistic 180g cooked portion (a big handful of wilted spinach) delivers ~157 mg — almost 50% of women's daily needs from one side dish.
Magnesium content comparison — per 100g
The chlorophyll and magnesium connection: why greens count
Magnesium is the atom at the dead centre of every chlorophyll molecule — the green pigment that lets plants turn sunlight into energy. It's a neat mirror of our own bodies, where iron sits at the centre of haemoglobin and makes our blood red. In plants, magnesium sits at the centre of chlorophyll and makes leaves green.
The practical upshot: if it's deeply green, it has magnesium. Spinach, Swiss chard, kale, and other leafy greens are reliable sources — and cooking them down concentrates the magnesium into a manageable portion (a huge bag of raw spinach wilts into a few forkfuls). It's also why a green smoothie is a stealthy magnesium delivery system.
One caveat that applies to greens, seeds, and whole grains alike: they contain phytate and oxalate, which modestly reduce mineral absorption. Magnesium is less affected than zinc or iron, but the same fixes help — soaking and sprouting seeds, and not boiling vegetables in lots of water you then pour away (magnesium is water-soluble and leaches out, just like potassium).
Sleep, cramps, migraines: what magnesium actually does
Magnesium is often called "the relaxation mineral," and there's real biology behind the nickname — it helps muscles relax (calcium contracts them, magnesium lets them release) and calms nerve signalling. Here's where the evidence is genuinely solid versus merely popular:
- Migraines — good evidence. The American Headache Society rates magnesium (300–600 mg/day) as a "Level B" option for migraine prevention. Many neurologists suggest it as a low-risk first try.
- Sleep — promising, strongest in deficient or older people. Magnesium supports the calming neurotransmitter GABA, and trials show modest improvements in sleep quality, especially in those starting out low. Magnesium glycinate before bed is the common recommendation.
- Muscle cramps — mixed. Despite huge popularity, controlled trials for nocturnal leg cramps and pregnancy cramps are inconsistent. It may help if you're genuinely deficient, but it's not a guaranteed fix.
- Blood pressure and blood sugar — modest but real. Higher magnesium intake is associated with slightly lower blood pressure and reduced type-2-diabetes risk in large population studies.
- The vitamin D link. Magnesium is required to activate vitamin D in the body. Taking high-dose vitamin D without enough magnesium can actually deplete your magnesium — and since vitamin D mostly comes from sun exposure and supplements (not food), people topping up with D in winter especially need to keep their magnesium intake up.
Which magnesium supplement to buy
If you do supplement, the magnesium form matters enormously — far more than for most minerals. They're not interchangeable, and the cheapest one on the shelf is usually the worst absorbed. Here is what most common forms of magnesium are good for:
- Magnesium glycinateGentle on the stomach, well absorbed, and the go-to for sleep and anxiety. The best default for most people.
- Magnesium citrateWell absorbed and mildly laxative — a good pick if you're also prone to constipation. (At higher doses it's literally used as a bowel prep.)
- Magnesium malateOften suggested for daytime energy and muscle comfort.
- Magnesium L-threonateThe only form shown to cross the blood–brain barrier well; studied for cognition and memory, though it's pricey and the evidence is early.
- Magnesium oxideCheap, common, and poorly absorbed (~4%). Fine as an occasional laxative, but a weak choice for correcting deficiency.
- Epsom salts (magnesium sulfate)The bath kind. Relaxing, but evidence that meaningful magnesium absorbs through skin is weak. Enjoy the soak; don't count on it for your daily intake.
Deficiency signs and who's at risk
Magnesium deficiency is sneaky because the standard blood test misses it — only about 1% of your body's magnesium is in the bloodstream (most is locked in bone and cells), so serum levels can look normal while tissues run low. Watch for this cluster of signs:
- Muscle cramps, twitches, or spasms — the classic flag, especially eyelid twitches and calf cramps.
- Restless legs and poor sleep.
- Fatigue and weakness — magnesium is essential for producing usable energy (ATP only works bound to magnesium).
- Anxiety, irritability, or low mood.
- Headaches or migraines.
- Heart palpitations or irregular heartbeat.
Who's most at risk: heavy alcohol drinkers (a major cause), people with type 2 diabetes (increased urinary loss), older adults (lower absorption), anyone with Crohn's, celiac, or chronic diarrhoea, and — importantly — people on long-term proton pump inhibitors (the FDA warned in 2011 that they can lower magnesium) or diuretics (which flush it out). If several signs cluster with a risk factor, ask your doctor — and note that a normal serum magnesium result doesn't fully rule deficiency out.
Frequently asked questions
Which food has the most magnesium per 100g?
Pumpkin seeds (~592 mg) — a 30g handful covers more than half a woman's daily target. After them: cocoa powder (499 mg), flaxseeds (392 mg), and Brazil nuts (376 mg).
Which magnesium supplement is best?
Glycinate for sleep and anxiety (gentle, well absorbed), citrate if you're also constipated, malate for daytime energy. Avoid magnesium oxide for fixing deficiency — it's poorly absorbed and mainly a laxative. Stay under 350 mg/day from supplements.
What are signs of magnesium deficiency?
Muscle cramps and twitches, restless legs, fatigue, poor sleep, anxiety, headaches, and palpitations. A normal blood test doesn't rule it out, since only ~1% of body magnesium is in the blood.
Can you get too much magnesium?
Not from food — kidneys excrete the excess. From supplements, over 350 mg/day causes diarrhoea and cramping, and is risky for people with kidney disease.
Sources & references
- U.S. Department of Agriculture. FoodData Central (SR Legacy). All nutrient values per 100g.
- National Institutes of Health Office of Dietary Supplements. Magnesium: Health Professional Fact Sheet.
- Institute of Medicine. Dietary Reference Intakes for Calcium, Phosphorus, Magnesium, Vitamin D, and Fluoride.
- American Headache Society / American Academy of Neurology. Evidence-based guideline: magnesium for migraine prevention.
- U.S. Food and Drug Administration. Drug Safety Communication: low magnesium with long-term proton pump inhibitor use, 2011.
- European Food Safety Authority. EFSA Dietary Reference Values for Magnesium.
This article is for informational purposes only and is not a substitute for professional medical advice. If you suspect magnesium deficiency or take medications, consult a qualified healthcare provider before starting supplements.





