Magnesium oxide at 400 to 500 milligrams daily is the most widely recommended form for migraine prevention. It has the strongest clinical backing, is the form specified by the American Headache Society, and is the one used in most of the trials that earned magnesium a Level B evidence rating, meaning it’s “probably effective” for preventing migraines. Other forms like magnesium citrate and glycinate are popular, but the direct evidence for migraine reduction is thinner.
Why Magnesium Helps With Migraines
Magnesium plays a gatekeeper role in your nervous system. It sits on nerve cell receptors that, when overstimulated, drive the kind of excessive electrical activity linked to migraines. When magnesium levels are low, those receptors fire too easily, making neurons hyperexcitable. This can trigger cortical spreading depression, the wave of abnormal brain activity that underlies migraine aura and, for many people, the headache itself. Magnesium also helps regulate blood vessel tone and calms the pain-signaling network that runs from the brainstem to the head and face.
Up to 50% of people with migraines have been found to be magnesium-deficient. The tricky part is that standard blood tests only reflect about 2% of your body’s total magnesium, since most of it is stored in bones and inside cells. A normal blood level doesn’t rule out a meaningful deficiency in the brain, which is one reason many headache specialists recommend a trial of supplementation even when lab results look fine.
Magnesium Oxide: The Evidence-Based Pick
Magnesium oxide is the form most frequently studied and recommended for migraine prevention. The American Headache Society recommends 400 to 500 milligrams per day. The American Academy of Neurology and American Headache Society jointly reviewed the available trials and assigned magnesium a Level B rating for migraine prevention, the second-highest tier of evidence. That puts it alongside riboflavin (vitamin B2) and ahead of most other supplements.
The evidence is strongest for two specific groups: people who experience migraine with aura and people with menstrually related migraines. If your migraines involve visual disturbances, tingling, or other aura symptoms, you’re the most likely to benefit. Magnesium oxide in doses up to 400 milligrams is also rated safe during pregnancy, which matters because many standard migraine medications are not.
Oxide has a reputation for poor absorption compared to other forms, and that’s partially true on a percentage basis. But it delivers more elemental magnesium per pill than most alternatives, which compensates for the lower absorption rate. It’s also inexpensive and widely available.
Citrate, Glycinate, and Other Forms
Magnesium citrate absorbs more readily than oxide and is gentler on the stomach for some people. It’s a reasonable alternative if oxide causes digestive issues, though it hasn’t been studied as directly for migraines. You may need to take more capsules to reach the same elemental magnesium dose.
Magnesium glycinate is bound to the amino acid glycine, which gives it good absorption and a calming effect that some people find helpful for sleep. It’s the least likely form to cause loose stools. Again, though, direct migraine trial data is limited compared to oxide.
Magnesium threonate has gained attention for its ability to cross into the brain, but clinical migraine studies using this form are scarce. Magnesium taurate is sometimes recommended for cardiovascular support but lacks specific migraine data as well. If your primary goal is migraine prevention and you want to follow the evidence most closely, oxide remains the default choice.
Dosage and How Long It Takes to Work
Start at 400 milligrams daily. Some protocols go up to 600 milligrams, but the American Headache Society’s specific recommendation is 400 to 500 milligrams of magnesium oxide per day. Taking it with food can reduce the chance of stomach upset.
Don’t expect overnight results. Migraine preventives of any kind generally need consistent daily use for weeks before the effect becomes clear. Trial data shows measurable reductions in headache frequency emerging around the second month of daily supplementation. Give it a full three months before deciding whether it’s working for you. Keeping a simple headache diary during this period helps you spot real changes versus normal fluctuation.
Side Effects and Tolerability
The most common side effect is diarrhea or loose stools, which is why the tolerable upper intake for supplemental magnesium was originally set at 350 milligrams per day. In practice, more recent reviews of clinical trial data have found that doses above this level often cause no more digestive symptoms than a placebo. Seven studies looking at magnesium intakes ranging from 128 to 1,200 milligrams per day found no significant difference in diarrhea between the supplement and control groups.
That said, individual tolerance varies. If oxide bothers your stomach, splitting the dose (half in the morning, half at night) or switching to citrate or glycinate often solves the problem. People with kidney disease should be cautious, since the kidneys are responsible for clearing excess magnesium from the body.
Medications That Affect Magnesium Levels
Several common medications drain magnesium from your body, which can make migraines worse and supplementation more important. Proton pump inhibitors (the heartburn drugs like omeprazole and pantoprazole) interfere with magnesium absorption in the gut and increase losses through the kidneys. Loop diuretics and thiazide diuretics, often prescribed for blood pressure, also increase magnesium excretion. So do certain asthma medications like salbutamol and theophylline.
On the flip side, magnesium supplements can interfere with the absorption of tetracycline antibiotics and some osteoporosis medications. If you take either of these, separate them from your magnesium by at least two hours.
Intravenous Magnesium for Acute Attacks
For severe migraine attacks, particularly those with aura, intravenous magnesium sulfate given in a clinical setting can provide rapid relief. In one controlled trial, 87% of patients who received an IV infusion became completely pain-free, and 100% experienced relief from accompanying symptoms like nausea, light sensitivity, and sound sensitivity. In the placebo group, none became pain-free. This is a treatment option typically offered in emergency departments or headache clinics, not something you’d use at home, but it illustrates how directly magnesium acts on the migraine process. The benefit is most pronounced in people with a history of aura.