A Nutrition & Lifestyle Guide for Headache Prevention
Migraines can be more than just headaches—they often disrupt daily life, productivity, and emotional well-being. While medications can help, many people are turning to nutrition and lifestyle strategies to prevent migraine attacks before they start. One mineral has been getting a lot of scientific attention for its migraine-fighting powers: magnesium.
Why Magnesium Matters for Your Brain
Magnesium is an essential mineral involved in over 300 biochemical reactions, many of which influence brain function. It plays a role in:
- Calming the nerves → Helps prevent the overactivity of nerve cells that can trigger migraines (Dominguez et al., 2025).
- Healthy blood flow → Keeps blood vessels in the brain from constricting too much, a common migraine mechanism (Maier et al., 2020).
- Balancing brain chemicals → Supports serotonin and other neurotransmitters that regulate pain perception (Tepper & Tepper, 2025).
Migraine & Magnesium Connection
Multiple studies have found that people with migraines often have lower brain magnesium levels. Supplementing magnesium may help by:
- Reducing nerve hyperexcitability.
- Relaxing brain blood vessels.
- Lowering the release of pain-triggering chemicals (Dominguez et al., 2025; Maier et al., 2020).
This is especially important for menstrual-related migraines, where magnesium may counteract hormonal fluctuations linked to attacks (Moreland et al., 2025).
Helpful Magnesium Supplements
Always consult your healthcare provider before starting supplements. Research suggests the following forms may help migraine sufferers:
- Magnesium citrate – well absorbed, gentle laxative effect.
- Magnesium glycinate – well absorbed, gentle on the stomach.
- Magnesium oxide – allows higher dosing in smaller pills, though may cause stomach upset.
- Magnesium pidolate – shows promising results for migraines due to better brain uptake (Maier et al., 2020).
Eat Your Magnesium
The recommended daily amount for most adults is 300–400 mg from food and supplements combined.
| Food | Magnesium (mg per serving) |
|---|---|
| Pumpkin seeds (1 oz) | 156 |
| Almonds (1 oz) | 80 |
| Spinach, cooked (1 cup) | 78 |
| Black beans, cooked (1 cup) | 120 |
| Dark chocolate (1 oz) | 64 |
| Avocado (1 whole) | 58 |
Track Your Migraine Patterns
A daily migraine log can help you and your provider identify personal triggers:
- Date/time of migraine onset.
- Foods eaten in past 24 hours.
- Stress level & sleep quality.
- Menstrual cycle or hormonal changes.
This aligns with behavioral recommendations for migraine prevention (Treadwell et al., 2024).
Lifestyle Tips Beyond Magnesium
Magnesium is just one part of a comprehensive migraine prevention plan. Evidence supports combining it with other nutritional and lifestyle interventions:
- Hydration – Even mild dehydration can trigger headaches (Haghdoost & Togha, 2022).
- Regular sleep – Aim for 7–9 hours each night, keeping consistent sleep/wake times.
- Stress management – Mind-body techniques like yoga, mindfulness, and biofeedback can reduce migraine frequency (V, 2021; Treadwell et al., 2024).
- Avoid trigger foods – Common culprits include aged cheeses, cured meats, alcohol, MSG, and artificial sweeteners (Pirthiraj & Bhagwan, 2023).
- Other nutraceuticals with evidence – Riboflavin (vitamin B2), coenzyme Q10, melatonin, and butterbur show promise in migraine prevention (Tepper & Tepper, 2025; Song et al., 2024).
- Physical therapy and gentle exercise – May reduce frequency and severity in chronic migraine (Onan et al., 2023).
Bottom Line
Magnesium is a well-supported, low-risk option for migraine prevention, particularly when combined with healthy sleep, hydration, stress management, and a trigger-aware diet. Talk with your healthcare provider about the best dosage and form for you, and consider tracking your migraines to better understand your triggers and responses. With the right mix of nutrition, lifestyle, and medical support, migraine sufferers can take real steps toward fewer and less severe attacks.
References
Dominguez, L. J., Veronese, N., Sabico, S., Al-Daghri, N. M., & Barbagallo, M. (2025). Magnesium and Migraine. Nutrients, 17(4), 725. https://doi.org/10.3390/nu17040725
Maier, J. A., Pickering, G., Giacomoni, E., Cazzaniga, A., & Pellegrino, P. (2020). Headaches and Magnesium: Mechanisms, Bioavailability, Therapeutic Efficacy and Potential Advantage of Magnesium Pidolate. Nutrients, 12(9), 2660. https://doi.org/10.3390/nu12092660
Tepper, S. J., & Tepper, K. (2025). Nutraceuticals and Headache 2024: Riboflavin, Coenzyme Q10, Feverfew, Magnesium, Melatonin, and Butterbur. Current Pain and Headache Reports, 29(1), 33. https://doi.org/10.1007/s11916-025-01358-3
Moreland, P., Gaffney, B., & Lanham, J. S. (2025). Migraine Headache Prophylaxis. American Family Physician, 111(5), 443–450.
Haghdoost, F., & Togha, M. (2022). Migraine management: Non-pharmacological points for patients and health care professionals. Open Medicine (Warsaw, Poland), 17(1), 1869–1882. https://doi.org/10.1515/med-2022-0598
Onan, D., Ekizoğlu, E., Arıkan, H., Taşdelen, B., Özge, A., & Martelletti, P. (2023). The Efficacy of Physical Therapy and Rehabilitation Approaches in Chronic Migraine: A Systematic Review and Meta-Analysis. Journal of Integrative Neuroscience, 22(5), 126. https://doi.org/10.31083/j.jin2205126
Pirthiraj, A., & Bhagwan, R. (2023). The psychosocial impact of migraines on women and alternative therapies for migraine management. Health SA = SA Gesondheid, 28, 2249. https://doi.org/10.4102/hsag.v28i0.2249
Song, X., Zhu, Q., Su, L., Shi, L., Chi, H., Yan, Y., Luo, M., Xu, X., Liu, B., Liu, Z., & Yang, J. (2024). New perspectives on migraine treatment: a review of the mechanisms and effects of complementary and alternative therapies. Frontiers in Neurology, 15, 1372509. https://doi.org/10.3389/fneur.2024.1372509
Treadwell, J. R., Tsou, A. Y., Rouse, B., Ivlev, I., Fricke, J., Buse, D., Powers, S. W., Minen, M., Szperka, C. L., & Mull, N. K. (2024). Behavioral Interventions for Migraine Prevention. Agency for Healthcare Research and Quality (US).https://doi.org/10.23970/AHRQEPCCER270
V, B. R., & Rajapakse, T. (2021). Nutraceuticals and Behavioral Therapy for Headache. Current Neurology and Neuroscience Reports, 21(7), 33. https://doi.org/10.1007/s11910-021-01120-3