Magnesium and migraine: what the evidence shows

Why it matters: Migraine affects about 15% of people each year, and many patients get only partial relief from current drugs. A 2025 review in Nutrients brings together more than 30 years of research on magnesium. It explains how low magnesium can trigger migraine, why routine blood tests often miss a deficit, and how the evidence for intravenous and oral magnesium stacks up.

How low magnesium feeds a migraine

Magnesium keeps nerve membranes stable, supports energy production and controls the release of neurotransmitters. Its key role is at the NMDA receptor, where it normally blocks the calcium channel. When magnesium is low, glutamate excitation increases, calcium floods into neurons, and the cascade drives substance P release, inflammation and oxidative stress. Low magnesium also promotes cortical spreading depression and fits the energy-deficit hypothesis of migraine, since magnesium is a cofactor for ATP-dependent reactions.

A deficit that blood tests can miss

Serum holds only a small fraction of the body's magnesium, so a normal serum value does not rule out low intracellular stores. Inadequate dietary intake is common, and a latent deficit may raise migraine susceptibility even when lab results look normal. In one study, low serum magnesium was linked to a much higher likelihood of acute headache in people with migraine.

What the trials show

For acute attacks, several randomised trials found that intravenous magnesium sulfate brought fast pain relief, with some patients pain-free within 15–30 minutes. One study found the benefit lasted longest in patients with low ionized magnesium. For prevention, oral magnesium reduced the frequency and intensity of attacks in pooled analyses. The overall picture is mixed, however: some meta-analyses rated the evidence as limited, and the trials differ in design, patient selection, dose and magnesium salt. Reported side effects were mild, mainly flushing or a burning sensation during infusion.

In numbers

  • ~15%: share of the general population affected by migraine each year
  • 1–2%: share of total body magnesium found in serum
  • About half: share of the US population with inadequate dietary magnesium intake
  • 21 RCTs: meta-analysis showing relief within 15–45 minutes of IV magnesium and fewer, milder attacks with oral magnesium

For practice

Magnesium is inexpensive, widely available and well tolerated, and it can be combined with standard migraine treatment. Intravenous magnesium is an option for acute attacks, especially when low magnesium is suspected, and oral magnesium can be considered for prevention, with a diet rich in magnesium as the base. Larger standardised trials are still needed to compare magnesium with current migraine drugs.

Source: Dominguez LJ, Veronese N, Sabico S, Al-Daghri NM, Barbagallo M. Magnesium and Migraine. Nutrients. 2025;17(4):725. doi:10.3390/nu17040725