CLARU
Migraine prevention10 min read

Magnesium for Migraines: Form, Dose & How Long

By the Claru Editorial Team

This educational article has not been independently medically reviewed. It cannot diagnose a condition or replace care from a qualified healthcare professional. Read our editorial standards.

Does magnesium help migraines? For some people, modestly, yes. Magnesium is one of the few supplements with enough trial evidence to appear in migraine prevention guidelines: the 2012 American Academy of Neurology / American Headache Society guideline rated it "probably effective" for preventing episodic migraine, and the Canadian Headache Society gave magnesium citrate a strong recommendation, while noting that the quality of evidence was low. It isn't a rescue treatment for an attack that has already started, and it doesn't work for everyone.

Search "magnesium for migraines" and most of what you'll find is forum threads. They're useful, and they're all over the place. One person's neurologist swears by oxide. Someone else says citrate is "just a laxative." A third person took glycinate for a month, felt nothing, and quit.

This guide answers the questions those threads keep circling: which form, what dose the research actually used, how long to wait, and how to tell whether it's working for you.

What the research actually shows

The short version: a handful of small trials, mostly positive, one notable negative, and guidelines that land on "worth trying."

  • The positive trial everyone cites. In a 1996 German study of 81 adults, people took 600 mg of magnesium daily (as trimagnesium dicitrate) or a placebo for 12 weeks. By weeks 9–12, attack frequency had dropped 41.6% in the magnesium group versus 15.8% on placebo. The main side effect was diarrhea, in about 1 in 5 people.
  • The negative trial people don't mention. A study published the same year used a different magnesium salt at a lower dose (20 mmol a day) and found no benefit over placebo. Nearly half the magnesium group reported soft stools or diarrhea, and the trial was stopped early.
  • The meta-analysis. A 2016 pooled analysis of randomized trials found that both oral and IV magnesium reduced migraine frequency and intensity, though the individual studies were small and varied in design.

So the honest summary is: promising, inexpensive, generally well tolerated, and not a sure thing. That's exactly why the way you try it matters.

Which magnesium is best for migraines?

This is the question that dominates every forum thread. Here's how the common forms compare.

  • Citrate (including trimagnesium dicitrate): the form used in the best-known positive trial, and the one named in the Canadian guideline. Absorbed reasonably well, but more likely to loosen stools at higher doses.
  • Oxide: widely recommended by headache clinics and used in some trials. It's cheap and dense in elemental magnesium, though a smaller share gets absorbed. It can also cause diarrhea.
  • Glycinate (bisglycinate): very little migraine-specific trial data. It's popular because many people find it gentler on the gut.
  • Threonate, taurate, malate: no meaningful migraine trial evidence. Often marketed for "brain health" and usually pricier per milligram.

Two things get lost in the "which form" debate.

Elemental magnesium is the number that matters. A label that says "magnesium citrate 1,000 mg" might contain only around 150–160 mg of actual magnesium. Check the "Amount per serving" line for elemental magnesium, not the weight of the compound.

The best form is the one you can take every day. A trial of magnesium only tells you something if you take it consistently for three months. If oxide sends you running to the bathroom, a gentler form you'll actually stick with may be more useful than a "better studied" one you abandon in week two. That's a trade-off to make with a clinician or pharmacist, not a reason to skip the conversation.

How much magnesium for migraines?

Doses in migraine research and clinical practice usually fall somewhere around 400–600 mg of elemental magnesium a day. The 1996 positive trial used 600 mg, and many headache specialists suggest a starting point in the 400–500 mg range.

That's higher than the general safety ceiling. The US National Institutes of Health sets the tolerable upper intake level for magnesium from supplements at 350 mg a day for adults, mainly because of diarrhea and cramping. Doses above that are normally used under medical supervision.

That's why this section gives you the research doses and not a personal dose. Talk to a clinician or pharmacist before starting, and especially if you:

  • have kidney disease or reduced kidney function (magnesium can build up)
  • are pregnant, trying to conceive, or breastfeeding
  • take antibiotics in the tetracycline or quinolone families, or osteoporosis drugs called bisphosphonates (magnesium can block their absorption, so timing matters)
  • take diuretics or long-term acid reducers (PPIs), which can affect magnesium levels
  • have a heart condition or take heart-rhythm medicines

Splitting the daily amount across two doses with food is a common way to reduce stomach upset. Ask whoever recommends your dose whether that suits you.

"My magnesium levels are normal. So why would it help?"

This is one of the most-asked questions, and it's a fair one.

Less than 1% of the body's magnesium is in the blood. Most sits in bone and soft tissue, and the body works hard to keep blood levels stable. So a normal serum magnesium test doesn't tell you much about total magnesium status, and it can't predict whether a supplement will reduce your migraines.

The trials didn't require people to be deficient to join. Some research suggests that people with migraine with aura may respond better, but that hasn't been settled. In practice, a normal blood test isn't a reason to rule magnesium out, and a low one isn't proof it will work.

How long does magnesium take to work for migraines?

Longer than most people give it.

In the positive 1996 trial, the measured benefit was in weeks 9–12, not week two. Most migraine preventives are judged over two to three months, and magnesium is no different.

The most common way people end up deciding "magnesium didn't work" is by quitting at three or four weeks, or by taking it on and off. A fair trial means a steady dose for about 12 weeks.

How to run a fair 12-week magnesium trial

Forum threads can tell you what worked for a stranger. They can't tell you whether it's working for you. For that you need before-and-after numbers.

Here's a simple structure to agree on with your clinician.

1. Log a baseline month first

Before you start, track at least 4 weeks of:

  • migraine days and headache days
  • severity (1–10) and how long each attack lasts
  • acute medication days, meaning any day you took a painkiller or triptan

Without a baseline, you're comparing against memory, and memory is a bad witness. A migraine trigger diary or a headache diary works fine.

2. Change one thing

Start magnesium at the dose you agreed on, and try not to start other preventives, supplements or big routine changes at the same time. If you start magnesium, riboflavin and a new sleep schedule in the same week and things improve, you won't know which one helped.

3. Log the same things, plus side effects

Keep logging the baseline measures every day. Add:

  • whether you took the dose (yes/no)
  • any digestive side effects

Missed doses matter. "It didn't work" means something very different at 95% adherence than at 60%.

4. Compare months 2–3 against baseline

Week-to-week numbers are noisy, so judge the trial on monthly migraine days. Clinical trials usually call a preventive a success for someone if it cuts monthly migraine days by 50% or more. Smaller improvements can still be worth keeping if side effects are minimal. That's a call to make together with your clinician, using your log.

Also watch your acute medication days. Fewer painkiller days is a meaningful win even if the attack count barely moves.

5. Decide, don't drift

At the end of 12 weeks, bring the numbers to your appointment and make a decision: continue, change form or dose, or stop and try something else. Our migraine doctor appointment checklist covers what else to bring.

Magnesium, B2 and CoQ10: the "migraine cocktail"

You'll often see magnesium recommended alongside riboflavin (vitamin B2) and coenzyme Q10. All three have been studied separately for migraine prevention, and the Canadian guideline gave each one a strong recommendation, based on limited evidence. Some combination products bundle them together.

The catch is that starting all three at once makes it impossible to tell which one helped, or which one gave you side effects. If you and your clinician decide on a combination, keep the baseline-and-log approach above so you can still judge the result as a whole.

Magnesium for a migraine attack

Oral magnesium is a preventive. It's not designed to stop an attack that has already started.

IV magnesium is different: emergency departments sometimes give it for severe or prolonged attacks, and there's some evidence it helps, particularly in migraine with aura. That's a clinical treatment, not something to copy at home with extra pills.

Magnesium for menstrual migraine

Some small studies have tried magnesium for attacks linked to the menstrual cycle, including taking it only in the second half of the cycle. The evidence is thin, but it's a reasonable question to raise if your attacks cluster around your period. Our guide to menstrual migraine covers how to track the cycle window.

When magnesium isn't the right next step

A supplement trial makes sense for stable, familiar migraine. It's not the right move for new or changing headaches. Get medical care promptly for a sudden "worst headache of your life," new weakness, confusion, trouble speaking, fever with a stiff neck, or a headache after a head injury. See headache warning signs for the full list.

And if you're having migraines on many days a month, you may be a candidate for prescription preventives that have much stronger evidence. Magnesium can sit alongside those, but it shouldn't delay that conversation.

Quick answers

Which magnesium is best for migraines? The best-known positive trial used magnesium citrate, and many headache clinics recommend oxide. Glycinate has little migraine-specific evidence but is often easier on the stomach. The best form is one your clinician approves and you can take consistently.

Is magnesium citrate bad for migraines? No. It's the form used in the most-cited positive trial. It can loosen stools at higher doses, which is why some people switch forms.

Can you take magnesium every day for migraines? In the trials, yes: daily for 12 weeks. Doses used for migraine are above the general supplement upper limit, so agree on a dose with a clinician first.

How long before magnesium works for migraines? Expect to judge it at around 2–3 months, not 2–3 weeks.

Should I take magnesium in the morning or at night? There's no strong evidence for one time over another. Consistency matters more, and taking it with food may reduce stomach upset.

Make your 12-week trial count with Claru

The hardest part of a magnesium trial isn't buying the bottle. It's keeping an honest record for three months so you can tell real change from wishful thinking.

Claru lets you log attacks, severity and acute medication in a few taps, add a custom entry for each daily dose, and turn the history into a doctor report for your next appointment. It won't tell you whether to take magnesium. It gives you and your clinician the numbers to decide.


Sources: Peikert et al. (1996), oral magnesium for migraine prophylaxis; Pfaffenrath et al. (1996), magnesium prophylaxis trial; Holland et al. (2012), AAN/AHS guideline on complementary treatments for migraine prevention; Pringsheim et al. (2012), Canadian Headache Society prophylaxis guideline; Chiu et al. (2016), meta-analysis of IV and oral magnesium for migraine; NIH Office of Dietary Supplements, magnesium fact sheet. Last reviewed October 9, 2026.

This article is educational and does not replace personal medical advice.