Increase dietary magnesium through food first

Dark leafy greens, pumpkin seeds, legumes, and dark chocolate are reliable dietary magnesium sources.

Why it works

Food-based magnesium comes packaged with co-nutrients (fiber, polyphenols, potassium) that have their own positive effects on nervous system function. The absorption rate of magnesium from whole foods is moderate (30–40%) but comes without the gastrointestinal side effects of high-dose supplements. Adequate dietary magnesium also reduces the cofactor competition that can occur when one micronutrient is supplemented in isolation.

How to do it

  1. Eat a daily serving of one high-magnesium food: one ounce of pumpkin seeds (156 mg), one cup of cooked spinach (~157 mg), or half a cup of black beans (~60 mg).
  2. Dark chocolate (70%+) provides ~65 mg per ounce and is a practical addition.
  3. Note that phytic acid in unsoaked legumes and grains reduces magnesium absorption — soaking or sprouting improves it.
  4. Prioritize whole food magnesium sources before adding supplements.

Evidence

Dietary magnesium intake is associated with lower rates of depression and anxiety in observational studies; food sources are the recommended first approach before supplementation. (observational)

Observational associations; confounders (diet quality, socioeconomic status) are plausible. Food sources are unlikely to reach the doses used in clinical supplementation trials.

Sources

  • Derom et al. (2013), Magnesium and depression: a systematic review, Nutritional Neuroscience

Common mistake

Assuming supplements are always stronger than food sources — for magnesium, whole food sources have better tolerability and come with synergistic nutrients that supplements lack.

Practice this with IX Coach

IX Coach helps you identify the one or two high-magnesium foods you already like and builds them into your meal pattern rather than prescribing a new food you won’t eat.

Start with IX Coach

7 days free, then $40/month (~$1.30/day).