Yes, magnesium can prevent migraines, and the evidence behind it is more robust than most people realize. The American Headache Society and the American Academy of Neurology gave magnesium a Level B rating back in 2012, meaning it is “probably effective” for migraine prevention. A February 2025 review published in Neurological Sciences analyzed four randomized controlled trials and found that daily magnesium doses ranging from 122 to 600 mg reduced migraine frequency by approximately 2.5 attacks per month while also easing severity. For someone who suffers eight or ten migraines a month, cutting that number by two or three can be the difference between functioning and not. What makes magnesium particularly noteworthy is its accessibility.
Unlike prescription preventives that carry significant side effect profiles and hefty price tags, magnesium supplements are available over the counter for a few dollars a month. The American Migraine Foundation recommends 400 to 600 mg of magnesium oxide daily as a preventive option, a recommendation that carries real weight given that migraine affects approximately one billion people worldwide. For readers of this site who track brain health closely, the overlap between magnesium’s neurological mechanisms and broader cognitive function makes this research doubly relevant. This article breaks down what the clinical trials actually show, who benefits most from magnesium supplementation, which forms of magnesium work best, and what side effects to watch for. We will also look at how magnesium fits into the bigger picture of brain health and why it matters for populations already vulnerable to neurological decline.
Table of Contents
- What Does the Research Actually Say About Magnesium and Migraine Prevention?
- Why Are Migraine Sufferers So Often Deficient in Magnesium?
- Who Benefits Most From Magnesium for Migraines?
- Which Form of Magnesium Should You Take and How Much?
- Side Effects and When Magnesium Is Not the Right Choice
- Magnesium and Brain Health Beyond Migraines
- Where the Science Goes From Here
- Conclusion
- Frequently Asked Questions
What Does the Research Actually Say About Magnesium and Migraine Prevention?
The strongest piece of recent evidence comes from a 2025 Cochrane Library systematic review by Rodriguez and colleagues, which evaluated magnesium supplementation specifically for migraine prophylaxis by consolidating data from randomized controlled trials. Cochrane reviews are considered the gold standard of medical evidence synthesis, so when one lands in favor of a supplement, clinicians pay attention. Separately, a 2022 systematic review published in Nutrients confirmed magnesium’s role in migraine pathogenesis through multiple pathways, including cortical spreading depression, vascular changes, oxidative stress, and neurotransmitter imbalance. This is not a single study making a bold claim. Multiple independent research teams, using different methodologies, keep arriving at the same conclusion. The clinical trial data is specific enough to be useful. Studies using a 12-week regimen of 600 mg magnesium daily showed that migraines occurred significantly less often in supplemented groups compared to placebo groups.
That 12-week timeline matters because many people try a supplement for two weeks, feel no change, and abandon it. Magnesium prevention is not an aspirin. It requires consistent daily intake over months to shift the underlying neurological patterns that trigger attacks. Compare this to prescription options like topiramate, which also takes weeks to reach full effect but carries risks of cognitive dulling, weight loss, and kidney stones. Magnesium’s side effect profile is mild by comparison. A February 2026 article on Boing Boing titled “Magnesium helps migraines but the rest of the hype is shaky” captured the current state of affairs well. While social media has turned magnesium into a cure-all for anxiety, sleep, muscle cramps, and dozens of other conditions, the migraine evidence stands apart as one of the supplement’s genuinely well-supported benefits. The hype around magnesium for everything else may actually be undermining public trust in the one area where it has solid backing.

Why Are Migraine Sufferers So Often Deficient in Magnesium?
Up to 50 percent of migraine patients have been found to have low magnesium levels during acute attacks, according to an NCBI Bookshelf review. That is a striking number, and it points to a biological relationship that goes beyond coincidence. Magnesium is involved in hundreds of enzymatic reactions in the body, including several that directly affect how nerve cells fire and how blood vessels constrict and dilate. When levels drop too low, the brain becomes more electrically excitable, essentially lowering the threshold for a migraine to ignite. The mechanism most discussed in the literature is cortical spreading depression, the slow wave of electrical activity that sweeps across the brain’s surface and is believed to trigger migraine aura. Magnesium acts as a natural gatekeeper for NMDA receptors, which regulate excitatory signaling in the brain. When magnesium is insufficient, these receptors become overactive, making cortical spreading depression more likely.
Magnesium also influences serotonin receptor function and nitric oxide synthesis, both of which play documented roles in migraine pathology. Deficiency is further associated with oxidative stress, chronic inflammation, and electrolyte imbalances, all recognized migraine triggers. However, there is an important caveat. Standard blood tests for magnesium measure serum levels, which reflect only about one percent of the body’s total magnesium stores. A person can have a normal serum magnesium level and still be functionally deficient at the cellular level. this means that if your doctor runs routine bloodwork and says your magnesium is fine, that does not necessarily rule out deficiency as a contributing factor to your migraines. Some specialists use red blood cell magnesium testing for a more accurate picture, though this is not yet standard practice in most clinical settings.
Who Benefits Most From Magnesium for Migraines?
The evidence is not equally strong for every migraine subtype, and knowing where you fall matters. Patients with migraine with aura have the most substantial evidence supporting magnesium’s effectiveness. This makes biological sense given magnesium’s role in suppressing cortical spreading depression, the phenomenon directly responsible for aura symptoms like visual disturbances, numbness, and speech difficulty. If you experience aura before your migraines, you are in the group most likely to see real benefit from supplementation. Women who suffer from menstrually related migraines also show strong benefit from daily oral magnesium. Hormonal fluctuations around menstruation can deplete magnesium levels, creating a predictable monthly vulnerability.
Some neurologists recommend that women with menstrual migraines start magnesium supplementation a few days before their expected period and continue through it, though daily supplementation throughout the month is the more common preventive approach. For a woman who loses two or three days every month to debilitating headaches, a low-cost supplement with minimal side effects is worth trying before escalating to hormonal therapies or triptans. Magnesium is also especially recommended for people without health insurance, given that it is inexpensive and available without a prescription. It is considered appropriate for individuals who may become pregnant, a population for which many standard migraine preventives are contraindicated. And for anyone seeking a low-side-effect option before committing to daily prescription medication, magnesium represents a reasonable first step. That said, magnesium is not a replacement for medical evaluation. Migraines that change in character, increase in frequency dramatically, or present with new neurological symptoms require proper clinical workup regardless of supplement use.

Which Form of Magnesium Should You Take and How Much?
Not all magnesium supplements are created equal, and the differences between forms are more than marketing. The American Migraine Foundation’s recommendation of 400 to 600 mg of magnesium oxide daily reflects the fact that magnesium oxide is the most studied form for migraine prevention. It packs a high amount of elemental magnesium per dose, which is why researchers have favored it. The tradeoff is lower bioavailability, meaning your body absorbs a smaller percentage of what you swallow compared to other forms. For many people, this works fine at the recommended dose. For others, it causes digestive problems before they reach an effective dose. Magnesium citrate and magnesium dicitrate offer better absorption than oxide. Research has called 600 mg of magnesium dicitrate “safe and cost-efficient” for migraine prophylaxis, making it a reasonable alternative for people who find oxide too harsh on the stomach.
Magnesium glycinate, also called bisglycinate, is the gentlest option on the digestive system and carries the lowest risk of diarrhea. It is well tolerated by most people, though it has been studied less specifically for migraine prevention than oxide or citrate. The practical guidance here is straightforward: if you tolerate oxide, it is the most evidence-backed choice. If oxide causes GI distress, switch to citrate or glycinate rather than abandoning magnesium altogether. The recommended approach is to start low, around 200 to 300 mg per day, and increase gradually over a couple of weeks until you reach the 400 to 600 mg range. This ramp-up period significantly reduces the chance of digestive side effects. Taking magnesium with food also helps. And patience matters: most clinical trials ran for 12 weeks before assessing outcomes, so give supplementation at least two to three months before judging whether it is working for you.
Side Effects and When Magnesium Is Not the Right Choice
The most common side effect of magnesium supplementation is diarrhea, and it is dose-responsive. If you develop loose stools, reducing the dose usually resolves the problem within a day or two. Magnesium is generally considered to have a strong safety profile with low risk of serious side effects, which is one reason it is recommended so broadly. But “generally safe” does not mean universally appropriate. People with kidney disease need to be cautious with magnesium supplementation because the kidneys are responsible for excreting excess magnesium. Impaired kidney function can lead to magnesium accumulation, which in severe cases causes dangerously low blood pressure, respiratory depression, or cardiac arrhythmias. If you have chronic kidney disease or are on dialysis, do not start magnesium supplementation without explicit guidance from your nephrologist.
Similarly, magnesium can interact with certain medications, including some antibiotics, bisphosphonates, and diuretics. If you take prescription medications daily, check with your pharmacist about timing and interactions before adding magnesium to your regimen. It is also worth acknowledging what magnesium cannot do. It is a preventive measure, not an acute treatment. Taking magnesium during an active migraine will not stop the attack. Some emergency departments use intravenous magnesium for severe migraines, but that is a different delivery method at a different dose under medical supervision. Oral magnesium’s value is in reducing how often attacks occur and how severe they are over time. People who need both prevention and acute relief will still require a separate rescue medication for breakthrough migraines.

Magnesium and Brain Health Beyond Migraines
For readers focused on cognitive health and dementia prevention, magnesium’s role in migraine is part of a larger neurological picture. The same mechanisms that make magnesium relevant to migraines, NMDA receptor regulation, reduction of oxidative stress, anti-inflammatory effects, and support of healthy blood vessel function, are also implicated in neurodegenerative processes. Chronic migraine itself has been associated in some epidemiological studies with increased risk of white matter lesions and, in certain populations, modestly elevated vascular dementia risk. Addressing magnesium deficiency is not just about headache relief.
It is about maintaining the neurological environment that supports long-term brain function. This does not mean magnesium prevents dementia. That claim would outrun the current evidence. But ensuring adequate magnesium intake is one of those low-cost, low-risk interventions that aligns with broader brain health maintenance, particularly for aging adults whose dietary magnesium intake often falls below recommended levels.
Where the Science Goes From Here
The 2025 Cochrane review by Rodriguez and colleagues represents a turning point in how seriously the medical community takes magnesium for migraine. Cochrane reviews often inform clinical guidelines, and as this evidence filters into practice, we may see magnesium move from a “worth trying” recommendation to a standard first-line preventive suggestion, particularly for patients who prefer to avoid pharmaceuticals or who cannot tolerate existing options.
Future research will likely focus on identifying which patients are most likely to respond, possibly through more accessible magnesium testing methods, and on determining whether specific magnesium formulations outperform others in head-to-head trials. For now, the practical takeaway is clear: magnesium supplementation for migraine prevention is supported by credible, replicated evidence, and for many sufferers, it is an underused tool that deserves more attention than it currently receives.
Conclusion
Magnesium supplementation at 400 to 600 mg daily is one of the best-supported, most accessible preventive options for migraine sufferers. The American Headache Society and American Academy of Neurology have rated it as probably effective, multiple systematic reviews confirm its ability to reduce attack frequency by roughly 2.5 episodes per month, and its safety profile makes it appropriate for populations that many prescription drugs cannot safely reach. People with migraine with aura and those with menstrually related migraines stand to benefit most, though the evidence extends broadly. If you experience frequent migraines and have not tried magnesium, talk to your doctor about starting with 200 to 300 mg daily and working up to the 400 to 600 mg range over a few weeks.
Choose magnesium oxide for the most studied option, or citrate and glycinate if you need better tolerability. Give it a full 12 weeks before assessing results. And remember that magnesium is one piece of a larger puzzle. It works best alongside proper hydration, consistent sleep, stress management, and regular medical follow-up, the same foundations that support brain health at every stage of life.
Frequently Asked Questions
How long does it take for magnesium to start preventing migraines?
Most clinical trials assessed results after 12 weeks of daily supplementation. Some people notice improvement sooner, but you should commit to at least two to three months of consistent use before deciding whether magnesium is working for you.
Can I take magnesium if I am already on a prescription migraine preventive?
In many cases, yes. Magnesium is often used alongside prescription preventives. However, it can interact with certain medications, so consult your doctor or pharmacist before combining it with other treatments, particularly antibiotics, diuretics, or bisphosphonates.
Is magnesium oxide or magnesium glycinate better for migraine prevention?
Magnesium oxide has been more extensively studied in migraine trials and delivers more elemental magnesium per dose. Magnesium glycinate is better tolerated and less likely to cause diarrhea. If you tolerate oxide without GI problems, it has the stronger evidence base. If oxide upsets your stomach, glycinate or citrate are reasonable alternatives.
Will taking magnesium stop a migraine that has already started?
Oral magnesium supplements are preventive, not acute treatments. They reduce how often migraines occur over time but will not halt an active attack. Intravenous magnesium is sometimes used in emergency settings for acute migraines, but that is a different clinical intervention.
How do I know if I am magnesium deficient?
Standard blood tests measure serum magnesium, which reflects only about one percent of total body stores and can appear normal even when cellular levels are low. Red blood cell magnesium testing is more accurate but not widely used. If you have frequent migraines, a trial of supplementation may be more practical than testing, given magnesium’s low cost and safety profile.
Are there foods high enough in magnesium to prevent migraines without supplements?
Dark leafy greens, nuts, seeds, legumes, and whole grains are good dietary sources. However, reaching the 400 to 600 mg daily dose shown effective in trials through food alone is difficult for most people, which is why supplementation is typically recommended for migraine prevention specifically.





