Download on the App Store
Back to blog

Magnesium and Migraine: The Science-Backed Preventive Supplement

11 min
magnesiummigrainepreventionsupplementationglycinate

If you're looking for a natural preventive option to reduce migraine frequency, magnesium is probably the first thing to try.

Why? Because it's the most solidly documented supplement for migraine prevention in scientific literature. Level B evidence ("probably effective") from the American Headache Society and American Academy of Neurology. Documented reduction of 22 to 43% in attack frequency in patients on effective doses. Modest cost ($10-30/month). Excellent tolerability. No prescription needed.

But behind this positive picture lurk plenty of pitfalls: the wrong form (oxide, which is barely absorbed), the wrong dose (most drugstore supplements are underdosed), too short a trial (it takes 2-3 months to see effects), or no tracking method to know if it's actually working for you.

This article gives you everything you need to know: how magnesium works on migraine, which form to choose (and why glycinate wins), the precise dose to target, how to know if you're deficient, and how to scientifically evaluate whether supplementation is working for you.

Why magnesium works on migraine

Magnesium is a mineral involved in more than 300 enzymatic reactions in your body, several of which are directly linked to migraine mechanisms:

1. Regulation of neuronal excitability

Magnesium blocks NMDA receptors of glutamate, the brain's main excitatory neurotransmitter. When you're deficient in magnesium, your brain is more excitable, facilitating cortical spreading depression — the mechanism behind auras and migraine attacks.

2. Control of neurotransmitter release

Magnesium regulates the release of serotonin and CGRP (the central peptide in the migraine cascade). Deficiency amplifies fluctuations in these neurotransmitters.

3. Vascular function

Magnesium is essential to regulating cerebral vascular tone. Deficiency promotes the inflammatory vasodilation that characterizes the painful phase of migraine.

4. Anti-inflammatory action

General anti-inflammatory effect that modulates the neuro-inflammatory cascade involved in attacks.

Our migraine glossary details migraine mechanisms and the roles of CGRP, serotonin, and cortical spreading depression.

Magnesium deficiency in migraineurs: a documented fact

Major clinical finding: migraineurs have significantly lower intracellular magnesium levels than non-migraineurs. During an attack, this deficit deepens further.

Multiple studies have shown:

  • Roughly 50% of migraineurs show ionized magnesium deficiency during attacks
  • Women of childbearing age are particularly affected (often insufficient dietary intake + monthly loss linked to menstruation)
  • Patients with menstrual migraine have even lower levels around their period
  • Migraineurs with aura are particularly responsive to supplementation

⚠️ Important limitation: a standard blood test measures serum magnesium, which only reflects 1% of total body magnesium. You can have "normal" blood work and still be deficient. Red blood cell magnesium is more accurate but rarely ordered in routine practice. In practice, many specialists suggest a supplementation trial rather than initial testing.

What efficacy can you really expect?

Several randomized clinical trials have evaluated magnesium for migraine prevention. The strongest results:

Landmark study (Peikert, 1996)

600 mg/day of magnesium citrate for 12 weeks:

  • 41.6% reduction in attack frequency vs. 15.8% on placebo
  • Significant reduction in attack duration
  • Reduced use of acute medications

Recent meta-analyses

Multiple meta-analyses confirm:

  • Average reduction of 22 to 43% in attack frequency with oral magnesium
  • Effect more pronounced on migraine with aura
  • Effect more pronounced on menstrual migraine
  • Dose-dependent effect: under 300 mg/day = limited effect; 400-600 mg/day = optimal effect

Official evidence ratings

  • American Headache Society + American Academy of Neurology (2012 review): Level B ("probably effective")
  • Canadian Headache Society: strong recommendation
  • National Headache Foundation: standard recommendation in preventive options

It's one of the rare dietary supplements with an official recommendation for migraine.

The forms of magnesium: not all equal

This is the critical point: if you take the wrong form, magnesium won't be absorbed, and you'll see no benefit.

Here's the ranking of available forms, from best to worst for migraine.

🥇 Magnesium glycinate (the top choice)

The best choice for migraine prevention. Why:

  • Excellent bioavailability (high absorption rate)
  • Optimal digestive tolerance: no diarrhea even at high doses
  • Bonus: glycine has a calming effect on the nervous system (sleep, anxiety), creating a synergistic effect on migraine
  • No laxative effect (unlike citrate)

Ideal for: everyone, particularly people with sensitive digestion.

🥈 Magnesium citrate (good alternative)

Good alternative, especially if glycinate seems expensive.

  • Good bioavailability (well absorbed)
  • Decent tolerance, but laxative effect at high doses
  • Lower cost than glycinate
  • Used in the landmark Peikert 1996 study

⚠️ If you have constipation tendencies, citrate can be an advantage. If you have fast transit or IBS, avoid.

🥉 Magnesium malate

Solid form, with an energy bonus from malic acid. Less studied specifically on migraine but good tolerance and absorption.

4️⃣ Magnesium L-threonate

Unique feature: crosses the blood-brain barrier more efficiently than other forms, potentially increasing brain magnesium levels. More expensive but interesting for migraine. Less long-term evidence.

5️⃣ Magnesium chloride

Decent absorption, well tolerated. Available as oral supplement or topical (sprays, lotions) — though topical absorption is limited.

❌ Magnesium oxide (avoid if possible)

The cheapest form and therefore the most sold in drugstores, but:

  • Very low bioavailability (~4-5% absorption)
  • Major laxative effect (it's literally used as a laxative)
  • Largely ineffective for migraine prevention at standard doses

Note: the American Headache Society does still mention magnesium oxide at 400-500 mg/day in their official recommendations, because some clinical trials used this form successfully — but the consensus among headache specialists now favors chelated forms (glycinate, citrate) for better absorption and tolerance.

⚠️ Forms to avoid

  • Magnesium sulfate (Epsom salt) orally: poorly absorbed, mainly used IV in hospitals or topically
  • Magnesium aspartate, gluconate: low bioavailability
  • Supplements labeled just "magnesium" without specifying the form: usually hidden oxide

What dose is effective?

The scientifically studied dose for migraine prevention sits between 400 and 600 mg of ELEMENTAL magnesium per day.

Distinguishing "elemental magnesium" from "compound weight"

Watch out for this trap: a supplement labeled "1000 mg of magnesium glycinate" does not contain 1000 mg of magnesium. It contains the total weight of the glycinate molecule.

What matters is the elemental magnesium (sometimes called "magnesium content" or shown in the supplement facts panel).

Typical example:

  • Label: "Magnesium glycinate 1000 mg, with 200 mg elemental magnesium"
  • You count the 200 mg, not the 1000 mg.

Practical dosing

  • Progressive start: 200 mg/day for 1 week
  • Dose increase: 400 mg/day for 2 weeks
  • Target dose: 400 to 600 mg/day of elemental magnesium

Why progressive? To avoid potential digestive side effects (especially diarrhea with citrate).

Splitting throughout the day

Better to split the dose: 200 mg morning + 200 mg evening, rather than a single 400 mg dose.

Intestinal absorption is saturable: beyond 200-250 mg in one dose, the surplus is poorly absorbed.

Timing

  • With a meal (better absorption + better digestive tolerance)
  • 2 hours away from thyroid medications or certain antibiotics (possible interactions)
  • Evening dose is interesting if you want the calming effect of glycinate on sleep

How long until you see an effect?

The most common mistake: stopping too early.

Magnesium doesn't work like an analgesic. It works by gradually rebuilding intracellular stores and modulating neuronal excitability over weeks.

Realistic timeline

  • Weeks 1-2: no perceptible effect (you're rebuilding stores)
  • Weeks 3-4: potential start of reduced frequency or intensity
  • Weeks 8-12: full effect if you're a responder
  • 3-6 months: stable effect, plateau

Minimum trial period: 3 months at effective dose before concluding it doesn't work.

If after 3 months at 400-600 mg/day of elemental magnesium (glycinate or citrate), you see no improvement → you're probably not a magnesium responder.

Dietary sources of magnesium

Alongside supplementation (or as a complement), enrich your diet with magnesium.

Richest foods (per 100g/3.5 oz)

  • Pumpkin seeds: 535 mg
  • Cocoa nibs / unsweetened cocoa powder: ~500 mg
  • Sesame seeds: 350 mg
  • Almonds: 270 mg
  • Brazil nuts: 250 mg
  • Cashews: 250 mg
  • Dark chocolate 70%+: 200 mg
  • Buckwheat: 230 mg
  • Legumes (black beans, lentils, chickpeas): 70-150 mg
  • Cooked spinach: 80 mg
  • Quinoa: 64 mg
  • Bananas: 35 mg

Mineral water as a magnesium source

An underused option: magnesium-rich mineral waters can deliver 100-200 mg/day if you drink 1-1.5 liters.

In the U.S., look for high-magnesium options:

  • Gerolsteiner (German import): 108 mg/L
  • San Pellegrino: 56 mg/L
  • Crystal Geyser (specific sources): variable
  • Mendocino Mineral: variable

In Europe, Hépar (119 mg/L) is the highest-magnesium widely-available option.

⚠️ These mineral waters are highly mineralized (drink as a complement, not as your sole water source).

Our article on migraine and food details all documented protective nutrients.

Side effects and precautions

Magnesium is very well tolerated, but a few precautions to know.

Possible adverse effects

  • Diarrhea or loose stools: especially with citrate or oxide at high doses
  • Mild abdominal cramps (rare)
  • Nausea (very rare)
  • Transient headaches at startup (rare, resolves in a few days)

Contraindications

  • Severe kidney disease: magnesium is eliminated by the kidneys; medical consultation required
  • Atrioventricular heart block (very rare exception)
  • Myasthenia gravis (consult your doctor)

Drug interactions

  • Antibiotics (quinolones, tetracyclines): space by 2 hours
  • Bisphosphonates (osteoporosis): space by 2 hours
  • Thyroid medications (levothyroxine): space by 4 hours
  • Iron supplements: space by 2-4 hours

Magnesium + B2: the amplifying combination

Several studies and many specialists recommend combining magnesium with vitamin B2 (riboflavin) at high dose (400 mg/day).

Riboflavin also has Level B evidence for migraine prevention, through a different mechanism (improving mitochondrial function). The two supplements work synergistically.

This combination — magnesium 400-600 mg + B2 400 mg — has become a standard in natural migraine prophylaxis.

⚠️ High-dose B2 causes bright fluorescent yellow-green urine. Totally normal — it's excess B2 being eliminated, not a warning sign.

CoQ10 and feverfew: complementary options

Two other nutraceuticals have documented preventive effects worth knowing:

Coenzyme Q10

Dose: 100-300 mg/day. Mechanism: improves mitochondrial function (like B2). One study showed a 48% response rate vs 14% placebo. Useful complement to magnesium.

Feverfew

Plant extract that inhibits serotonin and prostaglandin release. Dose: 50-150 mg/day of standardized extract. Modest but documented effect. Not for pregnancy.

When to consult before supplementing

For most people, magnesium supplementation is safe without prior medical advice. But consult your doctor if:

  • You have known kidney disease
  • You take multiple medications (interactions to verify)
  • You're pregnant or breastfeeding (generally OK to validate)
  • You have a documented heart condition
  • You have 8+ migraine days per month (a prescription preventive may also be indicated)

How to know if magnesium is working for you

You can't tell "by feel." Magnesium's effect is gradual over 3 months, and you'll have natural variability in your attacks during that period (stress, hormones, weather, etc.).

The only reliable method: objectively track before and during.

Step 1: baseline (2-3 months before supplementation)

Track for 2-3 months without changing anything:

  • Number of migraine days per month
  • Average intensity (1-10 scale)
  • Average duration
  • Triptan or analgesic doses

You get your numerical baseline.

Step 2: supplementation phase (3 months minimum)

Start magnesium (400-600 mg/day of glycinate, for example), and keep tracking in exactly the same way.

Important: don't change anything else during these 3 months (prescription preventive, sleep, diet, etc.). Otherwise you won't be able to attribute any effect to magnesium.

Step 3: comparison

After 3 months on treatment, compare:

  • Have your migraine days dropped by >30%?
  • Has average intensity decreased?
  • Has attack duration shortened?
  • Has triptan consumption decreased?

If yes → you're a responder, continue treatment. If no → you're probably not a responder, stop (and explore other options).

Our article on how to identify your migraine triggers details the objective tracking method applicable to any intervention.

That's exactly what we built Mellow for: track each attack in seconds, automatically calculate your monthly statistics, and objectively measure whether an intervention (magnesium or other) is working for you. More effective than waiting 3 months and wondering "am I feeling better or not?"


Sources

Peikert A, Wilimzig C, Köhne-Volland R. — Prophylaxis of migraine with oral magnesium: results from a prospective, multi-center, placebo-controlled and double-blind randomized study. Cephalalgia, 1996;16(4):257-263.

American Migraine Foundation — Magnesium and Migraine. americanmigrainefoundation.org

American Headache Society — Incorporating Nutraceuticals for Migraine Prevention. americanheadachesociety.org

Holland S, Silberstein SD, Freitag F, Dodick DW, Argoff C, Ashman E — Evidence-based guideline update: NSAIDs and other complementary treatments for episodic migraine prevention in adults. Neurology, 2012. (AAN/AHS joint guideline that established Level B for magnesium.)

Domitrz I, Cegielska J. — Magnesium as an Important Factor in the Pathogenesis and Treatment of Migraine. Nutrients, 2022. ncbi.nlm.nih.gov

National Headache Foundation — Migraine Prevention Resources. headaches.org

The Migraine Trust — Supplements and complementary treatments for migraine. migrainetrust.org

Mayo Clinic — Magnesium: Drug Information. mayoclinic.org

Related articles