Sleep library · Supplements
Magnesium for sleep: which form, how much, and when
Short answer. If you try magnesium for sleep, a well-absorbed form such as magnesium glycinate is a common choice; magnesium oxide is poorly absorbed and mainly acts as a laxative. For adults, the tolerable upper intake level from supplements is 350 mg of elemental magnesium a day. Evidence for sleep is modest, so try one product for about two weeks and track it. Check with a clinician first if you have kidney disease or take prescription medication.
What the evidence says
Magnesium is involved in nerve and muscle function, which is why it is popular for sleep. Studies on sleep outcomes are small and mixed, so think of it as something that may help some people, not a sedative.
Does magnesium help with anxiety?
Many women want magnesium for the racing mind as much as for sleep. The research is encouraging but weak. A 2017 systematic review of 18 studies found that about half reported less self-rated anxiety with magnesium, mostly in people who were mildly anxious or had premenstrual symptoms, and the authors rated the quality of the evidence as poor. A 2024 review of 15 trials on anxiety and sleep reached a similar view: most studies showed some improvement, but they were small and used different doses and forms.
No study has tested magnesium for anxiety in women in perimenopause, and no form has been shown to work better than another for anxiety. If you try it, keep to the supplement limit below and track how you feel for two weeks.
Magnesium is not a treatment for an anxiety disorder or for panic attacks. If worry or a pounding heart wakes you most nights, read waking up with anxiety at night and talk to a clinician. Therapy, including CBT, has much stronger evidence.
Get the free 14-night sleep tracker
A printable one-page tracker, plus a short email each week on what the research says helps midlife sleep. Unsubscribe in one click.
Forms compared
- Glycinate (bisglycinate): well absorbed and gentle on the stomach; a common pick for evening use.
- Citrate: well absorbed, with a stronger laxative effect.
- Oxide: cheap and widely sold, poorly absorbed, mostly a laxative.
Labels can be confusing: the number that matters is elemental magnesium per serving, not the weight of the compound.
How much, and when
The US National Institutes of Health sets the tolerable upper intake level for magnesium from supplements at 350 mg a day for adults. That limit is for supplements only; magnesium from food does not count toward it.
Take it at the same time each evening and give it about two weeks before judging. Change one thing at a time so you know what helped.
Who should check first
Talk to a clinician or pharmacist before starting if you have kidney disease, take antibiotics, bisphosphonates, diuretics or other prescription drugs, or are pregnant.
Frequently asked questions
Is magnesium glycinate better than citrate for sleep?
Both are well absorbed. Glycinate tends to be gentler on the stomach, which is why many people prefer it at night. Neither is a guaranteed sleep aid.
Can I take magnesium every night?
Many adults do, within the 350 mg supplement limit, unless a clinician advises otherwise. Stop and seek advice if you get diarrhea, nausea or cramps.
Which magnesium is best for sleep and anxiety?
No form has been proven best for either. Glycinate is a common evening choice because it is well absorbed and gentle on the stomach. Studies on anxiety are small and mixed, so choose one product, stay within 350 mg a day from supplements and see a clinician if anxiety is affecting your days or nights.
Which sleep pattern is yours?
The free Sleep Code quiz takes two minutes and gives you one thing to try tonight.
Keep reading
Sources
- NIH Office of Dietary Supplements. Magnesium — Fact Sheet for Health Professionals.
- Mah & Pitre, 2021, BMC Complementary Medicine and Therapies: magnesium for insomnia in older adults
- Abbasi et al., 2012, Journal of Research in Medical Sciences: magnesium and insomnia in older adults
- Boyle et al., 2017, Nutrients: systematic review of magnesium supplementation for subjective anxiety and stress
- Rawji et al., 2024, Cureus: systematic review of supplemental magnesium, self-reported anxiety and sleep quality
This article is educational and is not medical advice. It was checked against the sources above on 2026-10-20.