The Mighty Logo

Does Magnesium Help With Migraines? Here's What the Research Says

Feel less alone
Get our helpful emails

Editor's Note

Please see a doctor before starting or stopping a medication or supplement.

Migraine affects roughly 1 in 7 people worldwide, and it’s one of the leading causes of disability in adults under 50. If you’re dealing with it, you’ve probably already tried a few things. Magnesium keeps coming up because, unlike many supplement trends, it has a real body of clinical research behind it — including several studies published in just the last few years.

Here’s what that research shows, without the hype.

Does Magnesium Help Migraines?

Multiple clinical trials and a large body of observational data suggest that magnesium supplementation can reduce how often migraines occur and, sometimes, how severe they are for a meaningful number of people. It’s not a cure. It doesn’t work the same way for everyone. And researchers still describe the overall quality of evidence as moderate, not definitive. A 2025 Cochrane review — Cochrane reviews are considered the gold standard for summarizing medical evidence — examined this exact question and found clear signals of benefit, alongside a call for larger, more rigorous trials.

Magnesium isn’t a miracle. It’s a well-studied, low-risk option with a plausible biological rationale for working and real (if imperfect) data to back it.

Why Magnesium and Migraine Are Connected in the First Place

Researchers have been studying magnesium’s role in migraine for decades.

Magnesium Calms Overactive Nerve Signaling

Magnesium helps regulate the NMDA receptor in the brain, which is involved in pain signaling and nerve excitability. According to a 2025 review, magnesium blocks calcium from flooding into cells via this receptor, helping prevent the nerve overactivation associated with migraine attacks. When magnesium levels run low, that natural brake weakens.

Low Magnesium Shows Up Often in People With Migraine

That same review notes that people with migraine are frequently low in magnesium, whether from insufficient dietary intake or increased loss through the digestive or kidney systems. Older brain-imaging research (using a technique called NMR spectroscopy) found magnesium levels in the brain were about 19% lower during a migraine attack compared to migraine-free periods. That doesn’t prove low magnesium causes migraines — but it’s a consistent pattern researchers keep finding.

It May Calm Blood Vessels and Reduce Inflammation

Magnesium also appears to help stabilize blood vessel tone, reduce the release of pain-signaling chemicals like substance P, and calm the vascular changes associated with migraine aura, according to the American Migraine Foundation. This is part of why magnesium shows particular promise for people who experience migraine with aura.

What Recent Studies Actually Found

Rather than vague claims, here’s a look at specific studies from the last several years.

A 2023 Study Focused on Women of Reproductive Age

A 2023 clinical study found that supplemental magnesium significantly reduced migraine frequency, severity, and duration specifically in women of reproductive age — a group where hormonal shifts often intersect with migraine patterns. This lines up with older research showing magnesium may help with menstrually related migraine, particularly when levels dip in the days before a period.

A 2024 Study Combining Magnesium and Riboflavin

A 2024 observational study followed 699 patients who took 200 mg of magnesium and 200 mg of riboflavin (vitamin B2) twice daily for three months. Participants reported roughly a threefold reduction in migraine frequency and intensity. Riboflavin has its own separate evidence base for migraine prevention, tied to its role in mitochondrial energy production, so this combination approach is worth knowing about even outside a magnesium-only regimen.

A 2025 Analysis of Nearly 7,400 Women

Using U.S. National Health and Nutrition Examination Survey (NHANES) data, researchers examined dietary magnesium intake and migraine frequency among 7,373 women. Premenopausal women with higher magnesium intake reported fewer migraines. This was an observational study, not a controlled trial, so it shows an association rather than proof of cause and effect — but it adds to a fairly consistent picture across different research methods.

A 2025 Cochrane Systematic Review

This is the most rigorous look at the topic. The Cochrane review pooled results from multiple randomized controlled trials to assess the efficacy of magnesium for migraine prevention. Cochrane reviews are designed to filter out weak studies and bias, so their conclusions tend to be more conservative than individual trials. Overall, magnesium shows real potential, but researchers want bigger, longer, better-designed trials before making strong universal recommendations.

A Systematic Review in the Egyptian Journal of Neurology

A 2026 systematic review pooled six randomized controlled trials conducted between 1991 and 2021, including 502 patients, comparing oral magnesium with placebo or standard care. It found magnesium supplementation was linked to reduced migraine frequency and severity. The researchers rated the certainty of that evidence as low to moderate — mainly because the individual trials varied in design — while noting the safety profile was solid. In plain terms: the direction of the evidence is positive, but scientists are still asking for cleaner data.

If there’s one theme running through all of this newer research, it’s consistency without certainty. Nearly every recent study points the same direction — toward benefit — while researchers continue to flag that the evidence base needs to grow. That’s normal for nutrition research generally, not a red flag specific to magnesium.

How Much Magnesium Do Migraine Studies Actually Use

Clinical trials for migraine prevention have generally used 400 to 600 mg of elemental magnesium per day, according to the American Migraine Foundation. That’s the amount of actual magnesium your body absorbs and uses — not the total weight of the supplement pill, which matters more than people realize.

A few practical notes drawn from the research:

  • Doses are often split into two smaller amounts (for example, 200 mg in the morning and 200 mg in the evening) to improve absorption and reduce stomach upset.
  • Food-based magnesium intake alone is unlikely to reach the levels used in these trials. Eating magnesium-rich foods like leafy greens, nuts, and whole grains supports overall health, but the research is actually measuring supplementation.
  • Check the supplement label for “elemental magnesium,” not just the total milligrams of the compound. A capsule labeled “500 mg magnesium glycinate” might only contain around 100 mg of actual elemental magnesium — the rest is the glycine molecule it’s bonded to.

Which Type of Magnesium Works Best for Migraine?

Here’s how the main forms of magnesium compare, based on absorption research.

Magnesium Oxide

This is the most-studied form in migraine trials, largely because it’s inexpensive and widely available. The catch: it’s poorly absorbed, with a bioavailability of roughly 4-10%. That’s why doses tend to be higher, and why diarrhea and cramping are common side effects — the unabsorbed portion pulls water into the gut, which is also why it’s sold separately as a laxative.

Magnesium Citrate

A middle-ground option, with better absorption than oxide (around 25 to 30%) and a milder laxative effect. It can be a reasonable choice for people who deal with both migraine and constipation, though loose stools are still possible at higher doses.

Magnesium Glycinate (Bisglycinate)

This form is bound to the amino acid glycine, which allows for notably better absorption — often cited around 80% — and considerably less digestive upset. It generally requires a higher total dose to hit the same elemental magnesium target, but it’s usually the better-tolerated option for daily, longer-term use. Glycine itself has calming properties, which some clinicians point to as a possible secondary benefit for people whose migraines are tied to poor sleep or stress.

A Newer Option: Microencapsulated Magnesium

A 2024 study published in Nutrients compared a newer microencapsulated magnesium formulation against oxide, citrate, and bisglycinate in a crossover trial with 40 participants. Blood magnesium levels rose significantly and stayed elevated longer with the microencapsulated form compared to the others. This isn’t migraine-specific evidence yet, but it’s a useful data point if absorption has been an issue for you with standard forms.

There’s no single “correct” form. The honest summary from clinical sources is that oxide has the longest research history in migraine trials, while glycinate tends to be better tolerated for daily use.

How Long Before You’d Notice a Difference?

Magnesium is not a fast-acting treatment the way a triptan or an over-the-counter painkiller is during an active attack. It’s studied as a preventive strategy, meaning it works cumulatively.

Most of the clinical trials referenced above ran for 8 to 12 weeks before measuring results. Some clinicians recommend giving it a full 12 weeks at a consistent daily dose before deciding whether it’s helping. That timeline can feel slow when you’re in pain, but it’s consistent with how most migraine-prevention strategies — including prescription options — are evaluated. A single week without a noticeable change doesn’t mean it isn’t working.

Is Magnesium Safe? What the Research Says About Side Effects

The safety profile across these studies is reassuring. The 2026 systematic review rated magnesium’s safety data as moderate-to-high certainty — notably more consistent than the certainty around how well it works, which says something. The most common side effect across nearly every study is gastrointestinal: loose stools, cramping, or diarrhea, especially at higher doses or with less-absorbable forms like oxide. This is uncomfortable, not dangerous, and it typically resolves by lowering the dose or switching forms.

A few safety points drawn directly from clinical sources:

  • Magnesium may interact with certain medications, including some blood pressure medications and antibiotics. Antibiotics are generally recommended to be taken 2 to 3 hours apart from magnesium to avoid interference with absorption.
  • People with kidney disease should talk to a doctor before starting magnesium supplementation, since impaired kidneys have a harder time clearing excess magnesium.
  • Researchers have specifically called for a re-evaluation of the standard upper intake guidelines for magnesium in adults, suggesting that current caution levels may be more conservative than necessary for healthy adults — though this remains an active area of discussion, not a settled conclusion.
  • Serious magnesium toxicity from oral supplements is rare in people with normal kidney function. It’s a real consideration primarily for people with existing kidney disease or those taking very high intravenous doses in a medical setting.

If you already deal with health anxiety, it can help to know this: Magnesium is one of the more thoroughly safety-tested supplements available, specifically because it’s also used in hospitals for other conditions, including intravenously for severe asthma and pregnancy-related complications.

Who Tends to Benefit Most

The research doesn’t indicate that magnesium is universally effective. Based on the studies above, magnesium appears to show the clearest benefit for:

  • People who experience migraine with aura, since magnesium’s effects on nerve signaling and blood vessel tone align closely with aura mechanisms.
  • People with menstrually related migraine, where magnesium levels naturally dip in the days before a period.
  • People with confirmed or suspected low magnesium levels, which is common but often undiagnosed.
  • People looking for a preventive strategy rather than something to reach for mid-attack, since the evidence is strongest for reducing frequency over time, not for stopping a headache already underway.

If none of that describes your pattern, magnesium may still help — the studies above included broader migraine populations too — but expectations are worth calibrating accordingly.

When to Talk to a Doctor Instead of Self-Treating

A few situations call for a conversation with a doctor first rather than starting alone:

  • You have kidney disease or reduced kidney function.
  • You regularly take medications for blood pressure, heart rhythm, or antibiotics.
  • You’re pregnant or breastfeeding — magnesium is generally considered compatible, but dosing should be confirmed with a provider.
  • Your migraines have recently changed in pattern, intensity, or are accompanied by new neurological symptoms. That combination should always be evaluated by a medical professional, regardless of which supplement you’re considering.

None of this is meant to create alarm. It’s the same standard advice that applies to starting any new supplement — check for interactions, confirm it fits your specific health picture, and go from there.

Photo by Anna Shvets / pexel
Originally published: August 13, 2026
Want more of The Mighty?
You can find even more stories on our Home page. There, you’ll also find thoughts and questions by our community.
Take Me Home