The short answer
Magnesium may cut how often migraines happen. In the best-known trial, 600 mg of magnesium a day reduced attacks by 42% after 12 weeks, against 16% on placebo, though another trial found no benefit. US neurology guidelines rate it as probably effective. It is a reasonable option to discuss with your GP, especially if prescribed preventers don't suit you.
Moderate evidence
More than one placebo-controlled trial points the same way, but the trials are small, short or mixed in quality. How we grade
On this page
What did the migraine trials find?
The positive German trial. In 1996, Peikert and colleagues gave 81 adults with migraine either 600 mg of magnesium a day (as trimagnesium dicitrate) or placebo for 12 weeks. In the final month, attacks were 41.6% less frequent than at the start in the magnesium group, against 15.8% in the placebo group. Migraine days and painkiller use also fell. The main side effect was diarrhoea, in almost one in five people.
The negative German trial. In the same year, Pfaffenrath and colleagues tested magnesium aspartate in 69 people. Ten people in each group responded, so magnesium did no better than placebo, and the trial was stopped early.
The meta-analysis. A 2016 review combined 10 trials of oral magnesium for migraine prevention, involving 789 people, and found it reduced both how often attacks came and how bad they were. Some of the trials were not well randomised, which weakens the result.
Menstrual migraine. A small Italian trial in 1991 gave 20 women with migraines linked to their periods 360 mg of magnesium a day, or placebo, from mid-cycle until their next period. After two months, the magnesium group had fewer headache days and lower pain scores, and their premenstrual symptoms improved. It was very small, but it’s one reason some doctors suggest magnesium for this type of migraine.
Children. A 2003 trial of magnesium oxide in 118 children aged 3 to 17 found lower headache severity, but the fall in headache frequency was not clearly different from placebo.
What do guidelines say?
The 2012 American Academy of Neurology and American Headache Society guideline rated magnesium as “probably effective” for preventing migraine, its second-highest level. UK guidance concentrates on prescribed preventers, so ask your GP whether magnesium is worth trying alongside or instead of them.
How would you take magnesium for migraine?
- The trials used around 600 mg of elemental magnesium a day, split into two or three doses with food. The positive trial used magnesium citrate.
- That is above the NHS’s 400 mg comfort level for supplements. Discuss it with your GP or pharmacist first, and don’t take it if you have kidney disease unless your doctor advises you to.
- Start lower, for example 200 mg twice a day, and build up to limit diarrhoea. See side effects and dosage and timing.
- Check medicines it affects if you take other regular medicines.
- Keep a headache diary for a month before and three months during, so you can tell whether it is working.
What doesn’t the evidence show?
The trials are small and old, and one large one was negative. There are no long-term studies. Magnesium has not been tested head-to-head against prescribed preventers such as propranolol, amitriptyline or topiramate, so we cannot say how it compares. If your migraines are frequent or changing, see your GP.
Keep reading
- Magnesium for anxiety and stress: is there evidence?
Magnesium is widely sold as a calming mineral. Here is what trials of magnesium for anxiety, stress and low mood actually found, and how good they are.
Weak - Does magnesium lower blood pressure? The trial evidence
What double-blind trials show about magnesium and blood pressure: how much it lowers readings, at what dose, and who benefits most.
Moderate - Magnesium for constipation: how it works and how to take it
Magnesium salts are proven osmotic laxatives. How magnesium oxide and other forms relieve constipation, how much to take, and when to avoid them.
Strong
Common questions
How much magnesium for migraine?
The positive trials in adults used about 600 mg of elemental magnesium a day, usually split into two or three doses. That is above the 400 mg the NHS says is unlikely to cause harm, so talk to your GP or pharmacist before taking that much, particularly if you have kidney problems.
Which form of magnesium is best for migraine?
The most positive large trial used magnesium citrate. A smaller trial that used magnesium aspartate found no benefit. Citrate and glycinate are reasonable choices; oxide often causes loose stools at high doses.
How long does magnesium take to prevent migraines?
In the trials, the benefit became clear in the last month of a three-month course. Keep a headache diary and give it about three months before deciding whether it works for you.
Does magnesium help during a migraine attack?
Magnesium given into a vein in hospital can ease an acute attack, according to a meta-analysis. There is no good evidence that swallowing a magnesium supplement during an attack helps.
References
- Peikert A et al. Prophylaxis of migraine with oral magnesium: results from a prospective, multi-center, placebo-controlled and double-blind randomized study. Cephalalgia, 1996.pubmed.ncbi.nlm.nih.gov
- Pfaffenrath V et al. Magnesium in the prophylaxis of migraine: a double-blind placebo-controlled study. Cephalalgia, 1996.pubmed.ncbi.nlm.nih.gov
- Chiu HY et al. Effects of intravenous and oral magnesium on reducing migraine: a meta-analysis of randomized controlled trials. Pain Physician, 2016.pubmed.ncbi.nlm.nih.gov
- Holland S et al. Evidence-based guideline update: NSAIDs and other complementary treatments for episodic migraine prevention in adults. Neurology, 2012.pubmed.ncbi.nlm.nih.gov
- Wang F et al. Oral magnesium oxide prophylaxis of frequent migrainous headache in children: a randomized, double-blind, placebo-controlled trial. Headache, 2003.pubmed.ncbi.nlm.nih.gov
- NHS. Vitamins and minerals: others (magnesium).nhs.uk
- Facchinetti F et al. Magnesium prophylaxis of menstrual migraine: effects on intracellular magnesium. Headache, 1991.pubmed.ncbi.nlm.nih.gov
- NHS. Migraine.nhs.uk
First published 4 November 2026. Spotted an error? Tell us and we'll correct it. Read our editorial policy.
