What is the link between magnesium deficiency and headaches?

Quick summary

A low magnesium status is one of the factors studied in migraine and tension-type headaches, without being their sole cause. The mineral supports normal nervous function, but it does not “cure” headaches: before considering any supplementation for a persistent headache, medical advice remains essential.

Key facts

Magnesium A mineral that acts as a cofactor in more than 300 enzymatic reactions and is involved in regulating the nervous system.
Migraine A headache disorder for which a low magnesium status is one of the factors studied, among others.
Nervous function Contribution to normal nervous function recognised by the EFSA (an established claim).
Reference intake Around 300 to 400 mg per day in adults, covered by a varied diet.

Key points

  • Magnesium is involved in neuronal excitability and the regulation of vascular tone, two mechanisms linked to headaches.
  • The EFSA recognises its contribution to normal nervous function, but no “treats migraines” claim is authorised.
  • Headaches have many causes (sleep, stress, hydration, screens): deficiency is only one of them.
  • When headaches are frequent or unusual, medical advice takes priority over self-supplementation.
Person rubbing their temples, illustrating the studied link between frequent headaches and magnesium status
A low magnesium status is one of the factors studied in migraine, without being its sole cause.

Can frequent headaches stem from a magnesium deficiency? This mineral takes part in regulating the nervous system and modulating the tone of blood vessels, two mechanisms involved in migraine and tension-type headaches. But headaches have multiple causes — sleep, stress, hydration, screens, caffeine withdrawal — and a magnesium shortfall is only one of them. This article, which complements our feature on the signs of a magnesium deficiency, takes stock of what is genuinely known, without promising that magnesium “cures” migraines.

What role does magnesium play in the nervous system?

Magnesium acts as a cofactor in more than 300 enzymatic reactions and plays a central role in how the nervous system works. It modulates the activity of NMDA receptors to glutamate and stabilises the excitability of neuronal membranes, which helps to temper excessive nervous activity[1]. On this physiological basis, the EFSA authorises the claim that “magnesium contributes to normal nervous function”[3].

Neuronal excitability and vascular tone

Two mechanisms connect magnesium to headaches. On the one hand, by regulating the flow of calcium and potassium across membranes, magnesium influences the excitability threshold of neurons. On the other hand, it takes part in regulating the tone of blood vessels, whose dilation and contraction play a part in the physiology of migraine[2]. These roles explain the research interest in this mineral, without making it a treatment in its own right.

300+ enzymatic reactions that depend on magnesium. Among them, several pathways involved in nerve transmission and the electrolyte balance of brain cells. Source: de Baaij et al., Physiological Reviews 2015

Magnesium deficiency and headaches: what does the science say?

A low magnesium status is observed more often in some people with migraine, and several guidelines consider magnesium a possible option for migraine prevention, with a moderate level of evidence[2]. A measured view is needed, however: it is one factor among others, and the effect, where it exists, remains partial.

One factor among others

Frequent headaches most often result from a combination of factors: lack of sleep, stress, dehydration, muscular tension, prolonged screen exposure or caffeine withdrawal. Attributing a headache to a single “magnesium shortfall” would be reductive. The mineral may be part of the picture, particularly in people whose intake is genuinely insufficient, but it replaces neither a diagnosis nor appropriate care.

Signs that may accompany a shortfall

When a shortfall is involved, headaches are often accompanied by other non-specific signals:

  • Unexplained fatigue and a drop in day-to-day energy.
  • Irritability or nervousness that increases in the face of stress.
  • Muscle cramps or twitches, including small eye spasms.

As these symptoms are common to many situations, only a healthcare professional can determine whether a magnesium shortfall is genuinely involved, with a blood test if needed.

Warning

A new, intense or sudden headache, or one associated with other symptoms (fever, visual disturbances, neck stiffness), should prompt a consultation without delay. Magnesium is never a substitute for a medical assessment.

How can you improve your magnesium intake?

If your intake is insufficient, diet remains the first lever. Regularly eating magnesium-rich foods generally covers an adult’s needs, estimated at around 300 to 400 mg per day depending on age and sex[1]. To go further on the whole topic, see the complete magnesium guide.

Rely on diet first

The most valuable natural sources are leafy green vegetables (spinach), nuts and seeds (almonds, walnuts), seeds (pumpkin, sunflower), legumes and whole grains. Dark chocolate also provides some. Magnesium from food does not pose a risk of overdose, unlike high-dose supplements.

When should supplementation be considered?

If diet is not enough, supplementation can be discussed, preferably in a well-absorbed form such as bisglycinate or citrate, and after medical advice to set the dose. Magnesium can interact with certain medicines, and an excess mainly causes digestive upset[4]. It is therefore better to correct a confirmed shortfall than to supplement “blindly” in the hope of making a headache disappear.

Key takeaway

Lifestyle first: regular sleep, adequate hydration, stress management and moderate caffeine often do more for frequent headaches than supplementation on its own.

Frequently asked questions

Can magnesium help reduce frequent headaches?

Possibly, but only partially and in some people. Magnesium contributes to normal nervous function and takes part in regulating vascular tone, two mechanisms linked to headaches. Several studies retain it as a possible option for migraine prevention, with a moderate level of evidence. It is not, however, a guaranteed treatment: headaches have multiple causes, and any persistent symptom warrants medical advice before supplementing.

What are the signs of a magnesium deficiency?

A magnesium deficiency can show up as non-specific signs: fatigue, muscle cramps or twitches, irritability, sleep disturbances and sometimes headaches. As these symptoms are common to many situations, they are not enough to make a diagnosis. If in doubt, or with persistent symptoms, it is worth consulting a healthcare professional, who can assess your status, with a blood test if needed.

How can I increase my magnesium intake naturally?

Diet is the main lever. Favour leafy green vegetables, nuts and seeds, legumes, whole grains and fish. Combined with good hydration and stress management, these intakes generally cover an adult’s daily need, of the order of 300 to 400 mg. Magnesium from food does not pose a risk of overdose, unlike high-dose supplements.

How much magnesium do you need per day?

The need is around 300 to 400 mg per day in adults, depending on age and sex. A varied, plant-rich diet covers it most of the time. If supplementation is being considered for headaches, it is better to discuss it with a doctor to check that a shortfall is genuinely involved and to adjust the dose, rather than supplementing blindly.

Is magnesium supplementation safe?

At recommended doses, magnesium is generally well tolerated. An excess, especially in supplement form, can however cause digestive upset such as diarrhoea, and the mineral can interact with certain medicines. Caution is needed in the case of kidney failure. It is therefore better to follow the advice of a healthcare professional to set the form and dose suited to your situation.

Sources & references

4 sources
  1. de Baaij JHF, Hoenderop JGJ, Bindels RJM — Magnesium in man: implications for health and disease — Physiological Reviews, 2015 (review, DOI 10.1152/physrev.00012.2014)
  2. Gröber U, Schmidt J, Kisters K — Magnesium in Prevention and Therapy — Nutrients, 2015 (review, including migraine, DOI 10.3390/nu7095388)
  3. EFSA NDA Panel — Scientific Opinion on Dietary Reference Values for magnesium — EFSA Journal, 2015 (official opinion; authorised health claims, DOI 10.2903/j.efsa.2015.4186)
  4. Garrison SR, Korownyk CS, Kolber MR et al. — Magnesium for skeletal muscle cramps — Cochrane Database of Systematic Reviews, 2020 (systematic review, DOI 10.1002/14651858.CD009402.pub3)

Article published on , last updated on .