Magnesium for headaches and tension: what the evidence says

Magnesium for Headaches: Forms, Dose & Safety

Persistent tension headaches and migraine-type pain often trace back to magnesium status, and the research backing that link has grown steadier since the early 2020s. This guide walks through the evidence, the doses studied, and a practical routine for testing whether magnesium for headaches works for you in 2026.

TL;DR

Magnesium for headaches has decent trial support: doses between 400mg and 600mg daily, usually as magnesium oxide or magnesium glycinate, have been linked to fewer migraine days across several controlled studies. Verdict: worth an 8-12 week trial if you get tension headaches or migraines and haven't checked your magnesium intake, especially alongside checking for a magnesium deficiency first. It's not a fast fix — most people see change after several weeks, not days — and it works best paired with steady hydration and sleep, not as a standalone painkiller substitute.

Why this matters

Low magnesium status is common in the UK. NHS guidance sets the reference intake at 270mg a day for women aged 19-64 and 300mg for men, and most diet surveys show a meaningful share of UK adults fall short of that, particularly women managing stress, poor sleep, or high caffeine intake.

Magnesium plays a direct role in nerve signalling and blood vessel tone, both of which are implicated in migraine and tension headache mechanisms. That's why researchers have tested it as a preventive strategy for headache frequency rather than a same-day painkiller. The distinction matters: magnesium for headaches is a prevention tool, not an aspirin substitute, and treating it as the latter is where most people give up too early.

What you'll need

  • A magnesium supplement — glycinate, citrate, or oxide, each with different tolerability and absorption
  • A headache diary (paper or app) to track frequency, not just intensity
  • 8 to 12 weeks of consistent daily use — this is a prevention trial, not a one-off dose
  • Baseline awareness of your diet: leafy greens, nuts, seeds, and wholegrains all contribute magnesium
  • A note of any current medication, since magnesium can interact with certain antibiotics and blood pressure drugs
  • Optional: a broader evening routine if poor sleep is compounding your headaches, which is where a blend like the SRX Formula Night blend fits for some people managing sleep and recovery together

The steps

1. Rule out a deficiency first

Check whether your symptoms match common signs of low magnesium — fatigue, muscle cramps, poor sleep, and yes, headaches. This matters because someone who is already replete won't see the same benefit as someone genuinely short. If several signs overlap, read through how to tell if you have a magnesium deficiency before assuming supplementation is the fix.

Common mistake: assuming every headache is nutrient-related. Dehydration, screen strain, and poor sleep cause plenty of headaches that no supplement will touch.

2. Pick the right form

Not all magnesium salts behave the same way in the body. Magnesium oxide has lower absorption but has been the form used in several of the larger migraine prevention trials, typically at 400-600mg daily. Magnesium glycinate is gentler on the gut and often preferred for those with sensitive digestion. Citrate sits in between on both counts.

The practical differences are laid out in magnesium glycinate vs magnesium citrate — worth reading before you buy, since the wrong form for your gut means you stop before the 8-week mark that matters.

Common mistake: switching forms every two weeks because nothing seems to be happening yet. Give one form a proper run before judging it.

3. Set a realistic starting dose

Start at 200-300mg daily rather than jumping straight to 600mg, especially with citrate or oxide forms, which can cause loose stools at higher doses. Build up over one to two weeks if tolerated. The trials most often cited for migraine prevention used a higher end around 500-600mg, but that's a ceiling to work toward, not a starting point.

Common mistake: taking a single large dose and stopping after gut upset on day two, rather than titrating slowly.

4. Time it with intention

Taking magnesium with food reduces stomach upset. Evening dosing suits people whose headaches cluster with poor sleep or tension that builds overnight, since magnesium also supports the nervous system's wind-down process. If your headaches are more linked to stress and cortisol spikes during the day, splitting the dose morning and evening can help — the relationship is covered in more depth in how magnesium affects cortisol and stress response.

Common mistake: taking it on an empty stomach first thing, then blaming the supplement for nausea.

5. Track headache frequency, not just pain days

Log headache days per week for four weeks before starting, then continue logging through the trial. Frequency is the metric that trials measure — a drop from, say, 6 headache days a month to 3 is a meaningful signal even if the headaches that do occur feel similar in intensity.

Common mistake: judging success by a single good week instead of a full monthly pattern.

6. Pair it with hydration

Dehydration is one of the most common headache triggers, and magnesium works alongside sodium and potassium in fluid balance. If you're already dealing with afternoon energy dips or headaches that worsen with exercise or heat, hydration status is worth checking alongside magnesium intake rather than instead of it.

Common mistake: increasing magnesium while cutting back on water intake, which can make gut tolerance worse.

7. Watch for interactions and side effects

Magnesium can reduce absorption of certain antibiotics and thyroid medication if taken at the same time, and high doses can cause diarrhoea before they cause any benefit. Space doses at least two hours from other medications where advised, and back off the dose if stools loosen for more than a couple of days.

Common mistake: ignoring gut symptoms because it's just a supplement — persistent diarrhoea means the dose is too high, full stop.

8. Reassess at 8-12 weeks

Compare your headache diary before and after the trial period. If frequency has dropped by a third or more, that's consistent with what trials report and worth continuing at a maintenance dose. If nothing's changed, magnesium likely isn't your driver and it's worth looking at sleep, hydration, or hormonal factors instead — many of which show up together, as covered in how much magnesium women should take daily.

Troubleshooting

  • No change after 4 weeks — normal. Migraine prevention trials run 8-12 weeks minimum before judging effect; stopping early is the most common reason people conclude it doesn't work.
  • Loose stools or cramping — lower the dose or switch from oxide/citrate to glycinate, which is gentler on the gut.
  • Headaches worse in the evening — check hydration and screen time first; magnesium won't override dehydration or eye strain.
  • Taking it but still exhausted — magnesium supports nerve and muscle function but won't fix sleep debt on its own; a separate wind-down routine may be needed.
  • Unsure if it's working or if headaches are hormonal — track your cycle alongside your headache diary; magnesium needs can shift with hormonal fluctuation.
  • Interactions with existing medication — check timing gaps with a pharmacist, particularly for thyroid medication and certain antibiotics.

Tools and resources

  • A headache and symptom diary (paper or app)
  • Magnesium glycinate vs citrate comparison for choosing your form
  • Signs of magnesium deficiency to check before you start
  • A basic hydration tracker if headaches cluster with exercise or hot weather

What to do next

Once you've settled on a form and dose, the next question is usually how much magnesium to take overall given your diet, stress load, and sleep pattern — that's answered in more depth in how much magnesium women should take daily, which covers dosing ranges for different goals beyond headache prevention.

FAQ

Does magnesium actually help with headaches? Evidence from several controlled trials supports magnesium oxide at 400-600mg daily for reducing migraine frequency, though results vary by individual and typically take 8-12 weeks to show up.

What's the best magnesium for headaches — glycinate or citrate? Magnesium oxide has the most trial data for migraine prevention, but glycinate is gentler on digestion and citrate sits in between; the right choice depends on gut tolerance more than headache type.

How much magnesium should I take for headaches? Most trials use 400-600mg daily, but starting at 200-300mg and building up over one to two weeks avoids the gut upset that causes people to quit early.

How long does magnesium take to work for headaches? Expect 8-12 weeks before judging effect — this is a prevention strategy, not a same-day remedy, and short trials of a week or two won't show the frequency reduction seen in research.

Can magnesium cause headaches instead of helping? Rarely, though very high doses can cause dehydration-related headaches via diarrhoea; staying within 400-600mg and pairing with fluids avoids this.

Is magnesium better than painkillers for headaches? They solve different problems — painkillers address a single headache, magnesium is studied as a frequency-reduction strategy over months, so the two aren't direct substitutes.

Do I need a magnesium supplement if I eat a balanced diet? Possibly not, but UK dietary surveys suggest a meaningful share of adults fall short of the 270-300mg daily reference intake, so checking symptoms against a deficiency checklist is worth doing before assuming diet alone covers it.

What magnesium form is gentlest on the stomach? Magnesium glycinate typically causes the least digestive upset of the common forms, making it a reasonable starting point if you've had gut issues with other supplements before.

One last thing

The detail most people miss in 2026 headache advice: frequency reduction, not pain elimination, is what the research actually measures. If you're waiting for headaches to vanish entirely before calling magnesium a success, you'll likely quit before the real signal — a drop from several headache days a month to just one or two — has a chance to show up on your tracker.

Related guides