Skip to content
AlternativeMed

Magnesium for Migraine and Headache: What Guidelines and Trials Say

What the AAN/AHS guideline and published trials found for magnesium in migraine prevention, where reviews disagree, and why study amounts are not advice.

Content last updated . This page has not been medically reviewed.

Urgent first: headaches that need emergency care

The NHS lists these headache warning signs as needing urgent emergency care: a headache that starts suddenly and is extremely painful, a seizure, numbness or weakness in the body or face, trouble speaking, balancing or remembering, drowsiness or confusion, loss of vision, a head injury in the last 3 months, a rash that does not fade under a pressed glass, or a very high temperature with a stiff neck. [1] In the US, call 911. A supplement is not a substitute for an assessment of a new, changing or severe headache.

The short answer

A 2012 US guideline rated magnesium as "probably effective" for preventing episodic migraine in adults, but later reviews disagree about how strong the evidence is. [2][3][4] No source we read supports magnesium as a treatment for tension-type headache. This page describes research; it does not tell anyone what to take.

How to read the evidence labels

We use these labels: established nutritional role / deficiency treatment, promising but limited, mixed, insufficient evidence, and Proper evidence not found (we searched and found nothing usable). Study amounts are what researchers gave in a trial, never advice.

What guidelines and trials found

SourceWho and whatWhat it foundLabel
AAN/AHS guideline, 2012 (US)Adults, episodic migraine prevention; studies from June 1999 to May 2009Magnesium listed among treatments "probably effective" (Level B) [2]Promising but limited
Placebo-controlled trial, 199681 adults aged 18 to 65; 12 weeks; 600 mg magnesium (24 mmol) a day as trimagnesium dicitrate (study amount)Attack frequency fell 41.6% on magnesium and 15.8% on placebo; diarrhea in 18.6% and stomach irritation in 4.7% [5]Promising but limited
Meta-analysis, 201610 oral-magnesium trials (789 people) for preventionOral magnesium lowered frequency and intensity; the authors noted some trials used inadequate randomization [6]Mixed
Meta-analysis, 201918 placebo-controlled trials of vitamins and minerals; 3 magnesium trials (226 adults) on severityNo significant drop in severity; the authors concluded it is unknown whether magnesium works because evidence was insufficient [3]Insufficient evidence
Meta-analysis, 202522 trials of several supplementsMagnesium reduced attacks (mean difference -2.51) and monthly migraine days (-1.66) versus control [4]Promising but limited

The 2019 and 2025 reviews reached different conclusions about similar questions, which is why we label the overall picture as mixed. The abstract of the 2025 review does not state a certainty rating for magnesium alone. [4] The guideline analysed studies only up to 2009, and the 2021 American Headache Society consensus statement abstract we read does not mention magnesium. [2][7]

Magnesium given by injection

The 2016 meta-analysis also pooled 11 trials (948 people) of intravenous magnesium for an attack and reported relief at 15 to 45 minutes, 2 hours and 24 hours. [6] A review of severe, prolonged attacks (status migrainosus) lists magnesium sulfate among emergency options but says high-quality randomized trials are lacking. [8] This is a hospital treatment given by clinicians. It does not show that a supplement bought without a prescription works the same way.

Tension-type and other headaches

Proper evidence not found. We searched PubMed for magnesium and tension-type headache. The result was a 2021 review of combined nutraceuticals in children (melatonin, tryptophan, magnesium and B vitamins), which called for high-quality randomized trials. [9] That cannot show whether magnesium alone helps.

Frequently asked questions

Does magnesium prevent migraines?

A 2012 AAN/AHS guideline rated it "probably effective" for prevention in adults, and a 2025 meta-analysis found fewer attacks, but a 2019 meta-analysis judged the evidence insufficient. [2][4][3] The honest summary is mixed, promising but limited evidence.

Is the amount used in trials safe to take?

Not necessarily. One trial used 600 mg magnesium a day for 12 weeks and reported diarrhea in 18.6% of people. [5] That amount is above the supplemental upper levels set by Health Canada and EFSA. [10][11] A clinician or pharmacist decides what is right for a person.

Is intravenous magnesium the same as a supplement?

No. Intravenous magnesium is given in a medical setting, and its trial results do not transfer to oral supplements. [6]

Does magnesium help tension headaches?

Proper evidence not found in the sources we searched. [9]

When is a headache an emergency?

A sudden, extremely painful headache, or one with seizure, weakness, confusion, vision loss, stiff neck with fever or a recent head injury, needs urgent care; call 911 in the US. [1]

More details: evidence, limits and cautions

The details behind this page: cautions, limits of the evidence and where sources disagree. Open any note to read it.

Safety and who should ask first
  • Study amounts can exceed official limits. The 600 mg trial amount is above the 350 mg a day upper level Health Canada lists for supplemental magnesium in people aged 9 and over, and above the 250 mg a day EFSA upper level. [5][10][11] Both limits count magnesium from supplements or medicines only, not food. [10][11] See magnesium intake levels and the supplement upper limit.
  • Diarrhea is a documented effect of higher supplemental amounts. The NHS says more than 400 mg a day for a short time can cause it. [12] The 1996 trial above reported it. [5]
  • Kidney disease raises the risk of high blood magnesium. [13] Read magnesium side effects, toxicity and kidney disease.
  • Medicines. Some medicines are affected by magnesium; ask a pharmacist and see Medication Interactions.
  • Pregnancy, children and older adults. Pregnancy-specific data for magnesium and migraine are not described in the sources we read, and the childhood evidence above is limited. Talk to a clinician or pharmacist first, especially if headaches are new, getting worse or frequent.
  • Product quality. Labels list elemental magnesium, not compound weight. [14] See quality testing and certifications.

For other approaches with their own evidence pages, see acupuncture for migraine and massage for tension headache and migraine. For the full mineral profile, see Magnesium.

References
  1. NHS (UK). Page last reviewed 17 April 2024. NHS, Headaches.
  2. Evidence-based guideline update: NSAIDs and other complementary treatments for episodic migraine prevention in adults (AAN/AHS). Neurology 2012. PubMed 22529203. Abstract read 2026-10-23.
  3. Vitamins and Minerals for Migraine Prophylaxis: A Systematic Review and Meta-analysis. Canadian Journal of Neurological Sciences 2019. PubMed 30764890. Abstract read 2026-10-23.
  4. Effects of selected dietary supplements on migraine prophylaxis: a systematic review and dose-response meta-analysis of randomized controlled trials. Neurological Sciences 2025. PubMed 39404918. Abstract read 2026-10-23.
  5. Prophylaxis of migraine with oral magnesium: a prospective, multi-center, placebo-controlled and double-blind randomized study. Cephalalgia 1996. PubMed 8792038. Abstract read 2026-10-23.
  6. Effects of Intravenous and Oral Magnesium on Reducing Migraine: A Meta-analysis of Randomized Controlled Trials. Pain Physician 2016. PubMed 26752497. Abstract read 2026-10-23.
  7. The American Headache Society Consensus Statement: Update on integrating new migraine treatments into clinical practice. Headache 2021. PubMed 34160823. Abstract read 2026-10-23.
  8. Treating status migrainosus in the emergency setting: what is the best strategy? Expert Opinion on Pharmacotherapy 2018. PubMed 30198804. Abstract read 2026-10-23.
  9. Use of Nutraceutical Ingredient Combinations in the Management of Tension-Type Headaches with or without Sleep Disorders. Nutrients 2021. PubMed 34067959. Abstract read 2026-10-23.
  10. Health Canada. Dietary reference intakes, Table 2: reference values for elements. Page date modified 2025-11-19. Health Canada, Reference values for elements. Read 2026-10-23 through a web-fetch tool.
  11. European Food Safety Authority / Scientific Committee on Food. February 2006. Tolerable Upper Intake Levels for Vitamins and Minerals, magnesium chapter.
  12. NHS (UK). Page last reviewed 3 August 2020. NHS, Vitamins and minerals: Others (magnesium, phosphorus, potassium, salt).
  13. MedlinePlus (US National Library of Medicine). Review date 1/21/2025. MedlinePlus Medical Encyclopedia, Magnesium in diet.
  14. US Food and Drug Administration, Center for Food Safety and Applied Nutrition. Letter responding to a qualified health claim petition for magnesium and high blood pressure (Docket FDA-2016-Q-3770); references accessed through December 2021. FDA letter.
Education, not medical advice. This page is for general information. It does not diagnose or treat any condition and is not a substitute for care from a qualified health professional. Natural does not automatically mean safe. Ask a clinician or pharmacist before changing your care, especially if you take medication, are pregnant or breastfeeding, or have a health condition.