Magnesium for Migraines in Women: Does It Really Help?
-
Researched and written by: Dr. Akshara C H, MBBS
-
Edited by: Vaibhavi Kodnani
-
Medical inputs and review by: Dr Poonguzhali Liston, MBBS, MS OBG, FMAS, DRM, FRM, CIMP, EDHM
TL;DR
-
Quick answer: Magnesium may reduce migraine attacks and severity mainly through its effects on the nervous system. It is not an acute migraine treatment, but works well as a preventive strategy, particularly in combination with other supplements like vitamin B2 (riboflavin) and coenzyme Q10. A doctor can help understand the right form, dosage, duration, and tips for maximum absorption.[1]
-
Research: Clinical studies show that consistent use of magnesium for around 3 months can reduce migraine frequency, headache days, and severity.[2,3,4] One trial on menstrual migraines also showed its benefits for premenstrual symptoms.[2] Another trial shows combining it with vitamin B2 (riboflavin) and coenzyme Q10 can offer additional support, including reduced impact on daily life.[4] Research suggests magnesium works by calming overactive nerve cells, supporting brain chemicals and brain energy production, stabilising blood vessels, and reducing pain signalling. Side-effects are minor and mainly include diarrhea and minor gastric discomfort, which typically resolve easily.[5,6,7]
-
Doc’s opinion: Magnesium can help in migraine prevention, especially in women who have menstrual migraines, PMS-linked migraines, stress-triggered migraines, poor sleep, or frequent headaches. Magnesium is not a painkiller, so it may not stop an attack immediately. Its role is more in reducing migraine frequency, intensity, and sensitivity of the migraine brain over time.
What Is Magnesium?
Magnesium is an essential mineral that the body needs to carry out hundreds of important chemical reactions every day. It helps support nerve function, muscle contraction, energy production, blood sugar regulation, heart rhythm, and bone health. In simple terms, magnesium helps the brain, muscles, and nervous system communicate and function properly.
Magnesium is naturally found in foods such as nuts, seeds, leafy green vegetables, beans, whole grains, dark chocolate, and legumes. Because magnesium plays such a wide role in the body, low levels can affect many systems at the same time, including sleep, stress responses, mood, muscle tension, and migraine activity.[1,5,6,7]
Recommended daily intake for women
Most adult women need around 370 mg of magnesium daily, although needs increase during pregnancy to about 440 mg and during breastfeeding to 400 mg.[8]
Low magnesium can happen because of poor dietary intake, digestive conditions, certain medications, high stress, alcohol use, or increased losses during illness.
Magnesium deficiency may contribute to symptoms such as muscle cramps, fatigue, poor sleep, headaches, irritability, and abnormal nerve or muscle function.
Note: Only a small amount of total magnesium circulates in the blood, so normal blood tests do not always fully reflect magnesium levels inside tissues and cells.
Understanding the Role of Magnesium in Migraines
Researchers have been studying the link between magnesium and migraine in women for decades. That’s because magnesium influences the nervous system pathways involved in migraine attacks. Here’s how:
Calms overactive nerves
During a migraine attack, the nervous system can become hyperreactive, meaning the brain responds more strongly to light, sound, stress, hormonal shifts, or other triggers.
Magnesium helps regulate how nerve cells in the brain send pain signals, acting like a natural brake on excessive nerve firing.[5,6]
Supports serotonin, dopamine, and GABA balance
Magnesium also helps support neurotransmitters or brain chemicals involved in various functions, including:
-
Serotonin: Linked to mood, pain signaling, and migraine regulation (levels are known to shift with estrogen decline)
-
Dopamine: Involved in motivation, focus, nausea, and sensory sensitivity
-
GABA (gamma-aminobutyric acid): Responsible for helping the nervous system relax (levels may change due to progesterone drop)
As migraine attacks are influenced by stress, sleep disruption, hormonal changes, and nervous system sensitivity, supporting these neurotransmitter pathways may help stabilise the brain’s response to these triggers.[5,6]
Reduces CGRP and inflammatory pain signaling
During a migraine attack, the body releases chemicals that transmit pain signals, increasing inflammation and making nerves more sensitive.
One of the most important chemicals is CGRP, which stands for calcitonin gene related peptide. CGRP is a nerve messenger involved in migraine pain, inflammation, and sensory sensitivity.
Research suggests magnesium may help reduce excessive pain signaling and calm some of the inflammatory pathways linked to migraine attacks.[5,6]
Improves blood vessel stability
Older migraine theories focused mainly on blood vessel changes. Researchers now know migraine is more complex than that, but blood vessels still play a role.
Magnesium helps blood vessels relax and maintain more stable circulation. Low magnesium may contribute to abnormal blood vessel activity, which is particularly linked to menstrual migraine and migraine with aura.[5,6]
Supports energy production in cells
The brain requires a huge amount of energy to function properly. Some migraine research suggests that people with migraine may have difficulty with brain energy metabolism.
Magnesium plays a role in helping cells actually use the energy they produce, not just make it. Without enough magnesium, these processes may become less efficient.[5,6]
Helps with sleep and stress regulation
Sleep problems and chronic stress are common migraine triggers. Low magnesium levels are associated with poor sleep, muscle tension, anxiety, and fatigue. It may also create a feeling of “wired but tired”, which means your body is physically exhausted but your brain remains active.
Improving magnesium intake may support the nervous system pathways involved in relaxation and sleep quality. This may, in turn, help reduce migraine attacks linked to sleep or stress.[5,6]
Quick insight: High doses of magnesium may sometimes help migraine even when blood tests do not show a clear magnesium deficiency. This is because nutrients can sometimes act not only as replacement therapy for low levels, but also as functional regulators that influence nerve signaling, inflammation, blood vessel activity, and pain pathways involved in migraine.
Effect of Magnesium on Migraine: What Research Shows
Research summary: Research suggests that oral magnesium may help reduce migraine frequency, pain severity, and headache days. It may also help with menstrual migraine symptoms and impact on life. Combining it with other supplements like vitamin B2 (riboflavin) and CoQ10 can offer complementary or additive benefits for brain energy production and nerve stability. The key point to note is that magnesium supplements may only work when taken consistently for around 3 months.[2,3,4]
What it means for you: If you experience frequent migraine or menstrual migraine, it can be a good idea to discuss supplements (magnesium, vitamin B2, coenzyme Q10) with your doctor. Effects are gradual, so having them consistently for at least 3 months and monitoring your before and after progress can help identify whether supplements are the right option for your migraine.
Evidence discussion: 3 magnesium trials
Magnesium Prophylaxis of Menstrual Migraine: Effects on Intracellular Magnesium (Facchinetti et al., 1991)
This double-blind, placebo-controlled trial compared oral magnesium (360 mg daily) against placebo in 20 women with menstrual migraine over 2 months, in Italy. Key findings include:[2]
-
Headache days: Headache days dropped significantly only in the magnesium group from 4.7 to 2.4 days per cycle by month 2, with no significant change in the placebo group.
-
Premenstrual symptoms: Scores on a premenstrual symptom questionnaire improved significantly only with magnesium.
-
Side-effects: One participant on magnesium reported diarrhea.
Prophylaxis of migraine with oral magnesium: results from a prospective, multi-center, placebo-controlled and double-blind randomized study (Peikert et al., 1996)
This randomised, double-blind, placebo-controlled trial compared high-dose oral magnesium (600 mg daily) against placebo in 81 adults with migraine over 3 months, across eight centers in Germany. Key findings include:[3]
-
Migraine frequency: Attack frequency dropped by 41.6% with magnesium compared to 15.8% with placebo.
-
Migraine days: Migraine days also significantly reduced with magnesium from 4.95 to 2.46 days/month.
-
Migraine severity: The VAS score dropped from 6.02 to 3.96 in the magnesium group. However, it didn't reach statistical significance.
-
Side-effects: 18.6% of the participants experienced diarrhea and 4.7% noticed gastric irritation. However, the side-effects were described as mild and reversible.
Improvement of migraine symptoms with a proprietary supplement containing riboflavin, magnesium and Q10: a randomized, placebo-controlled, double-blind, multicenter trial (Gaul et al., 2015)
This randomised, placebo-controlled, double-blind trial compared a supplement containing magnesium (600 mg), vitamin B2 (400 mg), and CoQ10 (150 mg) against placebo in 130 adults with migraine over 3 months, across 12 centers in Germany. Key findings include:[4]
-
Headache days: This dropped from 6.2 to 4.4 per month with the supplement versus 6.2 to 5.2 with placebo.
-
Migraine severity: Pain intensity per attack dropped significantly more with the supplement than with placebo.
-
Impact of migraine on daily life: HIT-6 scores, a measure of how much headaches affect daily life, dropped by 4.8 points with the supplement, compared to 2 points with placebo.
-
Side-effects: It mainly included diarrhea and orange-coloured urine (from the vitamin B2 component), which resolved before the study concluded.
Who Can Consider Magnesium Supplementation?
Magnesium is most commonly used as part of migraine prevention, meaning it is taken regularly to help reduce how often migraine attacks happen over time rather than to stop a migraine instantly.[1,5,6]
You may consider magnesium supplementation if:
-
You have frequent migraine attacks, especially if your episodic migraine is becoming chronic.
-
You have menstrual migraine or migraines that worsen before or during periods.
-
You have migraine and PMS symptoms such as irritability, bloating, cramps, poor sleep, anxiety, or emotional sensitivity.
-
Your common migraine triggers include sleep and stress.
-
You experience muscle tightness, neck tension, jaw clenching, or tension-type headaches along with migraine.
-
You get migraines with aura.
-
You frequently rely on painkillers for migraine relief and want to reduce use.
-
You are looking for a relatively well-studied, non-pharmaceutical option for migraine management alongside medical care.
-
Your diet is low in magnesium-rich foods such as nuts, seeds, legumes, leafy greens, and whole grains.
-
Your magnesium balance may be at risk due to chronic stress, poor sleep, high caffeine intake, frequent alcohol intake, and vitamin D deficiency.
-
You have PCOS or metabolic health issues that may overlap with inflammation, insulin resistance, or nutrient imbalance.
-
You have digestive conditions that affect nutrient absorption, such as chronic diarrhea, inflammatory bowel disease, or celiac disease.
When to be cautious
Use caution or speak with a doctor before taking magnesium supplements if:[9,10]
-
You have kidney disease or reduced kidney function, since the kidneys help remove excess magnesium from the body.
-
You frequently experience severe diarrhea or digestive sensitivity, because some forms of magnesium such as magnesium oxide and magnesium citrate can worsen loose stools.
-
You have low blood pressure and experience dizziness or fainting easily, since magnesium may slightly lower blood pressure in some people.
-
You have a heart rhythm disorder or significant cardiac disease requiring careful electrolyte monitoring.
-
You take medications that may interact with magnesium, including certain antibiotics, osteoporosis medications, thyroid medications, or muscle relaxants.
-
You are already taking multiple supplements containing magnesium.
-
You are pregnant or breastfeeding and considering magnesium supplementation beyond food sources.
Berry’s Tips: Using Magnesium Supplements to Help Prevent Migraine Attacks
Magnesium supplements are commonly used as part of migraine prevention, especially by women with menstrual migraine, stress-related migraine, poor sleep, muscle tension, or frequent migraine attacks.
However, not all magnesium supplements work the same way, and the type, dosage, and consistency of use can make a big difference in both effectiveness and side-effects.[9,10]
Discuss with a doctor
It is a good idea to speak with a doctor before starting magnesium supplements for your migraine. It is especially important if you have any kidney, digestive, or heart problems, are pregnant or breastfeeding, or are already taking any medications.
They can help in the following ways:
-
Check for medication interactions
-
Provide the right form of magnesium
-
Discuss proper dosage
-
Give tips on the supplement timing and maximum absorption
-
Advise on safety, side-effects, and food sources
Understand the dosage
Research on magnesium for migraine prevention often uses doses around 360–600 mg daily, usually divided across the day. But certain forms of magnesium and higher dosage are more likely to cause digestive side-effects.
-
Magnesium glycinate: Often better tolerated and less likely to cause diarrhea. Many people prefer it for migraine, stress, muscle tension, and sleep support.
-
Magnesium citrate: Usually absorbed well, but more likely to loosen stools. Some people tolerate it very well, while others do not.
-
Magnesium oxide: Commonly used in migraine studies because each dose contains a large amount of magnesium, though its lower absorption may limit effectiveness and increase gastrointestinal side effects.
It is best to consume magnesium supplements under supervision to get proper guidance on the correct form and dosage for your specific situation.
Safety
Magnesium is generally considered safe for most people when used appropriately, but high doses or incorrect use can sometimes cause side-effects or interactions.[9,10]
Contraindications:
-
People with kidney disease, severe digestive disorders, chronic diarrhea, heart conditions, or low blood pressure issues should speak with a doctor first.
-
Pregnant or breastfeeding women must discuss dosage with a doctor instead of starting supplementation on their own.
-
People who already take multiple supplements containing magnesium must also be cautious about starting new supplements.
Interactions:
Magnesium may interfere with the absorption of:
-
Iron supplements
-
Large dose calcium supplements
-
Thyroid medications
-
Certain antibiotics (Tetracycline like doxycycline and minocycline, fluoroquinolones like levofloxacin and ciprofloxacin)
-
Some osteoporosis medications
Side-effects
Possible side effects of magnesium supplements include:
-
Diarrhea
-
Stomach cramps
-
Nausea
-
Bloating
Digestive symptoms are more common with magnesium oxide and magnesium citrate.
Toxicity
Serious side-effects from magnesium are uncommon in healthy people because the kidneys usually remove excess amounts. However, very high doses or impaired kidney function can increase the risk of magnesium toxicity, which may cause:
-
Severe weakness
-
Low blood pressure
-
Slow heartbeat
-
Confusion
-
Difficulty breathing in severe cases
Food sources
Magnesium-rich foods include:[10]
|
Food source |
Magnesium content (% Daily Value or DV) |
|
Pumpkin seeds (light roasted), 2 tbsp |
156 mg (42%) |
|
Chia seeds (soaked), 2tbsp |
111 mg (30%) |
|
Almonds (raw), 30g |
80 mg (21%) |
|
Spinach (boiled), ½ cup |
78 mg (21%) |
|
Cashews (raw), 30g |
74 mg (20%) |
|
Peanuts (oil roasted or soaked), ¼ cup |
63 mg (17%) |
|
Dark chocolate (70–85%), 2–4 small squares |
64.6 mg (17%) |
|
2 bananas (medium-sized) |
64 mg (17%) |
|
Legumes (dal, chole, rajma, soybean), ½ cup |
60 mg (16%) |
|
Cocoa powder (unsweetened), 2tbsp |
53.8 mg (15%) |
|
Brown rice (cooked), ½ cup |
42 mg (11%) |
|
Avocado (cubed), ½ cup |
22 mg (6%) |
Practical ways to improve magnesium intake:
-
Include a magnesium-rich source in 2–3 meals daily.
-
If you are already taking magnesium supplements, limit it to any 1 magnesium-rich food source daily.
-
Avoid foods that trigger a migraine for you. If you are unsure, a migraine diary can help identify whether a magnesium-rich food is supportive or personally triggering.
Note: Incorporating magnesium-rich foods alongside supplements can support better nutrition overall, although food alone is unlikely to provide the therapeutic doses commonly studied for migraine prevention.[10]
Absorption tips
To maximise the benefits from magnesium supplements, the following tips can help:
-
Take magnesium consistently, not only during migraine attacks.
-
Take magnesium after food, especially if you have acidity, nausea, or a sensitive stomach.
-
Consider taking magnesium in the evening or before bed if it helps relaxation or sleep.
-
Splitting doses can improve tolerance and absorption. Instead of one large dose, divide into morning and night.
-
Avoid taking magnesium at the exact same time as iron, calcium, thyroid medication, or certain antibiotics as absorption can interfere. A gap of around 2 to 4 hours is often advised between magnesium and these supplements and medications.
-
Limit excessive alcohol and very high caffeine intake, which may affect magnesium balance.
-
Address factors such as chronic stress, poor sleep, severe vitamin D deficiency, or gut issues, since these may affect magnesium status and response to supplements.
When Should You See a Doctor?
Migraine needs ongoing monitoring and management. But even if you have been taking various strategies to keep your migraine under control, please see a doctor if you find yourself in the following situations:
-
Your migraine attacks are becoming more frequent and severe over time.
-
You need to consume painkillers too often and they don’t help very well.
-
You have tried multiple lifestyle changes, supplements, and other strategies, but nothing seems to work.
-
Your migraine symptoms are affecting your work, everyday functioning, and mental health.
- You regularly wake up from sleep because of headache pain.
-
You feel your quality of life is declining due to your migraines.
Go to the nearest medical center immediately if:
-
You develop the “worst headache of your life” all of a sudden.
-
Your migraine headache peaks within seconds or minutes.
-
You experience muscle weakness, persistent numbness, facial drooping, difficulty speaking, confusion, vision loss, or fainting.
-
You have headache symptoms along with fever, neck stiffness, repeated vomiting, severe dizziness, or seizures.
-
Your headaches worsen with coughing, bending, sneezing, or straining.
-
You experience symptoms very different from your usual pattern.
-
You experience migraine symptoms during pregnancy or postpartum (especially for the first time).
Remember: If you are taking magnesium supplements and experience side-effects like severe diarrhea, palpitations, persistent stomach upset, excessive drowsiness, weakness, or dizziness, bring that to your doctor’s attention right away.
The Bottom Line
Magnesium is a clinically studied supplement that may support migraine management, particularly for reducing attack frequency and managing triggers such as sleep and stress. It works by calming the nerves, supporting important brain chemicals, and regulating pain signalling.
Its effects build up gradually. It’s not an instant cure. It can take several weeks to a few months of consistent use to notice a difference, so it's worth giving it time before deciding whether it's helping.
Choosing the right form and dosage, and combining it with broader medical and lifestyle strategies, may help improve long-term migraine control. Magnesium may also work well alongside other supplements like vitamin B2 and coenzyme Q10.
FAQs on Magnesium for Migraine
Does magnesium help with migraines?
Yes, magnesium may help reduce migraine frequency and support migraine relief in some people, especially when used consistently as part of migraine prevention.
What are signs of magnesium deficiency?
Signs of low magnesium can include muscle cramps, fatigue, poor sleep, anxiety, palpitations, weakness, headaches, and increased muscle tension.
How quickly does magnesium work for migraines?
Magnesium usually works gradually. Many people need around 3 months of regular use before noticing improvement in migraine symptoms.
What deficiency causes migraines?
Several nutrient deficiencies may play a role in migraine and its association with brain function, including magnesium, vitamin D, vitamin B2 (riboflavin), and sometimes iron deficiency.
What is the best supplement for migraine?
There is no single best supplement for everyone. Magnesium, vitamin B2 (riboflavin), and CoQ10 are among the most studied supplements for migraine reduction.
Can too much magnesium cause migraines?
Very high magnesium intake is more likely to cause digestive symptoms such as diarrhea or stomach upset rather than migraine itself, although dehydration from severe diarrhea may worsen headache symptoms.
What food is highest in magnesium?
Pumpkin seeds, chia seeds, almonds, cashews, spinach, beans, and dark chocolate are among the richest food sources of magnesium.
What kind of magnesium is best for headaches?
Different types of magnesium work differently. Magnesium glycinate is often preferred for migraine because it is usually gentler on the stomach, while magnesium citrate is absorbed well but may loosen stools.
What time of day is best to take magnesium?
Many people prefer taking magnesium in the evening because it may support relaxation and sleep, but consistency matters more than exact timing.
How much magnesium for migraines per day?
Research on migraine prevention often uses around 360–600 mg daily, but the ideal amount varies depending on the form of magnesium, symptoms, diet, and individual tolerance. It is best to discuss dosage with a doctor than to self-prescribe.
References
-
Dominguez LJ, Veronese N, Sabico S, Al-Daghri NM, Barbagallo M. Magnesium and migraine. Nutrients. 2025 Feb 18;17(4):725.
-
Facchinetti F, Sances G, Borella P, Genazzani AR, Nappi G. Magnesium prophylaxis of menstrual migraine: effects on intracellular magnesium. Headache: The Journal of Head and Face Pain. 1991 May;31(5):298-301.
-
Peikert A, Wilimzig C, Köhne-Volland R. Prophylaxis of migraine with oral magnesium: results from a prospective, multi-center, placebo-controlled and double-blind randomized study. Cephalalgia. 1996 Jun;16(4):257-63.
-
Gaul C, Diener HC, Danesch U, Migravent® Study Group. Improvement of migraine symptoms with a proprietary supplement containing riboflavin, magnesium and Q10: a randomized, placebo-controlled, double-blind, multicenter trial. The journal of headache and pain. 2015 Dec;16(1):32.
-
Dolati S, Rikhtegar R, Mehdizadeh A, Yousefi M. The role of magnesium in pathophysiology and migraine treatment. Biological trace element research. 2020 Aug 1;196(2).
-
Allen MJ, Sharma S. Magnesium. [Updated 2023 Feb 20]. In: StatPearls [Internet]. Treasure Island (FL): StatPearls Publishing; 2026 Jan.
-
American Migraine Foundation. Magnesium and migraine. Accessed May 23, 2026.
-
Indian Council of Medical Research, National Institute of Nutrition. Nutrient Requirements for Indians: Recommended Dietary Allowances and Estimated Average Requirements. Accessed May 23, 2026.
-
National Institutes of Health, Office of Dietary Supplements. Magnesium: Fact Sheet for Health Professionals. Accessed May 23, 2026.
-
National Institutes of Health, Office of Dietary Supplements. Magnesium: Fact Sheet for Consumers. Accessed May 23, 2026.