What's the science behind taking magnesium for headaches?

Headaches and migraines can be debilitating. So can taking magnesium for headaches relieve some of the discomfort?

An asian woman holds her head with one hand, eyes closed and looks like she is in pain.
(Image credit: Peter Dazeley)

Magnesium is a vital nutrient that plays a part in more than 300 of the body’s processes, but did you know that you can take magnesium for headaches? Due to the role magnesium plays in muscle contraction and relaxation, it can be effective for reducing tension headaches and migraines – these ailments can also become worse if you don’t have enough magnesium in your body. 

Magnesium is also a part of our stress response system, so a reduced magnesium load in our bones (where we store magnesium once it’s in the body) can mean that we are less equipped to deal with stress, which can result in headaches. 

Latest Videos From
Roxana Ehsani registered dietitian nutritionist
Roxana Ehsani, MS, RD, CSSD, LDN

Roxana Ehsani is a Board-Certified Specialist in Sports Dietetics and a National Media Spokesperson for the Academy of Nutrition and Dietetics. She holds a Bachelors of Science in Human Nutrition, Foods and Exercise from Virginia Tech and a Masters of Science in Clinical Nutrition and Dietetics from the University of Pittsburgh and completed her dietetic internship at the University of Pittsburgh Medical Center. 

Lou Mudge
Health Writer

Lou Mudge is a health writer based in Bath, United Kingdom for Future PLC. She holds an undergraduate degree in creative writing from Bath Spa University, and her work has appeared in Live Science, Tom's Guide, Fit & Well, Coach, T3, and Tech Radar, among others. She regularly writes about health and fitness-related topics such as air quality, gut health, diet and nutrition and the impacts these things have on our lives. 

She has worked for the University of Bath on a chemistry research project and produced a short book in collaboration with the department of education at Bath Spa University.