Magnesium for sleep, anxiety and stress: which form to use, when to take it, and when it may help

I believe magnesium deficiency is one of the most overlooked issues in medicine: standard blood tests can miss it. I regularly use magnesium in clinic as part of a wider assessment for things such as sleep, anxiety and stress.

Dr Shehan Wijesingha

Dr Shehan Wijesingha MD, M.TCM, BMedSci, DipAP, CPT

Reviewed 6 July 2026 Reading time ~ 18 minutes

Summary

  • Magnesium may matter when symptoms cluster across sleep, anxiety, stress, burnout, cramps, constipation, headaches, fatigue, palpitations, low mood, vitamin D deficiency symptoms or fibromyalgia-type patterns.
  • For insomnia and anxiety, magnesium tends to help most when low magnesium, tension, constipation, stress or a wired nervous system are part of the picture.
  • For mental health, magnesium can support the body’s ability to settle, but it does not replace proper care when anxiety, low mood, trauma-linked symptoms, burnout or nervous-system dysregulation are significant.
  • The best form depends on the person. Glycinate or bisglycinate usually fits sleep, anxiety and tension. Citrate fits constipation. Threonate is the most interesting for the brain.
  • Supplements and IV magnesium both need discernment. The real question is not only what you are taking, but why it is being recommended and whether the route fits the problem.

Why so many of us are short of magnesium

I think the best place to start is the food itself.

Modern food is not the same as the food our bodies evolved eating. Our soils appear to hold less magnesium than they did decades ago, and once food is refined or processed, a great deal more is lost. Flour, rice and other staples can lose most of their magnesium through refining. So before we even talk about supplements, many people are already starting from a lower baseline.1, 2

Then there is the water.

For most of human history, hard, mineral-rich water was one quiet source of magnesium. Today, many people drink softer, filtered or treated water that is cheaper and easier to work with but contains fewer minerals. This is one more place where magnesium has quietly disappeared from daily life.

For those that are interested, I’ve created a guide to help those who would like to know where to buy good quality food and water in Malta.

Now add the world we live in.

A stressed society. A population that often runs on coffee. More alcohol than the body was designed to handle. A diet where sugar and refined carbohydrates are far too common. All of this can increase magnesium loss or demand.3

Then when these same people go to the doctor, they are then prescribed medications that can sometimes pull magnesium down over time, such as proton pump inhibitors and diuretics, and certain antibiotics. Poor absorption can do the same, particularly in conditions like coeliac disease, Crohn’s disease, ulcerative colitis or other gut problems.4

So when I say many people are low in magnesium, although I am aware this might not meet a perfectly defined textbook biochemical deficiency, logically speaking, I do think a lot of people are living in a body where the intake, absorption, losses and demand no longer add up properly.

How magnesium works in the body

Magnesium is not just a sleep supplement.

It is one of the body’s basic operating minerals, involved in more than three hundred enzyme reactions. It helps the body make and use ATP, which is the energy currency of the cell. So when magnesium is low, the effect can be felt far beyond sleep. Energy, muscle function, nerve signalling and recovery can all be affected.5

It is also needed to activate vitamin D.6 This is why I think about magnesium when someone has vitamin D deficiency symptoms, or when their vitamin D level does not rise as expected despite supplementation. Magnesium helps activate vitamin D, and active vitamin D helps the gut absorb magnesium, so the two often travel together.6, 7

Magnesium also helps muscles relax, supports normal nerve signalling, helps blood vessels relax, and helps the bowels move.4, 8 This is why low magnesium can show up in different ways: tension, cramps, twitching, constipation, palpitations, headaches, poor sleep, anxiety or that wired feeling many patients describe.

At the brain level, magnesium helps regulate the NMDA receptor, which is involved in excitatory signalling, and it supports GABA, one of the body’s calming neurotransmitter systems.9, 10 That is the simple reason magnesium is often discussed for sleep, anxiety, stress and mental health.

But this does not make magnesium a cure-all. It means that if magnesium is genuinely low, many systems can feel it.

Signs of magnesium deficiency, and why blood tests miss it

The signs of magnesium deficiency are not always dramatic. Often they are the ordinary symptoms people live with for years.

Poor sleep. Waking in the night. Anxiety. A wired feeling. Muscle cramps. Twitches. Restless legs. Headaches. Fatigue. Low energy. Palpitations. Constipation. Low mood. Sometimes the picture overlaps with stress, burnout, vitamin D deficiency symptoms, insomnia, or fibromyalgia symptoms, which is why it can be missed if nobody joins the pattern together.11

No single symptom proves low magnesium. But when several of these symptoms sit together, especially in someone with poor intake, stress, coffee, alcohol, gut problems, certain medications or heavy sweating, magnesium becomes worth thinking about properly.

This is also why I do not rely too heavily on the standard blood test.

In conventional medicine, we usually measure magnesium in the serum. The problem is that less than one per cent of the body’s magnesium sits in the blood. Most of it is inside the cells, and the body works hard to keep the blood level stable, even when the wider stores may not be ideal.

A normal serum magnesium result does not always mean magnesium is optimal.

It may simply mean the body is protecting the blood level.

If you want to measure magnesium more properly, red blood cell magnesium is usually more useful than serum magnesium. There are also other tests, including ionised magnesium and magnesium loading or tolerance tests.12, 13 In an ideal world, better testing would be used more often.

In real life, I think it also helps to be practical. These tests cost money. Sometimes they are useful. Sometimes the better use of a patient’s money is to correct a likely shortfall properly and spend the rest on understanding the wider pattern, rather than proving what the history already strongly suggests.

Can magnesium help with sleep, anxiety and stress?

Yes, magnesium can help with sleep, anxiety and stress. But it works best when the person is actually low, losing too much, absorbing poorly, or living in a body that is under more demand than it can comfortably handle.

That is why I do not think of magnesium as a sleeping tablet. I think of it as support for a nervous system that may have lost some of its ability to settle.

When magnesium is low, the brain can become easier to overexcite. Magnesium helps regulate the NMDA receptor, which is involved in excitatory signalling, and it supports GABA, one of the body’s calming neurotransmitter systems.9, 10 It can be thought of as a brake pedal that is not working as well.

In older adults for example, magnesium helped people fall asleep around seventeen minutes faster.14 A more recent trial using magnesium bisglycinate in poor sleepers showed a small but real improvement, especially in people who started with lower magnesium levels.15 Studies on anxiety and stress point in the same direction: the signal is there, and although the trials tend to be small, the benefit seems to usually be the strongest when magnesium status is low.16–18

This is also why the major insomnia and anxiety guidelines still put the proven treatments first, cognitive behavioural therapy for chronic insomnia and standard care for anxiety, with magnesium as valuable support rather than the headline.19, 20

Therefore, from my perspective, if someone has poor sleep, anxiety, stress, burnout, tension, constipation or clear risk factors for low magnesium, this is something worth thinking about properly.

But if someone has chronic insomnia, severe anxiety, low mood, trauma-linked symptoms, panic, or a nervous system that has been dysregulated for years, magnesium alone is rarely enough. It may support the body, but the wider pattern still needs to be understood.

Magnesium glycinate vs citrate, and the main types of magnesium

Sometimes supplement marketing makes the latest form of magnesium sound like a breakthrough.

Unfortunately, the truth tends to be a bit more boring.

The best magnesium is usually the one you absorb, tolerate, can afford, and can take consistently.

Table 1. Five common forms of magnesium
Form Reason it may be considered Bowel or tolerance point Important limitation
Glycinate or bisglycinate Sleep, anxiety, stress or tension, especially when a gentler form is wanted Usually well tolerated and gentle on the gut Its reputation seems stronger than the direct evidence for sleep
Citrate Low magnesium when constipation is also part of the picture Draws water into the bowel and may loosen stools May aggravate diarrhoea, urgency or a sensitive gut
L-threonate When cognition, memory, mood or sleep are being considered No specific bowel effect is discussed here Human trials are small, and some may be linked to industry
Oxide Some trials report improved sleep and increased magnesium levels No specific tolerance advantage is discussed here It appears to be less well absorbed than some other forms
Chloride When low magnesium sits alongside low mood or a wider metabolic picture The evidence discussed here concerns oral chloride, not sprays Evidence for sprays reliably restoring magnesium does not seem convincing

The number on the front of a supplement may refer to the full compound rather than the elemental magnesium it provides. The form, amount of elemental magnesium, medicines, kidney function and the person taking it all need to be considered together.

Magnesium glycinate or bisglycinate

This is the form most people reach for when they are looking for the best magnesium for sleep, anxiety or stress. It is also the form I sometimes start with for that pattern.

The reason is that it is usually well absorbed, gentle on the gut, and easy to take long term.21 The glycine part may also have a calming effect of its own, which may be one reason people feel better on it.

However, the honest limitation is that its reputation seems to be stronger than the direct evidence. Although I have seen some human evidence for magnesium bisglycinate in poor sleepers, I do not think it is enough to pretend this is a miracle sleep treatment.15

So from my perspective, if someone is tense, wired, anxious, sleeping badly, and does not want their bowels loosened too much, glycinate can be a reasonable place to start.

The short video on the right covers magnesium glycinate and threonate - the two forms I talk about most for sleep, anxiety and cognitive function.

Magnesium is a supplement pretty much all of us can benefit from taking

Magnesium L-Threonate

This is a form that particularly interests me when it comes to the brain.

It appears to enter the brain more effectively than other forms, and the human trials, while small and I suspect can often be industry-linked, are still interesting. Studies have reported improvements in cognition, working memory, mood, energy and sleep quality in selected groups.25, 26

The mechanism also makes sense. Animal work suggests that raising brain magnesium may support synaptic density, learning and memory through effects on NMDA receptor signalling and long-term potentiation in the hippocampus.27

Magnesium Citrate

I think this is often the alternative many seem to reach for most commonly. The difference is mainly the bowel. Citrate tends to be more affordable and from my perspective, useful when constipation is part of the picture. It pulls water into the bowel, which is why it can help people who are sluggish or backed up, and magnesium supplements have modest trial evidence for easing constipation.22

That also means it can be the wrong form if someone already has loose stools, IBS with diarrhoea, urgency, or a sensitive gut.

So if the main issue is sleep, anxiety or stress, I usually think of glycinate first. If the main issue is constipation with possible low magnesium, citrate often makes more sense.

Magnesium oxide

Oxide tends to have a poorer reputation because it seems to be not as well absorbed compared to other forms. However in all honesty, I think it is under-rated as a magnesium product. There are trials which show oxide can still improve sleep and raise magnesium levels.23, 24

Magnesium chloride

By mouth, it seems to have a surprisingly more solid record than its reputation can suggest. It improved depression scores in a randomised trial, and in people with metabolic syndrome and low magnesium it improved blood pressure, fasting glucose and triglycerides.28, 29

So I think about chloride when the picture is more metabolic: blood sugar, blood pressure, low mood, stress physiology and low magnesium together.

I am not talking here about magnesium sprays. Transdermal magnesium is popular, but I personally have not seen any convincing evidence that sprays reliably replete magnesium in the body, so I tend to recommend them less, although I am aware they may help in certain, less serious cases.

Other forms like gluconate, lactate, carbonate and newer branded blends may have a place, but I would not spend too much attention on them unless there is a clear reason. For most people, the real decision is between glycinate, citrate, threonate, chloride, malate or oxide.

In my opinion, future supplements will likely use different blends of these, which makes logical sense to me.

When to take magnesium, and how much is usually used

The timing depends on why you are taking it.

If the main reason is sleep, I usually think about magnesium in the evening, often with food, and often one to two hours before bed to support the body’s ability to settle.

I also usually prefer magnesium with food. Partly because it is often gentler on the stomach, but also because minerals work alongside the other minerals, vitamins and nutrients the body is receiving.

If the goal is constipation, the timing can be different. Sometimes I suggest taking it in the morning to help the person pass a stool in the morning. Sometimes evening works well too, depending on the person, the form of magnesium, and what their overall situation looks like. The dose depends on the person in front of me, and other aspects of their lifestyle should also be considered, like in all contexts.

Sometimes I use a stronger dose early on because we are trying to create a clear result as safely and efficiently as possible. Other times the goal is simply maintenance, prevention or supporting optimal health, so there is no need to be aggressive from the beginning.

This is why I do not like giving one fixed magnesium dose for everyone. The right amount depends on the reason, the form, the person’s bowels, kidney function, medication, diet, symptoms and how depleted they appear to be.

Your own bowels can also guide you. If stools become loose, urgent or watery, that usually means the dose is too high, the form is wrong, or your body does not tolerate it well. In that sense, certain forms of magnesium can help you find your upper limit, not only for that form, but sometimes for magnesium tolerance more generally.

It is worth being careful with magnesium if you have kidney disease, heart rhythm problems, significant heart disease, very low blood pressure, are pregnant, or take regular medication, especially diuretics, antibiotics, blood pressure medication or medicines affecting the heart or kidneys.

At the same time, I think patients should go into these conversations informed. Doctors and health professionals are trained to think about safety, and that matters. But not every clinician has studied minerals, nutrition and supplements in enough depth to guide this well.

So ask questions.

Find out whether the person advising you genuinely understands the topic. Take responsibility for your health without blindly trusting anyone, including me.

What to look for in a magnesium supplement

The brand matters because unfortunately, some products seem to not use the form of magnesium written clearly on the label. To cut costs, some companies could blend cheaper forms of magnesium such as oxide or carbonate, whilst others could make the dose look bigger by listing the full compound rather than the amount of elemental magnesium you are actually getting.

So I think it is important to look for clear labelling, the exact form used, the amount of elemental magnesium, third-party testing where possible, and a company that does not hide behind vague “proprietary blend” language. The same principle applies to IV therapy.

IV magnesium: when the drip route genuinely makes sense

I use intravenous magnesium in practice, and I know not every doctor will agree with where I use it. However in conventional medicine, as doctors we already use IV magnesium when things become more serious: pre-eclampsia and eclampsia, certain severe asthma attacks, specific heart rhythm problems such as torsades de pointes, significant deficiency that needs more direct correction, and, in preterm birth, protecting the baby’s developing brain.5, 30–33

Where I become cautious is when IV magnesium is sold as a general energy drip, stress drip, burnout drip or quick fix for fatigue. If someone is genuinely low, under demand, not absorbing well, or needs faster support for a clear reason, IV magnesium can have a place. But if the real problem is poor sleep, unresolved stress, anxiety, inflammation, poor diet, medication issues, gut problems or a wider chronic pattern, a drip on its own may not be the best answer.

This is where patients need to think carefully. Does the person recommending the drip have a commercial incentive to sell you the drip? What else are they qualified to assess or offer? Are they able to adequately assess things like your diet, absorption, medication, testing, sleep, stress, bowel function and the wider clinical picture? The drip should follow the reason. And the reason should not be invented to sell the drip.

Saying that, I don’t think the wellness world is wrong to notice that magnesium matters. And I do think doctors should think about magnesium earlier, not only when the situation becomes dramatic. In the right patient, magnesium may deserve attention before things reach hospital-level severity: poor sleep, headaches, constipation, anxiety, cramps, fatigue, low vitamin D that will not move, a diet low in whole foods, or a body under chronic stress.

So yes, IV magnesium can be useful. But I would rather use it carefully, for the right person, inside a proper plan, than pretend every tired or stressed person needs magnesium straight into a vein.

Bottom line

Magnesium matters because it is foundational.

A lot of people are probably running lower than their body would like, and the reasons are not complicated: poorer food quality, processed diets, less mineral-rich water, stress, coffee, alcohol, medication, absorption problems and bodies under more demand than they can comfortably handle.

The benefit for sleep, anxiety and stress is real, but it is usually modest, and strongest when magnesium is actually part of the problem. That is why I do not think of magnesium as a sleeping tablet or a cure for anxiety. I think of it as one support for a body that may be struggling to settle, repair and function properly.

The form matters, but less than the marketing pretends. Glycinate can be a good choice for sleep, anxiety and tension. Citrate can make sense when constipation is part of the picture. Threonate is interesting when it comes to the brain. The best form is the one that fits the person, the symptom pattern, the gut and the reason for taking it.

And if your sleep, anxiety, fatigue, cramps, constipation, headaches or stress are not shifting, that needs a proper look, not necessarily just another supplement.

Magnesium can be part of the answer. It is usually not the full answer.

Magnesium is one of the things I look at. The mental health page is where that wider work sits.

If sleep, anxiety or stress are still a problem, feel free to

References
  1. DiNicolantonio JJ, O'Keefe JH, Wilson W (2018). Subclinical magnesium deficiency: a principal driver of cardiovascular disease and a public health crisis Open Heart.
  2. Barbagallo M, Veronese N, Dominguez LJ (2021). Magnesium in aging, health and diseases Nutrients.
  3. Gröber U, Schmidt J, Kisters K (2015). Magnesium in prevention and therapy Nutrients.
  4. de Baaij JHF, Hoenderop JGJ, Bindels RJM (2015). Magnesium in man: implications for health and disease Physiological Reviews.
  5. National Institutes of Health, Office of Dietary Supplements (2022). Magnesium: Fact Sheet for Health Professionals NIH ODS.
  6. Uwitonze AM, Razzaque MS (2018). Role of magnesium in vitamin D activation and function Journal of the American Osteopathic Association.
  7. Cheung MM, Dall RD, Shewokis PA, et al. (2022). The effect of combined magnesium and vitamin D supplementation on vitamin D status, systemic inflammation, and blood pressure: a randomized double-blinded controlled trial Nutrition.
  8. Houston M (2011). The role of magnesium in hypertension and cardiovascular disease Journal of Clinical Hypertension.
  9. Sartori SB, Whittle N, Hetzenauer A, Singewald N (2012). Magnesium deficiency induces anxiety and HPA axis dysregulation: modulation by therapeutic drug treatment Neuropharmacology.
  10. Pickering G, Mazur A, Trousselard M, et al. (2020). Magnesium status and stress: the vicious circle concept revisited Nutrients.
  11. Botturi A, Ciappolino V, Delvecchio G, et al. (2020). The role and the effect of magnesium in mental disorders: a systematic review Nutrients.
  12. Swaminathan R (2003). Magnesium metabolism and its disorders Clinical Biochemist Reviews.
  13. Witkowski M, Hubert J, Mazur A (2011). Methods of assessment of magnesium status in humans: a systematic review Magnesium Research.
  14. Mah J, Pitre T (2021). Oral magnesium supplementation for insomnia in older adults: a systematic review and meta-analysis BMC Complementary Medicine and Therapies.
  15. Schuster J, Cycelskij I, Lopresti AL, Hahn A (2025). Magnesium bisglycinate supplementation in healthy adults reporting poor sleep: a randomized, placebo-controlled trial Nature and Science of Sleep.
  16. Rawji A, Peltier MR, Mourtzanakis K, et al. (2024). Examining the effects of supplemental magnesium on self-reported anxiety and sleep quality: a systematic review Cureus.
  17. Boyle NB, Lawton C, Dye L (2017). The effects of magnesium supplementation on subjective anxiety and stress: a systematic review Nutrients.
  18. Pouteau E, Kabir-Ahmadi M, Noah L, et al. (2018). Superiority of magnesium and vitamin B6 over magnesium alone on severe stress in healthy adults with low magnesemia: a randomized, single-blind clinical trial PLOS ONE.
  19. Riemann D, Espie CA, Altena E, et al. (2023). The European Insomnia Guideline: an update on the diagnosis and treatment of insomnia 2023 Journal of Sleep Research.
  20. National Institute for Health and Care Excellence (2011). Generalised anxiety disorder and panic disorder in adults: management (CG113) NICE.
  21. Coudray C, Rambeau M, Feillet-Coudray C, et al. (1994). Bioavailability of magnesium diglycinate vs magnesium oxide in patients with ileal resection JPEN Journal of Parenteral and Enteral Nutrition.
  22. van der Schoot A, Katsirma Z, Whelan K, Dimidi E (2023). The effect of food, vitamin, or mineral supplements on chronic constipation in adults: a systematic review and meta-analysis of randomized controlled trials Neurogastroenterology & Motility.
  23. Abbasi B, Kimiagar M, Sadeghniiat K, et al. (2012). The effect of magnesium supplementation on primary insomnia in elderly: a double-blind placebo-controlled clinical trial Journal of Research in Medical Sciences.
  24. González-Parejo P, Martín-Núñez J, Cabrera-Martos I, Valenza MC (2024). Effects of dietary supplementation in patients with restless legs syndrome: a systematic review Nutrients.
  25. Hausenblas HA, Lynch T, Hooper S, et al. (2024). Magnesium-L-threonate improves sleep quality and daytime functioning in adults with self-reported sleep problems: a randomized controlled trial Sleep Medicine: X.
  26. Liu G, Weinger JG, Lu ZL, Xue F, Sadeghpour S (2016). Efficacy and safety of MMFS-01, a synapse density enhancer, for treating cognitive impairment in older adults: a randomized, double-blind, placebo-controlled trial Journal of Alzheimer's Disease.
  27. Slutsky I, Abumaria N, Wu LJ, et al. (2010). Enhancement of learning and memory by elevating brain magnesium Neuron.
  28. Tarleton EK, Littenberg B, MacLean CD, et al. (2017). Role of magnesium supplementation in the treatment of depression: a randomized clinical trial PLOS ONE.
  29. Rodriguez-Moran M, Simental-Mendia LE, Gamboa-Gomez CI, Guerrero-Romero F (2018). Oral magnesium supplementation and metabolic syndrome: a randomized double-blind placebo-controlled clinical trial Advances in Chronic Kidney Disease.
  30. Kew KM, Kirtchuk L, Michell CI (2014). Intravenous magnesium sulfate for treating adults with acute asthma in the emergency department Cochrane Database of Systematic Reviews.
  31. Viskin S (2021). Polymorphic ventricular tachyarrhythmias: terminology, mechanisms, and approach to management Circulation.
  32. Altman D, Carroli G, Duley L, et al. (Magpie Trial Collaboration Group) (2002). Do women with pre-eclampsia, and their babies, benefit from magnesium sulphate? The Magpie Trial: a randomised placebo-controlled trial The Lancet.
  33. Shepherd ES, Goldsmith S, Doyle LW, et al. (2024). Magnesium sulphate for women at risk of preterm birth for neuroprotection of the fetus Cochrane Database of Systematic Reviews.