Magnesium for migraines: what the trials used and whether it works

In trials, daily magnesium modestly cut how often migraines came, and guidelines rate it probably effective for prevention. The positive adult trials used about 600 mg of elemental magnesium a day as citrate or oxide, which is above the 350 mg supplement upper limit and needs a kidney check first.

Reviewed by LifeFrom’s medical AIPublished November 20, 2026 · 8 min
Ask AI about this pageChatGPTClaudePerplexity
The distinctions
  1. 01
    The studied amount is elemental, and above the everyday cap

    Migraine trials counted elemental magnesium, the magnesium itself; Peikert 1996 used 600 mg a day 3. A front label of 500 mg magnesium glycinate is about 70 mg elemental, so one capsule is far below what was tested. The trial amount is also above the 350 mg daily upper limit for supplemental magnesium 6, so it needs a clinician who has checked your kidney function.

Daily magnesium modestly cuts migraine attacks for some people, and the trials that showed it counted elemental magnesium, the magnesium itself rather than the weight of the salt it is bound to: the main positive trial used 600 mg of it a day for 12 weeks. A capsule sold as 500 mg magnesium glycinate holds roughly 70 mg of it. Forms, food and everyday doses are in magnesium supplements.

Does magnesium help migraines?

Magnesium helps some people with migraine have fewer attacks, and the size of the effect is modest. The best-known positive trial, Peikert 1996, gave 81 adults 600 mg of elemental magnesium a day as trimagnesium dicitrate; by weeks 9 to 12, attacks had fallen 41.6% on magnesium and 15.8% on placebo 3. A trial of magnesium aspartate the same year found no difference from placebo and more side effects 7. A 2016 meta-analysis (a study that pools other trials) of 10 oral trials and 789 people found oral magnesium lowered how often and how hard migraines hit 4.

StudyMagnesium usedLengthWhat happened
Peikert 1996, 81 adults 3Trimagnesium dicitrate, 600 mg elemental a day12 weeksAttacks down 41.6% vs 15.8% on placebo; diarrhea in 18.6%
Pfaffenrath 1996 7Magnesium aspartate, 20 mmol (about 490 mg elemental) a day12 weeksNo benefit: 28.6% vs 29.4% responders; more mild side effects
Karimi 2021, 63 people, crossover (each person tried both treatments) 8Magnesium oxide, 500 mg tablets every 12 hours (about 600 mg elemental a day)8 weeks on each treatmentAttacks fell by a similar amount to the prescription drug sodium valproate; no placebo group
Chiu 2016 meta-analysis 4Oral forms, various10 oral trials, 789 peopleLower migraine frequency and intensity than control

The guideline ratings match that picture. All three looked at adults, and the American guideline covers episodic migraine (headache on fewer than 15 days a month).

BodyRating for magnesiumWhat it means
American Academy of Neurology and American Headache Society, 2012 1Level BProbably effective; should be considered for prevention
Canadian Headache Society, 2012 2Strong recommendation, low-quality evidence (for magnesium citrate)The panel judged its low cost and low risk for most people to outweigh the weak evidence
von Luckner and Riederer, 2018 systematic review 9Grade CPossibly effective, based on 5 placebo-controlled trials

Fenoprofen, ibuprofen, ketoprofen, naproxen, naproxen sodium, MIG-99 (feverfew), magnesium, riboflavin, and subcutaneous histamine are probably effective for migraine prevention (Level B).Holland S et al., AAN/AHS guideline, Neurology 2012 1

Why magnesium might matter in a migraine

Low magnesium is linked to two steps in a migraine, the release of chemical messengers that excite nerve cells and the tightening of blood vessels, and people with migraine tend to have lower magnesium in serum and tissue than people without it 6. One theory is that magnesium calms over-excited nerve cells and damps the slow wave of nerve activity across the brain surface thought to cause aura (the flashing lights, zigzags or tingling some people get before the headache). A diagnosed shortfall is a separate question, covered under magnesium deficiency.

Which magnesium is best for migraines?

The forms with positive adult migraine trials are citrate or dicitrate and oxide; glycinate, malate and threonate have no migraine trials. Magnesium oxide is absorbed less completely than citrate, aspartate, lactate or chloride 6, yet oxide was the form in the Karimi trial 8, and each oxide tablet carries far more elemental magnesium. The Canadian guideline named citrate specifically 2.

FormElemental magnesium per 1,000 mg of compoundTested for migraine?Gut
OxideAbout 600 mgYes: matched valproate in adults 8; no clear edge over placebo in children 12Loosest stools at high amounts
Citrate or dicitrateAbout 160 mg (citrate)Yes: Peikert 1996 3 and the Canadian pick 2Often loosens stools
AspartateAbout 80 mgYes: the negative 1996 trial 7Mild gut upset common
Glycinate, malate, L-threonateAbout 70 to 155 mg (glycinate about 140 mg)No migraine trialsOften reported as gentle
SulfateAbout 100 mgYes, as a hospital IV for attacks 4Not an oral choice

How much magnesium for migraines, and how to read the label

600 mgElemental magnesium a day in the main positive trialThe upper limit for supplemental magnesium in adults is 350 mg a day

On the Supplement Facts panel, find the line that reads "Magnesium (as magnesium glycinate)" or "Magnesium (as magnesium citrate)": the milligram figure on that line is elemental magnesium. A front label reading 500 mg magnesium glycinate usually means 500 mg of the whole compound, about 70 mg elemental, so one capsule is far below trial amounts.

Do not stack capsules to reach trial levels on your own. The 600 mg elemental used in the main trials is above the 350 mg daily upper limit for magnesium from supplements, the amount above which diarrhea becomes likely 6. Going over 350 mg from pills is a decision for a clinician who knows your kidney function and your medicines. In the trials the daily amount was often split into two doses, and smaller split doses tend to be easier on the gut.

Magnesium from food does not count toward that limit 6. Pumpkin seeds, chia seeds, almonds, spinach, cashews and black beans are among the richest sources 6.

Questions worth taking to that appointment:

  • Is my eGFR fine for more than 350 mg of magnesium a day from supplements?
  • Citrate or oxide, and how much of the product I already have?
  • Does it clash with any of my medicines?
  • If it hasn't helped by 3 months, which preventive comes next?

How long until you know if it's working?

Trials judged magnesium in weeks 9 to 12 3, so a fair test of magnesium for migraine runs about 3 months at a steady amount. Trials call a person a responder when their attacks fall by half or more. Peikert's average fall of 41.6% 3 means many people on magnesium did not reach that line, which is why your own 3-month diary matters more than the average.

Attacks in weeks 9 to 12, as a share of the starting rate
Magnesium, 600 mg elemental a dayPlacebo
% of starting attacksResponder line: attacks halvedBefore treatmentWeeks 9 to 12
Peikert 1996, 81 adults: attacks fell 41.6% on magnesium and 15.8% on placebo 3. Only the two measured points are plotted.

A headache diary turns the 3 months into an answer. Keep it for a month before starting and through the trial, then compare month 3 with the starting month.

  • Migraine days a month
  • How bad each attack was, on a 0 to 10 scale
  • Days you took a painkiller or a triptan (a prescription migraine tablet)
  • Possible triggers: poor sleep, skipped meals, your period

If migraine days are about the same at 3 months, no trial has shown that taking more helps. That is the point to review it with your doctor and ask about other preventives rather than raising the amount yourself.

Can magnesium stop a migraine once it starts?

Oral magnesium has no evidence for stopping an attack. Intravenous (IV) magnesium sulfate is a hospital option: in a trial of 1 g IV, people with migraine with aura had less pain and fewer associated symptoms, while people without aura got relief only from light and sound sensitivity 5. In a small 1995 study, relief from 1 g IV lasted at least 24 hours in 86% of people with low ionized magnesium (a specialised blood measure) against 16% of those with normal levels 10. Pooled across 11 trials and 948 people, IV magnesium eased acute migraine at 15 to 45 minutes, 2 hours and 24 hours 4, though the authors noted that some of the pooled trials were not well randomized 4. IV magnesium is a drip given only in hospital or an emergency department.

Period migraines, pregnancy and children

Menstrual migraine has one small trial behind it: in 1991, 20 women took 360 mg of magnesium a day from day 15 of the cycle until their period, and only the magnesium group had fewer headache days 11. Period-linked symptoms are covered under PMS and PMDD, and migraines often change around perimenopause.

In pregnancy, ask your obstetric team before adding magnesium for migraine.

A child's amount comes only from their own doctor. The main pediatric trial, of magnesium oxide in children aged 3 to 17, found headache days fell on magnesium but not clearly more than on placebo, though attacks were less severe than on placebo 12.

Is there a blood test that shows whether magnesium will help?

No routine blood test predicts who will respond to magnesium pills for migraine; the ionized magnesium finding above came from one small IV study 10. Less than 1% of the body's magnesium is in serum (the liquid part of blood a lab tests), and the body holds serum levels in a narrow band 6, so a normal serum magnesium does not rule out low stores; see electrolytes explained. Red blood cell magnesium has no agreed migraine cut-off.

The test that matters before trial amounts is kidney function: estimated glomerular filtration rate (eGFR) and creatinine, explained in kidney function explained. A low serum magnesium needs a cause: long-term acid reducers (PPIs), some water pills, diarrhea and heavy alcohol use are common ones 6.

If your report shows creatinine but no eGFR, you can work it out yourself and take the number to your clinician.

CalculatoreGFR calculatorTurn a creatinine result into eGFR, the number that says how well your kidneys clear magnesium.Work it out

Side effects, interactions and who should skip it

Diarrhea is the main side effect: 18.6% of people on 600 mg a day in the Peikert trial had it, and 4.7% had stomach irritation 3. Magnesium also binds some medicines in the gut, and the NIH Office of Dietary Supplements sets out the spacing 6.

How the migraine trials used magnesium

How oftenEvery day at a steady amount, judged after about 12 weeks (weeks 9 to 12 in the trials) [[3]]
Space ~2h fromTetracycline and quinolone antibiotics (such as doxycycline or ciprofloxacin): take them at least 2 hours before or 4 to 6 hours after magnesium [[6]]Bisphosphonates for bone loss (such as alendronate): keep them at least 2 hours apart from magnesium [[6]]
Amounts over 350 mg a day from supplements need a clinician who has checked your kidney function 6.
  • Reduced kidney function: magnesium supplements only with your doctor's agreement, because magnesium can build up 6.
  • A heart rhythm problem such as heart block (a slowed electrical signal in the heart), or myasthenia gravis (a muscle-weakness disease): ask your doctor before starting magnesium.

Magnesium with riboflavin, CoQ10 and prescription preventives

Riboflavin (vitamin B2) and CoQ10 got the same Canadian rating as magnesium, a strong recommendation on low-quality evidence 2, and AAN/AHS rated riboflavin probably effective and CoQ10 possibly effective 1. In single trials summarised by the Canadian guideline, attacks halved for 59% of people on riboflavin against 15% on placebo, and for 47.6% on CoQ10 against 14.4% 2. Magnesium is often used alongside prescription preventives; tell your prescriber you take it, and treat frequent or disabling migraine as the point to ask a doctor about prescription options.

Painkillers themselves can keep migraines frequent, and the headaches guide sets the limits.

Simple painkillers on 15 or more days a month, or triptans (prescription migraine tablets) and combination painkillers on 10 or more, can cause near-daily headaches on their own.

LifeFrom guide to headaches

Headaches that need a doctor

Free, no accountDrop in your lab report and see every marker explained in plain words, placed on the body, against your lab's range. It's read on your device: nothing is uploaded and nothing is kept.
Citations
  1. Holland S, Silberstein SD, Freitag F, et al. Evidence-based guideline update: NSAIDs and other complementary treatments for episodic migraine prevention in adults. Report of the Quality Standards Subcommittee of the American Academy of Neurology and the American Headache Society. Neurology 2012;78(17):1346-1353.
  2. Pringsheim T, Davenport W, Mackie G, et al. Canadian Headache Society guideline for migraine prophylaxis. Can J Neurol Sci 2012;39(2 Suppl 2):S1-59.
  3. Peikert A, Wilimzig C, Kohne-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.
  4. Chiu HY, Yeh TH, Huang YC, Chen PY. Effects of intravenous and oral magnesium on reducing migraine: a meta-analysis of randomized controlled trials. Pain Physician 2016;19(1):E97-112.
  5. Bigal ME, Bordini CA, Tepper SJ, Speciali JG. Intravenous magnesium sulphate in the acute treatment of migraine without aura and migraine with aura: a randomized, double-blind, placebo-controlled study. Cephalalgia 2002;22(5):345-353.
  6. NIH Office of Dietary Supplements. Magnesium: fact sheet for health professionals.
  7. Pfaffenrath V, Wessely P, Meyer C, et al. Magnesium in the prophylaxis of migraine: a double-blind placebo-controlled study. Cephalalgia 1996;16(6):436-440.
  8. Karimi N, Razian A, Heidari M. The efficacy of magnesium oxide and sodium valproate in prevention of migraine headache: a randomized, controlled, double-blind, crossover study. Acta Neurol Belg 2021;121(1):167-173.
  9. von Luckner A, Riederer F. Magnesium in migraine prophylaxis: is there an evidence-based rationale? A systematic review. Headache 2018;58(2):199-209.
  10. Mauskop A, Altura BT, Cracco RQ, Altura BM. Intravenous magnesium sulphate relieves migraine attacks in patients with low serum ionized magnesium levels: a pilot study. Clin Sci (Lond) 1995;89(6):633-636.
  11. Facchinetti F, Sances G, Borella P, Genazzani AR, Nappi G. Magnesium prophylaxis of menstrual migraine: effects on intracellular magnesium. Headache 1991;31(5):298-301.
  12. Wang F, Van Den Eeden SK, Ackerson LM, et al. Oral magnesium oxide prophylaxis of frequent migrainous headache in children: a randomized, double-blind, placebo-controlled trial. Headache 2003;43(6):601-610.

Educational context only, not medical advice or a diagnosis. Always discuss your results with a clinician.