What You'll Learn
- Why magnesium deficiency is directly linked to headaches and migraines
- How magnesium works in the brain to reduce migraine frequency
- Which form of magnesium is best for headache prevention
- The clinically studied dose that reduced migraines by up to 41%
- How to combine magnesium with riboflavin for even better results
Why Magnesium for Headaches? The Deficiency Connection
Magnesium for headaches isn't a fringe idea — it's one of the most well-studied natural approaches to migraine prevention in clinical medicine. The American Academy of Neurology and the American Headache Society both recognize magnesium supplementation as "probably effective" for migraine prevention, giving it a Level B evidence rating.
The connection starts with a simple fact: up to 50% of migraine sufferers have been found to have low magnesium levels, according to research published in The Journal of Headache and Pain. And it's not a coincidence. Magnesium plays a critical role in neurotransmitter regulation, blood vessel tone, and inflammation — three processes that go haywire during a migraine attack.
What makes this particularly frustrating is that standard blood tests often miss magnesium deficiency. Only about 1% of your body's magnesium lives in the blood — the rest is in your bones, muscles, and tissues. So you can have a "normal" serum magnesium level and still be functionally deficient in the mineral your brain needs most.
How Magnesium Works Against Headaches and Migraines
Magnesium doesn't just mask pain — it addresses several of the underlying mechanisms that trigger headaches in the first place. Understanding these pathways explains why it's effective for prevention rather than acute relief.
At the cellular level, magnesium acts as a natural calcium channel blocker and NMDA receptor antagonist. In plain language: it prevents excessive nerve excitation that can trigger the cascade of events leading to a migraine. When magnesium is low, neurons become hyperexcitable, pain signals amplify, and blood vessels in the brain can spasm unpredictably.
NMDA Receptor Blocking
Magnesium blocks excessive glutamate activity at NMDA receptors, reducing the neuronal hyperexcitability that triggers migraine aura and pain.
Blood Vessel Relaxation
Acts as a natural calcium channel blocker, helping prevent the vasospasm and subsequent dilation that characterize migraine attacks.
Cortical Spreading Depression
Magnesium may inhibit cortical spreading depression — the wave of brain activity responsible for visual aura in migraine with aura.
Inflammation Reduction
Helps modulate inflammatory markers like substance P and calcitonin gene-related peptide (CGRP) involved in migraine pain signaling.
What the Clinical Evidence Shows
The evidence for magnesium in migraine prevention is robust enough that neurologists routinely recommend it. Several well-designed clinical trials have demonstrated meaningful reductions in migraine frequency, severity, and duration.
The landmark study by Peikert et al. (1996), published in Cephalalgia, found that 600mg of oral magnesium daily reduced migraine frequency by 41.6% compared to 15.8% with placebo over 12 weeks. Migraine duration and intensity also decreased significantly in the magnesium group.
A 2012 meta-analysis in Headache confirmed these findings across multiple trials, concluding that oral magnesium supplementation is effective for migraine prophylaxis, particularly in patients with documented magnesium deficiency or migraine with aura. The American Headache Society subsequently included magnesium in its evidence-based treatment guidelines.
More recently, research published in Nutrients (2020) examined the combination of magnesium with riboflavin (vitamin B2) for migraine prevention, finding that the combination may be more effective than either supplement alone — a protocol now used by many integrative neurologists.
Clinical evidence: The American Academy of Neurology rates magnesium supplementation as Level B evidence ("probably effective") for migraine prevention — the same evidence level given to several prescription migraine medications.
Magnesium Dosage for Headache Prevention
The dosage that works for general health isn't the same as what's been studied for migraine prevention. Clinical trials have consistently used higher doses than the standard RDA, and the form of magnesium matters as much as the amount.
KINDNATURE's 2-in-1 Magnesium Gummies combine 200mg magnesium glycinate with 50mg magnesium citrate per serving (250mg total elemental magnesium). For migraine prevention at the clinical dose, you'd take 2 servings daily to reach approximately 500mg — well within the studied range.
Which Form of Magnesium Is Best for Headaches?
Not all magnesium is created equal when it comes to headache prevention. The form determines how well it's absorbed, whether it crosses the blood-brain barrier, and how well your gut tolerates it at higher doses.
Magnesium glycinate is the preferred form for migraine prevention. The glycine amino acid carrier improves absorption and has a calming effect on the nervous system — a bonus for stress-triggered headaches. It's also the gentlest on the stomach, which matters when you're taking 400–600mg daily.
Magnesium citrate has good bioavailability and is well-studied for headaches, though it can cause loose stools at higher doses. The combination of glycinate and citrate — as found in KINDNATURE's 2-in-1 formula — gives you the best of both worlds: high absorption with minimal digestive issues.
Magnesium oxide was used in some older clinical trials, but it has the lowest absorption rate (approximately 4%) and is more likely to cause GI distress. If your current magnesium supplement isn't helping your headaches, check the label — oxide might be the reason. Learn more about the differences in our magnesium glycinate vs citrate comparison.

Side Effects and Safety Considerations
Magnesium supplementation is safe for most people, but there are some important considerations — especially at the higher doses used for migraine prevention.
The most common side effect at preventive doses is digestive discomfort — primarily loose stools or diarrhea. This is more common with magnesium oxide and citrate than glycinate. Starting at a lower dose (200mg) and gradually increasing over 1–2 weeks can minimize this issue. Taking it with food also helps.
The tolerable upper intake level for supplemental magnesium is 350mg/day according to the NIH, but clinical trials for migraine prevention have safely used 400–600mg daily under medical supervision. If you're considering doses above 400mg, discuss it with your healthcare provider.
Building a Migraine Prevention Stack
Magnesium works well on its own, but research suggests it's even more effective when combined with specific nutrients. The most evidence-backed combination is magnesium plus riboflavin (vitamin B2) — a protocol recommended by the Canadian Headache Society.
Riboflavin at 400mg daily has been shown to reduce migraine frequency by approximately 50% after 3 months. Combined with magnesium, you're addressing multiple migraine mechanisms simultaneously: neuronal excitability (magnesium), mitochondrial energy production (riboflavin), and vascular tone (both). Many migraine specialists now recommend this combination as first-line natural prevention.
Other nutrients with supporting evidence include CoQ10 (100–300mg/day) and magnesium before bed for sleep quality — since poor sleep is one of the most common migraine triggers.


Magnesium isn't just another supplement for headaches — it's one of the few natural options with genuine clinical evidence behind it. At 400–600mg daily (glycinate preferred), it's reduced migraine frequency by up to 41% in clinical trials. Give it 8–12 weeks, stay consistent, and consider pairing it with riboflavin for the best evidence-backed approach. Consult your healthcare provider before starting, especially at higher preventive doses.
Frequently Asked Questions
How quickly does magnesium work for headaches?
Magnesium works as a preventive, not an acute treatment. Most people notice a reduction in headache frequency after 4–6 weeks of consistent daily supplementation. Full preventive effects typically emerge by 8–12 weeks, based on clinical trial timelines.
Can magnesium stop a migraine once it's started?
Oral magnesium supplements are not designed for acute migraine relief — they work best as daily prevention. However, some emergency rooms use intravenous magnesium sulfate to treat severe acute migraines, particularly migraine with aura. For at-home use, daily oral supplementation is the evidence-based approach.
Is magnesium glycinate or citrate better for migraines?
Magnesium glycinate is generally preferred for migraine prevention because it's better absorbed, gentler on the stomach at higher doses, and the glycine component has calming effects on the nervous system. Citrate is also effective but may cause digestive issues above 400mg. A combination of both forms provides excellent absorption with minimal side effects.
Can I take too much magnesium for headaches?
Yes. While doses up to 600mg daily have been used safely in clinical trials, exceeding this amount can cause diarrhea, nausea, and in rare cases, more serious side effects. People with kidney disease are at particular risk. Always work with your healthcare provider when using doses above the standard RDA of 320–420mg.
Should I take magnesium every day or just when I have a headache?
Daily. Magnesium works by gradually building up your levels and correcting the underlying deficiency that contributes to migraine susceptibility. Taking it only during a headache won't provide the preventive benefit demonstrated in clinical trials. Think of it like filling a reservoir — consistency is what keeps the tank full.

