If you get migraines, you've probably wondered whether a supplement could cut down how often they hit. Magnesium is one of the few that has reasonable evidence behind it for prevention — but the details matter, so let's walk through them honestly.
Does magnesium help migraines?
Among supplements studied for migraine, magnesium is one of the better-supported options. Several professional bodies have listed it as a reasonable preventive choice for people trying to reduce how often migraines occur, alongside options like riboflavin (vitamin B2) and coenzyme Q10. The evidence isn't as strong as for prescription preventives, and trials are mixed in size and quality — but the overall picture is encouraging enough that magnesium for migraines is a mainstream conversation, not fringe advice.
Why might it work? Magnesium is involved in nerve signaling, blood-vessel tone, and the brain chemistry around serotonin — all relevant to the machinery of a migraine. Some people who get migraines also tend to run lower in magnesium, which is part of the rationale.
It's a preventive, not a painkiller
This is the single most important point. Magnesium taken as a daily supplement is a preventive strategy — the goal is fewer attacks over weeks and months. It is not a reliable acute treatment to swallow once a migraine has already started. (Intravenous magnesium is sometimes used in clinical settings for certain acute migraines, but that's a medical procedure, not the oral capsule on your shelf.)
Because it's preventive, you have to take it consistently and give it time. Most people who try it allow at least 4 to 12 weeks before judging whether it's helping. If you stop after a few days because nothing changed, you haven't really tested it.
Who is most likely to benefit
Magnesium tends to be raised as an option especially for people who:
- Have frequent migraines and want a low-risk preventive to try.
- May have low magnesium intake or stores (food first, but supplements can fill a gap — see magnesium deficiency symptoms).
- Get menstrual migraines — attacks that cluster around the drop in estrogen before a period.
- Prefer to start with a gentle, inexpensive measure before, or alongside, prescription options.
None of this makes magnesium a cure. For many people the effect is modest, and some notice no change at all. It's a reasonable thing to try, not a guarantee.
The menopause and hormonal angle
Migraines are deeply tied to hormones, which is why so many women find their pattern shifts over a lifetime — and again in midlife. During perimenopause, estrogen rises and falls unpredictably, and those swings can make migraines more frequent or more intense before they often settle after menopause. We cover this shift in detail in menopause and migraines, and migraine as a condition in our migraine overview.
For women whose migraines track with hormonal changes — menstrual or perimenopausal — a daily preventive like magnesium is one of the lower-risk tools to discuss with a clinician. It won't fix the underlying hormone swings, but it may take the edge off frequency for some.
Which form and how much?
Preventive doses studied for migraine are typically higher than the everyday amount people take for general health, which is exactly why this is a conversation to have with a clinician rather than a guess. For context, the recommended dietary intake is roughly 310–320 mg/day of magnesium for adult women, and general supplements often supply 200–400 mg of elemental magnesium. Preventive migraine regimens often sit at the higher end or above — your clinician can advise a target and check it's right for you.
The form matters because absorption and side effects differ. Our full guide to magnesium types goes deeper, but here's the short version:
| Form | Absorption | Notes for migraine use |
|---|---|---|
| Citrate | Well absorbed | Commonly used; can loosen stools, which becomes the dose limit for many people. |
| Oxide | Poorly absorbed | Cheap and widely sold, but acts mainly as a laxative; you absorb relatively little. |
| Glycinate | Well absorbed | Gentler on the stomach, so easier to tolerate at higher preventive doses. |
| L-threonate | Well absorbed | Marketed for the brain on limited evidence; usually more expensive. |
The diarrhea ceiling
The most common reason people can't reach a preventive dose is loose stools or diarrhea — the body's way of dumping excess magnesium. This is more pronounced with citrate and oxide. If your stomach is the limiting factor, a better-absorbed, gentler form such as glycinate may let you tolerate a higher daily amount. Splitting the dose across the day can also help.
Food first
Supplements aren't the only route. Many people fall short of the recommended magnesium intake, and food is a sensible starting point. Good sources include:
- Pumpkin seeds, almonds, cashews and other nuts and seeds
- Spinach and other leafy greens
- Black beans, edamame and legumes
- Whole grains and dark chocolate
For the broader picture of magnesium's role, intake and sources, see our pillar guide to magnesium benefits, sources and dosage, and our roundup of magnesium for menopause.
What about magnesium for headaches generally?
People often search "magnesium for headaches," but the evidence is specific to migraine, a distinct neurological condition — not every tension headache or one-off head pain. If your headaches are frequent or you're not sure they're migraines, that's worth sorting out with a clinician, because the right treatment depends on the diagnosis.
Safety and a few important cautions
For most healthy people, supplemental magnesium at sensible doses is well tolerated, with diarrhea the usual limiter. But there are real cautions:
- Talk to a clinician first about preventive dosing. Migraine-prevention doses can be higher than typical supplements, so this should be a deliberate, supervised choice — not self-prescribed at random.
- Kidney disease is a key caution. If your kidneys don't clear magnesium well, it can build up to dangerous levels. Don't start supplements without medical advice.
- Medication timing. Magnesium can interfere with some medicines, including certain antibiotics and bisphosphonates — separating the timing usually helps, but check with a pharmacist.
- A normal blood test isn't the whole story. The body keeps blood magnesium tightly controlled, so a normal result doesn't fully rule out low stores.
When to see a clinician
Magnesium is best used as part of a plan, not a solo experiment — so loop in a clinician before starting, especially to set a preventive dose and rule out reasons to avoid it. Seek medical advice promptly, and don't wait on a supplement, if you have:
- A sudden, severe "worst-ever" headache, or one that peaks within seconds to minutes.
- A new type of headache, a clear change in your usual pattern, or headaches that are becoming more frequent or severe.
- Headache with fever, stiff neck, confusion, weakness, vision loss, trouble speaking, or after a head injury.
- A first migraine-like headache after age 50, or any headache that worries you.
- Kidney disease, pregnancy, or a list of regular medications — get tailored advice before supplementing.
Used thoughtfully and with medical input, magnesium is a reasonable, low-risk thing to try for migraine prevention — just keep your expectations honest and your clinician in the loop.



