The short answer
Magnesium is not an established treatment for chronic insomnia. A 2021 systematic review[1] found only three small randomised trials in 151 older adults. Sleep-onset time was shorter by about 17 minutes in the pooled estimate, while total sleep time was not significantly improved. The studies had moderate-to-high risk of bias and the evidence was low to very low quality. A supplement may be reasonable when intake is low, but persistent sleep problems deserve proper assessment.
In this article

No magnesium form has been shown to be the “best for sleep.” Glycinate is often chosen for tolerability; oxide and citrate appeared in the limited trials. The label, elemental dose, gut response, medicines and kidney function matter more than the bedtime branding.
First identify the sleep problem
| Pattern | More useful first step | Why magnesium may miss the cause |
|---|---|---|
| Difficulty falling asleep with variable schedule | Stabilise wake time, review caffeine/light and build wind-down | Circadian timing and habits may dominate |
| Loud snoring, gasping, witnessed pauses or morning headaches | Ask a GP about sleep apnoea assessment | A sedating routine does not treat airway obstruction |
| Restless legs or urge to move | Seek assessment, including iron status where appropriate | Symptoms are not proof of magnesium deficiency |
| Waking with hot flushes, pain, reflux or urinary symptoms | Address the underlying trigger | A supplement may mask the pattern |
| Shift work or jet lag | Use a schedule/light strategy | Timing problem differs from nutrient deficiency |
| Anxiety, low mood or persistent insomnia affecting function | Seek evidence-based care, including CBT-I pathways | Chronic insomnia responds to structured treatment |
Read the broader sleep and training guide for schedule, caffeine, naps and training-day decisions.
What the magnesium trials measured
The Mah and Pitre review included adults aged 55 and older with insomnia. Interventions lasted 20 days to eight weeks and used 320–729 mg elemental magnesium daily, including citrate and oxide formulations. Those amounts do not become retail recommendations: some exceed the Australia/New Zealand supplemental upper level, adverse-event reporting was poor and the trials were small.
The pooled sleep-onset result had wide uncertainty, and total sleep time did not show a statistically significant improvement. The studies did not establish that younger adults, athletes, people with adequate magnesium intake, or users of magnesium glycinate obtain the same effect.
Observational studies linking low magnesium intake with poor sleep cannot show direction of causation. People with poorer diets, illness or stress may both sleep worse and consume less magnesium.
Check food intake before form shopping
Magnesium is widespread in foods.
| Food group | Examples | Easy use |
|---|---|---|
| Nuts and seeds | Almonds, cashews, pumpkin seeds, tahini | Add a small portion to breakfast or snacks |
| Legumes | Beans, chickpeas, lentils | Use in soups, chilli, salads and curries |
| Wholegrains | Oats, wholegrain bread, brown rice | Replace some refined grains |
| Green vegetables | Spinach and other leafy greens | Include cooked or raw across meals |
| Soy foods | Tofu, tempeh, some soy drinks | Check fortification separately |
Adult Australia/New Zealand RDIs[2] vary by age and sex, roughly 310–320 mg/day for women and 400–420 mg/day for men from all sources. Estimated low intake is not the same as a measured body deficiency; serum magnesium may also remain normal until deficiency is significant.
For general food-planning support, see Inception Nutrition. If you need clinical nutrition advice, use a registered dietitian and verify the provider's qualifications and scope.
If you trial a supplement, define the experiment
Only proceed if a pharmacist or clinician agrees it is suitable.
- Record sleep and wake time, awakenings, caffeine/alcohol and daytime sleepiness for one to two weeks first.
- Change one variable. Do not start magnesium, melatonin, herbal blends and a new bedtime simultaneously.
- Read elemental magnesium per daily dose.
- Set a review date rather than continuing by habit.
- Stop and seek advice for persistent diarrhoea, weakness, confusion or worsening symptoms.
Use the same outcome each week: average time to fall asleep, time awake during the night, total sleep opportunity and daytime function. Wearables estimate sleep and can misclassify quiet wakefulness; they are trend tools, not diagnostic devices.
Form choice does not solve the evidence gap
Magnesium glycinate is often marketed for “calm,” but direct trials proving it improves insomnia are lacking. Oxide is less soluble and more likely to loosen stools; citrate is relatively soluble and can also have a laxative effect. No head-to-head trial establishes superior sleep benefit across forms.
Compare:
- elemental magnesium per daily serving;
- complete ingredient list, including glycine, herbs or melatonin;
- tablet count and cost per 100 mg elemental magnesium;
- diarrhoea or abdominal symptoms;
- medicine spacing and kidney function.
See magnesium glycinate versus oxide for the full label comparison.
Safety and interaction boundaries
The Australia and New Zealand adult upper level[2] is 350 mg/day from non-food sources, based mainly on diarrhoea. It excludes magnesium naturally in food. It is a ceiling for generally healthy populations, not a recommended bedtime amount.
Kidney impairment can reduce magnesium clearance. Magnesium can interfere with absorption of tetracycline/quinolone antibiotics, bisphosphonates and levothyroxine; a pharmacist should set the spacing. Combining an antacid, laxative and sleep supplement may produce more magnesium than expected.
Pregnancy, breastfeeding and use in children require their own clinical pathway. Do not use an adult sleep product to treat a child's sleep.
Strengthen the higher-evidence foundations
For persistent insomnia, cognitive behavioural therapy for insomnia (CBT-I) is a first-line treatment in major clinical guidelines. Its components include stimulus control, a consistent schedule, sleep restriction/compression delivered safely, cognitive work and relapse planning. “Sleep hygiene” tips alone are not equivalent to CBT-I.
Practical foundations still matter:
- maintain a consistent wake time;
- allow an adequate sleep opportunity;
- move caffeine earlier if it delays sleep;
- reduce alcohol as a sleep aid because it fragments sleep;
- use light and activity to support the desired schedule;
- adapt evening training and meals if they repeatedly disturb sleep.
Frequently asked questions
How long before bed should I take magnesium?
Trials do not establish one optimal timing rule. Follow the product/clinician instructions and prioritise a consistent sleep schedule.
Will magnesium make me drowsy?
It is not a reliable sedative. Some people report relaxation, but subjective drowsiness does not prove improved sleep architecture or treatment of insomnia.
Is glycinate better than oxide for sleep?
No direct high-quality evidence establishes this. Glycinate may be better tolerated by some people; oxide's bowel effect may be undesirable.
Can magnesium help restless legs?
Evidence is insufficient for a general recommendation, and restless legs has other causes and treatments. Seek assessment rather than self-treating.
When should I see a GP?
When poor sleep persists for months, impairs daytime function, involves dangerous sleepiness, or comes with snoring/gasping, unusual movements, chest symptoms or significant mood changes.
References
- 1.Mah & Pitre: Oral magnesium for insomnia in older adults: three-trial meta-analysis, effect estimates and low-certainty limitations.
- 2.Australia and New Zealand Nutrient Reference Values: Magnesium: RDIs and 350 mg/day non-food upper level.
- 3.NIH ODS: Magnesium fact sheet for health professionals: food sources, absorption, interactions and toxicity context.
- 4.American Academy of Sleep Medicine insomnia guideline: evidence-based behavioural/psychological treatment context; implementation requires trained care.
- 5.Health New Zealand: Sleep: current local sleep advice and help-seeking context.
- 6.Health New Zealand: Dietary supplements: supplement safety and interaction framework.
- 7.ASA Therapeutic and Health Advertising Code: therapeutic and substantiation boundaries.
This guide provides general education, not diagnosis or individual medical advice. Follow product labels and speak with an appropriately qualified health professional when you are pregnant, nursing, taking medication or managing a health condition.
Back to supplement guides

