Dataset Snapshot
- 0 plant foods with magnesium data
- Source: USDA FoodData Central
- Units: mg magnesium per 100 g
- RDA: 400–420 mg/day (men) · 310–320 mg/day (women)
🦴 Bioavailability tip
Magnesium absorption from plant foods is excellent — typically 30–40% for whole grains and legumes and up to 50–60% for magnesium-rich water. Soaking or sprouting grains and seeds reduces phytate content, improving magnesium absorption further. Unlike iron, there are no major inhibitors of magnesium absorption to worry about in a typical plant-based diet.
| # | Food | Group | Magnesium (mg/100g) | |
|---|---|---|---|---|
| Loading… | ||||
Data: USDA FoodData Central. Values in mg magnesium per 100 g. Source: USDA FDC.
Frequently Asked Questions
What plant foods are highest in magnesium?
The most magnesium-rich plant foods are seeds and nuts: pumpkin seeds (~592 mg/100g), hemp seeds (~700 mg/100g), chia seeds (~335 mg/100g), and flaxseeds (~392 mg/100g) are all exceptional. Almonds (~270 mg/100g), cashews (~292 mg/100g), and dark chocolate (~228 mg/100g) are also high. Among cooked foods, black beans (~70 mg/100g), edamame (~64 mg/100g), quinoa (~64 mg/100g), and cooked spinach (~87 mg/100g) are solid daily contributors. Use the ranking tool above to explore the full dataset.
What are the symptoms of magnesium deficiency?
Mild deficiency — which is common across the population — typically causes: muscle cramps and twitches (especially nocturnal leg cramps), fatigue, irritability, poor sleep, anxiety, and headaches. More pronounced deficiency can cause cardiac arrhythmias, tremors, and seizures. Because serum magnesium stays normal even with low tissue stores (the body pulls from bone), blood tests often miss deficiency. Red blood cell (RBC) magnesium is a more sensitive marker. A whole-food plant-based diet rich in legumes, seeds, and whole grains is one of the most effective dietary strategies for maintaining adequate magnesium status.
How much magnesium do I need per day?
The RDA is 400–420 mg/day for adult men and 310–320 mg/day for adult women (350–360 mg/day during pregnancy and lactation). Most Western adults fall below the RDA — surveys suggest 50–75% of the US population has inadequate magnesium intake. A plant-based diet centred on whole grains, legumes, seeds, nuts, and dark leafy greens reliably covers the RDA without supplementation.
Does magnesium help with sleep?
Yes — particularly for people with suboptimal magnesium status. Magnesium activates GABA receptors (the brain's main inhibitory neurotransmitter), supports the parasympathetic nervous system, and modulates melatonin synthesis. Clinical trials show magnesium supplementation improves sleep onset, duration, and subjective quality in older adults and those with insufficient intake. Food-based magnesium from seeds, nuts, and dark leafy greens throughout the day is the most sustainable strategy; magnesium glycinate taken in the evening is a popular supplement option for sleep support.
Can you get enough magnesium on a plant-based diet?
Yes — and plant-based eaters typically get more magnesium than omnivores. Whole grains, legumes, seeds, nuts, and dark leafy greens are all excellent sources, and these are the foundation of a whole-food plant-based diet. One important consideration: refined grain products have lost up to 80% of their magnesium during milling. Always choose whole grains (oats, quinoa, brown rice, whole wheat) over refined versions to preserve this nutritional advantage.
Is dark chocolate high in magnesium?
Yes — dark chocolate (70–85% cocoa) provides roughly 200–230 mg of magnesium per 100g, making it one of the most concentrated everyday food sources. A 30g square contains around 60–70 mg — about 15–17% of the daily RDA for women. Raw cacao nibs and unsweetened cocoa powder are even more concentrated. This makes dark chocolate a genuinely nutritious food when consumed in moderation, not just a treat. The higher the cocoa percentage, the more magnesium and the less sugar.
Does magnesium help with anxiety and stress?
Research supports a connection. Magnesium regulates the HPA axis (the body's primary stress-response system), blocks excitatory NMDA glutamate receptors, and enhances GABA signalling — all of which reduce neurological overactivation. Meta-analyses show supplemental magnesium produces modest improvements in mild-to-moderate anxiety, especially in people with suboptimal intake. Correcting a dietary magnesium shortfall may be the most effective first step: eating seeds, nuts, legumes, and dark leafy greens regularly provides the brain with the raw materials it needs for stress regulation.
What is the best form of magnesium supplement?
The most bioavailable and well-tolerated forms are: magnesium glycinate (bisglycinate) — the top choice for sleep, anxiety, and general deficiency correction; magnesium L-threonate — crosses the blood-brain barrier, studied for memory and cognitive benefits; magnesium citrate — well-absorbed and has a gentle laxative effect (useful for constipation). Avoid magnesium oxide — it is cheap but poorly absorbed (~4%) and essentially useless for correcting deficiency. Avoid supplementing at all if dietary intake from seeds, nuts, and whole grains is adequate.
Is magnesium good for muscle cramps?
Yes — magnesium is a natural calcium antagonist and plays a central role in muscle relaxation. When magnesium is low, calcium-mediated muscle contraction goes unchecked, leading to cramps and spasms. Clinical trials show magnesium supplementation reduces the frequency and severity of nocturnal leg cramps in pregnant women and older adults. For plant-based eaters, regular intake of pumpkin seeds, chia seeds, almonds, and cooked leafy greens provides enough magnesium to prevent most cramp-related deficiency. If cramps persist despite good dietary intake, consider blood tests and supplementation.
What is the relationship between magnesium and vitamin D?
Magnesium and vitamin D have a tightly linked co-dependency. Magnesium is required for the enzymatic activation of vitamin D — both steps: converting inactive vitamin D from sun exposure to its storage form (25-OH vitamin D) and then to its active hormonal form (1,25-dihydroxyvitamin D). Without adequate magnesium, vitamin D supplementation cannot be fully activated. Taking high-dose vitamin D when magnesium is low may actually worsen magnesium deficiency. Always ensure adequate magnesium intake (preferably from whole foods) before or alongside vitamin D supplementation.
Does magnesium help with migraines?
Yes — magnesium is one of the most evidence-based nutritional interventions for migraine prevention. Low magnesium promotes cortical spreading depression, increases neuronal hyperexcitability, and causes vascular dysregulation — all mechanisms underlying migraines. The American Headache Society and American Academy of Neurology both include magnesium (400–600 mg/day) in their preventive treatment guidelines, particularly for menstrual migraines. Dietary magnesium from pumpkin seeds, almonds, dark chocolate, and quinoa can contribute meaningfully to migraine prevention over the long term.
Does cooking affect magnesium content in plant foods?
Boiling vegetables causes moderate magnesium loss — leafy greens can lose 30–50% when boiled. Steaming or microwaving preserves more. However, cooking legumes and grains substantially reduces their phytate content, which significantly improves magnesium bioavailability from the remaining mineral. The net nutritional effect is often positive. Seeds and nuts retain magnesium well regardless of preparation method. If boiling vegetables, using the cooking water in soups or sauces recovers a portion of the leached magnesium.
