Go Ad-Free
logoThe People's Perspective on Medicine

Do Supplements Like Riboflavin or Magnesium Help Prevent Migraine Headaches?

Simple supplements such as riboflavin or magnesium are often effective at preventing migraine headaches or reducing the pain.

Migraines are misery. Often the first sign of trouble is some type of visual distortion, known as an aura. The pain may follow, frequently accompanied by nausea and inability to tolerate light or noise. People who experience migraines several times a month are highly motivated to find a way to prevent migraine headaches. Certain pharmaceuticals can help with this, but they can be expensive. In addition, patients report that they may lose effectiveness over time. Could supplements like magnesium or riboflavin prevent headaches?

What Type of Magnesium Provides Protection?

Q. What type of magnesium is recommended for migraines? I have been taking magnesium oxide, but I read recently that it’s not best for migraines. Would magnesium glycinate be better?

A. There is a substantial body of evidence supporting the use of magnesium to reduce the frequency of migraine headaches (Nutrients, Feb. 18, 2025; American Family Physician, May, 2025).   People vary in their response to various magnesium supplements. The glycinate form is frequently recommended because it is less likely to cause diarrhea than magnesium oxide, magnesium chloride or magnesium carbonate.

Some individuals prefer one of the other organic magnesium salts (aspartate, citrate or lactate). You may have to experiment to find out what works best for you. After all, the point is for it to prevent migraine headaches for you, so what other people find helpful is only a guide.

Side Effects of Magnesium:

The most noticeable side effect of excess magnesium is diarrhea. People rarely develop other side effects, but a big dose of magnesium might cause nausea as well. Experts suggest not exceeding 350 to 400 mg/day in your supplement, but studies using magnesium to prevent migraines go up to 600 mg/day (Expert Review of Neurotherapeutics, March 2009). If you are taking this much magnesium, you should discuss the treatment with your physician.

Can Riboflavin Cut Down on Migraines?

Q. After my migraines began flaring up weekly, I started taking riboflavin (vitamin B2) daily. Ten weeks into this regimen, I have only had two really bad headaches.

I still have Maxalt as a backup, but I haven’t needed to take it in a few months. The only side effect I’ve had from the B2 is bright yellow urine. Compared to the migraines, I’ll take it!

A. Riboflavin has been used as a way of preventing migraines for many years (Neurology, Feb., 1998). A review of research suggests that it may work even better in combination with Coenzyme Q10 (Headache, Oct., 2012). A German product containing magnesium along with riboflavin and CoQ10 improved migraine symptoms compared with placebo (Journal of Headache Pain, online Apr. 3, 2015).

Side Effects of Riboflavin:

While riboflavin will turn urine almost fluorescent yellow, other side effects are rare.

Vera P. observed:

“Since I started taking one Super B-complex pill once a day, I no longer get migraine headaches. I have been taking them for about five years.”

We recently heard from a person who uses a spoonful of yellow mustard to stop her ice pick headaches. Many other migraine sufferers have written to tell us that inducing brain freeze (whether with ice cream or ice water) can stop a migraine cold.

Here is a testimonial from Tammy:

“I just read this article after having been up since 4 am with a migraine. The vomiting passed but still I had the residual killer headache. I read this and ate an ice cream bar, and the headache has definitely lessened. I think the next time I’ll try plain ice earlier in the ordeal.”

Learn More:

We discuss the use of riboflavin, feverfew, Coenzyme Q10, magnesium and other nondrug approaches to migraine prevention in our Guide to Headaches and Migraines.

Citations
  • Dominguez LJ et al, "Magnesium and migraine." Nutrients, Feb. 18, 2025. DOI: 10.3390/nu17040725
  • Moreland P et al, "Migraine headache prophylaxis." American Family Physician, May, 2025.
  • Sun-Edelstein C & Mauskop A, "Role of magnesium in the pathogenesis and treatment of migraine." Expert Review of Neurotherapeutics, March 2009. DOI: 10.1586/14737175.9.3.369
  • Schoenen J et al, "Effectiveness of high-dose riboflavin in migraine prophylaxis. A randomized controlled trial." Neurology, Feb., 1998. DOI: 10.1212/wnl.50.2.466
  • Gaul C et al, "Improvement of migraine symptoms with a proprietary supplement containing riboflavin, magnesium and Q10: a randomized, placebo-controlled, double-blind, multicenter trial." Journal of Headache Pain, online Apr. 3, 2015. DOI: 10.1186/s10194-015-0516-6
Rate this article
star-fullstar-emptystar-fullstar-emptystar-fullstar-emptystar-fullstar-emptystar-fullstar-emptystar-fullstar-emptystar-fullstar-emptystar-fullstar-emptystar-fullstar-emptystar-fullstar-empty
4.5- 38 ratings
About the Author
Terry Graedon, PhD, is a medical anthropologist and co-host of The People’s Pharmacy radio show, co-author of The People’s Pharmacy syndicated newspaper columns and numerous books, and co-founder of The People’s Pharmacy website. Terry taught in the Duke University School of Nursing and was an adjunct assistant professor in the Department of Anthropology. She is a Fellow of the Society of Applied Anthropology. Terry is one of the country's leading authorities on the science behind folk remedies..
Tired of the ads on our website?

Now you can browse our website completely ad-free for just $5 / month. Stay up to date on breaking health news and support our work without the distraction of advertisements.

Browse our website ad-free
Join over 150,000 Subscribers at The People's Pharmacy

We're empowering you to make wise decisions about your own health, by providing you with essential health information about both medical and alternative treatment options.