Migraine

Does Magnesium Prevent Migraines?

Andre Stone | MD

Medically reviewed by Andre Stone | MD, University of Pittsburgh School of Medicine on August 25th, 2026.

Magnesium supplementation can help prevent migraines in some people, particularly those with magnesium deficiency. Some studies suggest that magnesium may reduce migraine frequency in some people, but results vary. Doses used in studies are often described in terms of elemental magnesium, so the amount depends on the specific product and should be confirmed with a clinician. Magnesium affects nerve signaling and other processes that may play a role in migraine, although exactly how supplementation may help is not fully understood. Magnesium oxide and magnesium citrate are the most commonly studied forms. However, effectiveness varies significantly between individuals, and it typically takes 8-12 weeks to see full benefits. Magnesium supplements can cause diarrhea and other digestive side effects. Because higher doses may not be appropriate for everyone—especially people with kidney disease or those taking certain medicines—ask a clinician or pharmacist about the product and dose before starting.

Still have questions about this?

Ask your AI Doctor

Keep exploring

Related Questions

From the blog

More from Doctronic