Magnesium for Migraine Not Working? The Dose, the Form and the Timing Most People Get Wrong

Magnesium is worth trying for migraine prevention, and it is usually not working because of the form, the dose, or the patience: most people need 400–600 mg of elemental magnesium daily for two to three months, and the form they bought is often the one most likely to cause diarrhea and make them quit early.

A woman in her thirties came to my clinic last month holding a bottle of magnesium she had been taking “for six weeks.” She had read that it prevents migraine, started one 100 mg tablet a day, and felt nothing. She concluded that supplements are a scam. In reality she had taken about a fifth of a studied dose for half of the time a trial would have given it. That conversation happens in my office several times a month, so here is how I approach it.

What the evidence does and does not say

Magnesium is one of the few supplements with a place in formal guidance. The 2012 American Academy of Neurology and American Headache Society guideline rated magnesium as “probably effective” for migraine prevention (Level B), alongside riboflavin and a few herbal options. That is a modest rating, and I tell patients so. The trials were small, the effect was modest, and results were not uniform. Magnesium is not a substitute for a proven preventive when someone has frequent, disabling attacks. It is a reasonable first step for mild to moderate migraine, and it can sit alongside other treatments.

The rationale is plausible: magnesium influences cortical spreading depression, NMDA receptors and vascular tone, and some people with migraine have lower magnesium levels. But a normal blood level does not mean magnesium will fail, and a low one does not guarantee success. Serum magnesium is a poor reflection of what is inside cells, so I do not usually test it to decide.

Why it often “doesn’t work”: dose, form and time

Dose. The studied range is roughly 400–600 mg of elemental magnesium per day, often split into two doses. Check the label carefully. “Magnesium oxide 500 mg” may contain only about 300 mg of elemental magnesium, while a 100 mg “magnesium” capsule is simply too little.

Form. Magnesium oxide has the best-known trial data but is poorly absorbed and loosens the bowels. Citrate also loosens stools. Glycinate and malate tend to be gentler on the gut, though they have less migraine-specific research. If diarrhea is the reason you stopped, a different form taken with food, or a lower starting dose raised slowly, is a fair solution rather than giving up.

Time. Like most preventives, magnesium needs about eight to twelve weeks. Judge it by a diary: attacks per month, days of disability, and how many acute pills you take. Without a diary, memory is unreliable. If you are not keeping one yet, my notes on how long a preventive needs and when to switch explain what to track.

Who should be careful

Magnesium is cleared by the kidneys. If you have reduced kidney function, do not start it without your doctor, because it can accumulate. It can also interact with certain medicines: it reduces absorption of some antibiotics (tetracyclines and quinolones), bisphosphonates and thyroid tablets, so separate doses by a few hours. Very high doses cause diarrhea, low blood pressure and, rarely, serious toxicity, so more is not better. Magnesium is generally regarded as acceptable in pregnancy, but please read my guide to migraine medicines in pregnancy and agree the dose with your obstetrician.

When magnesium is the wrong plan

If you have headaches on more than about eight days a month, or you are taking painkillers on ten or more days, a supplement alone is not enough, and the painkillers themselves may be feeding the problem. See how rebound headaches develop and how to stop them. In that situation I would pair magnesium with a prescription preventive, such as candesartan or one of the options on the longer list.

Also, a supplement should never be the answer to a new, different or worsening headache. If your pattern has changed, or nothing you try seems to help, the real question may be whether the diagnosis is right. That is the subject of what doctors miss when a headache isn’t getting better.

How I suggest trying it

Start with 200 mg elemental magnesium in the evening with food for a week, then increase toward 400 mg, up to 600 mg if tolerated and your doctor agrees. Keep a diary from day one. Reassess at twelve weeks. If attacks have fallen by a third or more, keep going; if not, stop and move on without guilt. Riboflavin (vitamin B2) 400 mg daily has similar modest support and can be added, though it turns urine bright yellow, which is harmless.

Seek urgent care for a sudden “worst ever” headache, weakness, speech or vision loss, fever with a stiff neck, or a headache after a head injury. Supplements are for ordinary migraine, not for these.


Next steps: Check yourself against my free headache red-flag checklist. If your migraines are still not under control, you can talk to a specialist.

By Dr. Tae-Ho Guak, MD, neurologist with 25 years of clinical experience. This article is for general education and is not a substitute for personal medical advice, diagnosis or treatment. Always consult a qualified clinician before starting a supplement or changing medication.

From the textbook. Chapter 18, “Neuromodulation, Behavioural and Complementary Treatments,” of my clinical textbook Headache Medicine covers this topic in full for doctors, with the evidence and decision pathways behind it. About the book →

Scroll to Top