A few studies suggest that taking magnesium supplements may help prevent migraine headaches. In addition, a few clinical studies suggest that magnesium supplements may shorten the duration of a migraine and reduce the amount of medication needed. People who have migraine headaches tend to have lower levels of magnesium compared to those with tension headaches or no headaches at all.

Some experts suggest combining magnesium with the herb feverfew along with vitamin B2 (riboflavin) may be helpful when you have a headache.

However, some studies suggest that magnesium sulfate may be less effective than prescription medications for preventing migraines in those who have 3 or more headaches per month. The only exception to this may be women who get migraine headaches around the time of their period.