Migraine is one of the few reasons to take magnesium where the guidelines are on its side. In 2012 the American Academy of Neurology and the American Headache Society rated it “probably effective” for preventing migraine, and the Canadian Headache Society gave magnesium citrate a strong recommendation the same year.
The catch is the dose. The best-known positive trial used 600mg of magnesium a day, well above the 350mg upper limit for supplements, and that changes how you should go about trying it.
What the trials found
The trial cited most is a 1996 multicentre study by Peikert and colleagues. It gave 81 people with migraine either 600mg of magnesium a day, as trimagnesium dicitrate, or a placebo for 12 weeks. Over the last four weeks, attacks had fallen by 41.6% in the magnesium group against 15.8% on placebo. Days with migraine and the use of painkillers fell too.
A second trial that year, by Pfaffenrath and colleagues, found nothing. It used 10 mmol twice a day, about 490mg in total, and was stopped early after 69 people because the response rates were almost identical: 28.6% on magnesium and 29.4% on placebo.
A 2016 meta-analysis by Chiu and colleagues pooled ten trials of oral magnesium for prevention, covering 789 people, and found it reduced both how often migraines came and how bad they were. The authors noted that some of the included trials weren’t properly randomised.
So the evidence leans positive without being settled, which is how the guidelines read it. Cochrane published the protocol for its own review in 2025, so a fuller assessment is under way.
The dose problem
Australia’s upper limit for magnesium from supplements is 350mg a day, and how much magnesium you need explains where that figure comes from. The positive trial used 600mg. That isn’t a dose to reach on your own.
Above the limit, the usual trouble is your gut. Diarrhoea was the most common side effect in the Peikert trial, at 18.6%. In the Pfaffenrath trial 45.7% of people on magnesium reported soft stools or diarrhoea, against 23.5% on placebo.
None of that rules magnesium out. It means a migraine dose belongs in a plan with your doctor, who can weigh it against your other options and check your kidney function first.
Which form
The positive trial used a citrate, and the Canadian guideline names magnesium citrate. Citrate is also cheap and well absorbed. Its drawback here is the one it has everywhere: the more you take, the likelier the runs.
Trying it properly
Prevention is slow. The Peikert trial measured its result in weeks 9 to 12, so judge magnesium over about three months, not a fortnight. A headache diary makes that call much easier than memory: note each attack, how bad it was, and what you took for it.
Magnesium tablets won’t stop an attack that has already started. Magnesium given by drip has been tested for acute attacks, and the Chiu meta-analysis found it relieved migraine within hours, but that’s a hospital treatment, not a tablet at home.
Where magnesium fits
Magnesium is one preventive option among several. The Canadian guideline also gives strong recommendations to prescription medicines such as propranolol and topiramate, and to riboflavin and coenzyme Q10. If your migraines are frequent enough that you’re thinking about prevention, a doctor can help you choose between them.
A sudden, severe headache, or one that feels different from your usual migraines, needs urgent medical attention. In an emergency, call 000.
The usual cautions
The same three groups, on every page, because they matter every time. If your kidneys don’t work well, magnesium supplements can be risky, because the kidneys are what clear it: talk to a doctor first. If you take regular medication, magnesium interacts with several drugs, including some antibiotics, and a pharmacist can check yours in about a minute. If you’re pregnant or breastfeeding, ask your midwife or doctor before starting anything.
Common questions
Will my ordinary magnesium supplement help? Perhaps not at a typical supplement dose. The positive trial used 600mg a day, and the trial that used about 490mg found no benefit. Talk to your doctor before going above the 350mg limit.
How long before I know if it’s working? Allow about three months. The main trial measured its result in the last four weeks of twelve.
Can I take it with my migraine medicine? Ask your pharmacist before you start. They can check it against everything you take.
Sources: Holland et al., Evidence-based guideline update: NSAIDs and other complementary treatments for episodic migraine prevention in adults, Neurology, 2012 (https://pubmed.ncbi.nlm.nih.gov/22529203/); Pringsheim et al., Canadian Headache Society guideline for migraine prophylaxis, Canadian Journal of Neurological Sciences, 2012 (https://pubmed.ncbi.nlm.nih.gov/22683887/); Peikert, Wilimzig & Köhne-Volland, Prophylaxis of migraine with oral magnesium, Cephalalgia, 1996 (https://pubmed.ncbi.nlm.nih.gov/8792038/); Pfaffenrath et al., Magnesium in the prophylaxis of migraine, Cephalalgia, 1996 (https://pubmed.ncbi.nlm.nih.gov/8902254/); Chiu et al., Effects of intravenous and oral magnesium on reducing migraine: a meta-analysis, Pain Physician, 2016 (https://pubmed.ncbi.nlm.nih.gov/26752497/); Rodriguez et al., Magnesium supplementation for migraine prophylaxis (protocol), Cochrane Database of Systematic Reviews, 2025 (https://pubmed.ncbi.nlm.nih.gov/41216917/); National Health and Medical Research Council, Nutrient Reference Values: Magnesium (https://www.eatforhealth.gov.au/nutrient-reference-values/nutrients/magnesium); NIH Office of Dietary Supplements: Magnesium Fact Sheet (https://ods.od.nih.gov/factsheets/Magnesium-HealthProfessional/)
This article is general information, not medical advice. If you have migraines, speak to a doctor about prevention.