Short answer: Of everything magnesium does, migraines are where its evidence stands out most. People who get migraines tend to run lower in magnesium, and major headache organisations rate it as "probably effective" for prevention. There's a big caveat, though: the doses used in that research are far higher than you'd get from an everyday supplement, and migraine is a medical condition, so if you live with migraines, this is one to plan with your doctor, who can advise on the right form and dose. For ordinary headaches, the usual culprits (dehydration, skipped meals, stress and poor sleep) usually matter more.
Why magnesium and migraines are linked
There are good biological reasons the two are connected. Magnesium is involved in calming nerve signalling, regulating neurotransmitters like serotonin, and helping manage the brain chemistry and blood-vessel changes thought to play a part in migraine. Studies have also found that people who get migraines often have lower magnesium levels, including between attacks, which is part of why researchers became interested in it in the first place. There's even a suggestion it may be particularly relevant for migraine with aura.
What the guidelines and research say
This is the area where magnesium has the strongest backing of any of its uses. Back in 2012, the American Headache Society and the American Academy of Neurology reviewed the evidence and gave magnesium a "Level B" rating for migraine prevention, meaning it's probably effective and worth considering. That's the highest grade they've given any nutrient-based option for migraine.
A few things are important to understand about that evidence:
- The doses are high. Headache guidelines typically refer to around 400–600mg of magnesium a day for prevention, well above normal dietary intake, and well above what an everyday supplement provides.
- It's about prevention, and it takes time. Most trials ran for around three months. It's a preventive strategy taken daily, not something that stops a headache once it's started.
- Form and absorption matter. Some commonly studied forms are poorly absorbed, and specialists often favour well-absorbed forms. The right choice is something to discuss with your doctor.
Important: this is doctor-guided territory
Because effective use for migraine means higher, sustained doses, this isn't something to self-prescribe from the supplement aisle. High-dose magnesium can cause side effects (most commonly diarrhoea), and it can interact with some medications. People with kidney disease, heart conditions or diabetes, and anyone pregnant, should clear it with their doctor first.
The takeaway: if you get migraines, magnesium is genuinely worth raising with your GP or headache specialist as part of a plan, but it's their call on form, dose and whether it's right alongside your other treatments.
Everyday headaches are a different story
Most run-of-the-mill headaches aren't migraines, and they often come down to simpler things:
- Dehydration
- Skipping meals
- Poor or broken sleep
- Stress and tension
- Too much screen time, or a sudden change in caffeine
For these, the fixes are usually the basics, like water, regular meals, sleep and a break from the screen. Keeping your overall magnesium intake adequate supports your nervous system generally, but it's no substitute for addressing the trigger.
When to see a doctor
Please get medical advice if your headaches are frequent, severe or getting worse, if they're a new pattern for you, or if you ever get a sudden, severe "worst headache of my life", that needs urgent attention. A doctor can diagnose what's actually going on, which matters far more than any supplement.
Getting enough magnesium day to day
Outside of doctor-guided migraine prevention, it's still sensible to make sure you're getting enough magnesium overall, through magnesium-rich foods like leafy greens, nuts, seeds, legumes and whole grains, topped up with a supplement if you fall short.
Our Haircarebear Magnesium Gummies provide 150mg of well-absorbed magnesium citrate per serve in a berry-flavoured gummy, vegan- and vegetarian-friendly, an easy way to support your everyday magnesium intake. (They're a general daily top-up, not a migraine-prevention dose. If migraine prevention is your goal, talk to your doctor about the right approach.) For the full picture of what magnesium does, see our complete guide: What does magnesium actually do?
The bottom line
Migraines are the standout area for magnesium's evidence. Headache experts consider it a "probably effective" preventive option, and low magnesium is common in people who get them. But the effective doses are high, the approach is preventive and slow to show, and migraine is a condition best managed with your doctor. For everyday headaches, look to hydration, meals, sleep and stress first, and keep your general magnesium intake topped up as part of a healthy routine.
Frequently asked questions
Does magnesium help with migraines? The research is encouraging. Major headache organisations rate magnesium as "probably effective" for migraine prevention, and people who get migraines often have lower magnesium levels. Because the effective doses are high and migraine is a medical condition, it's best used as part of a plan with your doctor.
How much magnesium is used for migraines, and which form? Headache guidelines generally refer to around 400–600mg of magnesium a day, in a well-absorbed form, taken consistently. The right form and dose for you is a conversation to have with your GP or headache specialist.
Will an everyday magnesium gummy prevent migraines? An everyday gummy supports your general magnesium intake, but it provides much less than the doses studied for migraine prevention, so it shouldn't be thought of as a migraine treatment. If prevention is your goal, speak with your doctor.
Can magnesium stop a migraine that's already started? Magnesium is studied mainly as a daily preventive, not a way to stop an attack in progress. (Hospitals sometimes use intravenous magnesium for acute migraine, but that's a clinical setting, not a supplement at home.)
When should I see a doctor about headaches? If headaches are frequent, severe, worsening, new for you, or sudden and intense, see a doctor promptly so the cause can be properly assessed.
Written by the Haircarebear team. Reviewed by Katie van der Mye, Innovations Manager (BA, MPRA, MM).
This article is general information only and isn't medical advice. Please speak with your health professional about your individual needs.
Sources: the American Migraine Foundation and American Headache Society / American Academy of Neurology guidance rating magnesium "probably effective" (Level B) for migraine prevention, and reviews reporting effective doses of 400–600mg/day over around three months.