Skip to content

Magnesium for Sleep

Type the magnesium in one serving of your supplement and how many servings you take. You see your day in milligrams of magnesium against each sleep trial of magnesium alone in adults — what it gave, when, to whom and what it found, the mixed and empty results included — and against the 350 mg a day the NIH sets as the upper limit for supplemental magnesium.

mg

The Supplement Facts panel already lists the magnesium itself — NIH ODS: “The Supplement Facts panel on a dietary supplement label declares the amount of elemental magnesium in the product, not the weight of the entire magnesium-containing compound.” Pick a compound only when the number is its weight, as on a front label reading “Magnesium glycinate 500 mg”.

Your 200 mg of magnesium a day is

Among the doses the sleep trials gave, within the 350 mg limit 200 mg of magnesium a day

Of the 9 placebo-controlled trials of magnesium alone in adults that we could read, 3 reported a sleep measure better than placebo, 2 had mixed results and 4 found no difference.

Nearest, 2 trials: Alizadeh et al. 2021 gave one 250 mg magnesium oxide tablet a day (151–250 mg of magnesium) for 8 weeks (time of day not stated), to women aged 18–40 with polycystic ovary syndrome (a four-arm trial with melatonin), and found no difference: “When we controlled the analysis for baseline values and energy intake, patients who consumed melatonin alone or in combination with magnesium had a greater improvement in sleep quality than other categories (P < 0.001).” Gholizadeh-Moghaddam et al. 2023 gave one 250 mg magnesium oxide tablet a day (151–250 mg of magnesium) for 10 weeks (time of day not stated), to 64 women with polycystic ovary syndrome, and found no difference: “Magnesium supplementation had no significant effect on hyperandrogenism (p = 0.51 for dehydroepiandrosterone sulfates, p = 0.27 for testosterone), hirsutism (p = 0.23), and sleep quality (p = 0.85) compared with placebo.”

Every adult trial of magnesium alone we could read, by dose
TrialMagnesiumWhenWhoFound
Hausenblas et al. 2024about 75 mg a day (1 g of magnesium L-threonate) for 21 daystwo hours before bedtime80 adults aged 35–55 with sleep problemsMixed
Macian et al. 2022100 mg a day for 1 monthonce a dayadults with fibromyalgia, in a trial about stress (sleep was a secondary measure)No difference
Lopresti & Smith 2026145 mg a day (2 g of magnesium L-threonate) for 6 weeksone capsule in the morning and one in the evening, two hours before bedtime100 adults aged 18–45 unhappy with their sleepMixed
Alizadeh et al. 2021one 250 mg magnesium oxide tablet a day (151–250 mg of magnesium) for 8 weeksnot statedwomen aged 18–40 with polycystic ovary syndrome (a four-arm trial with melatonin)No difference
Gholizadeh-Moghaddam et al. 2023one 250 mg magnesium oxide tablet a day (151–250 mg of magnesium) for 10 weeksnot stated64 women with polycystic ovary syndromeNo difference
Schuster et al. 2025250 mg a day as bisglycinate for 4 weeks30–60 minutes before bedtime155 adults aged 18–65 reporting poor sleepA sleep measure better than placebo
Nielsen et al. 2010320 mg a day as citrate for 7 weeksnot stated in the abstract100 adults aged 51–85 with poor sleep qualityNo difference
Abbasi et al. 2012500 mg a day as oxide (250 mg twice a day) for 8 weekstwice a day (time not stated)46 older adults with insomniaA sleep measure better than placebo
Held et al. 200230 mmol (729 mg) a day for 14 days, after 3 days each at 10 and 20 mmolnot stated in the abstract12 adults aged 60–80 (crossover, sleep measured by EEG)A sleep measure better than placebo

This is not medical advice and none of it is a dose recommendation. Trouble sleeping for weeks is worth a conversation with your doctor. Ask your doctor or pharmacist first if you have kidney disease or take antibiotics, bisphosphonates, diuretics or acid-reflux medication (proton pump inhibitors): the NIH’s magnesium fact sheet lists all four among its interactions.

Of the nine placebo-controlled adult trials of magnesium alone we could read, three reported a sleep measure better than placebo, two had mixed results and four found no difference. They gave 75 to 729 mg of magnesium a day; the NIH’s upper limit for supplemental magnesium is 350 mg, and a 2026 review concludes: “Current evidence does not support oral magnesium as a routine treatment for insomnia.”

How to use it

Type the magnesium in one serving and how many servings you take a day. On a Supplement Facts panel that number is already the magnesium itself; if all you have is a front label such as “Magnesium glycinate 500 mg”, pick the compound and the tool works out the magnesium in it from the compound’s formula (glycinate is 14.1% magnesium, so 500 mg holds 70.5 mg). You see your day against each trial — dose, time of day, who took it and what it found, in its own words — and against the 350 mg limit. It never tells you how much to take: it places your amount among theirs.

The trials

These are every placebo-controlled trial in adults of oral magnesium on its own (or with a magnesium-only group) with a sleep outcome that two PubMed searches returned (searched 2026-10-09). Blends — with melatonin, zinc, potassium, B vitamins or herbs — are left out, and so are magnesium by drip during surgery and the trials about leg cramps or restless legs. The doses below are the magnesium itself, as each paper prints it. One more trial, Liu 2016, gave a magnesium L-threonate formula to older adults with memory problems without printing how much magnesium it held, and reported: “Due to the strong placebo effects on sleep and anxiety, the effects of MMFS-01 on sleep and anxiety could not be determined.”

What each trial gave in a day, and what it found
Trialmg of magnesium a dayDaysFound
Hausenblas et al. 20247521Mixed
Macian et al. 202210028No difference
Lopresti & Smith 202614542Mixed
Alizadeh et al. 2021151–25056No difference
Gholizadeh-Moghaddam et al. 2023151–25070No difference
Schuster et al. 202525028A sleep measure better than placebo
Nielsen et al. 201032049No difference
Abbasi et al. 201250056A sleep measure better than placebo
Held et al. 200272920A sleep measure better than placebo

In their own words. Hausenblas et al. (80 adults aged 35–55 with sleep problems, about 75 mg a day (1 g of magnesium L-threonate) for 21 days): “MgT group significantly improved total ISI score from baseline to day 7, 14 and 21, while placebo also significantly improved total ISI score from baseline to day 7, 14 and 21, but there was no statistically significant interaction (condition x time) (p = 0.39). From objective Oura ring measurements, MgT significantly (p < 0.05) improved vs placebo deep sleep score, REM sleep score, light sleep time, and activity and readiness parameters activity score, activity daily movement score, readiness score, readiness activity balance, and readiness sleep balance.” Macian et al. (adults with fibromyalgia, in a trial about stress (sleep was a secondary measure), 100 mg a day for 1 month): “Pain severity diminished significantly (p = 0.029) with magnesium while the other parameters were not significantly different between both groups.” Lopresti & Smith (100 adults aged 18–45 unhappy with their sleep, 145 mg a day (2 g of magnesium L-threonate) for 6 weeks): “Based on self-report measures, there was a greater improvement in sleep-related impairment (p = 0.043), but no group differences in changes in sleep disturbances (p = 0.316), restorative sleep (p = 0.439), or general wellbeing (p = 0.436); although in a subset of participants with more severe sleep-related problems, group differences in sleep-disturbances were identified (p = 0.031). Based on data from the sleep tracking ring, there were no group differences in sleep outcomes, although there was a greater reduction in HR (p = 0.030) and an increase in HRV (p = 0.036), a physiological marker of stress reduction and improved autonomic balance.” Alizadeh et al. (women aged 18–40 with polycystic ovary syndrome (a four-arm trial with melatonin), one 250 mg magnesium oxide tablet a day (151–250 mg of magnesium) for 8 weeks): “When we controlled the analysis for baseline values and energy intake, patients who consumed melatonin alone or in combination with magnesium had a greater improvement in sleep quality than other categories (P < 0.001).” Gholizadeh-Moghaddam et al. (64 women with polycystic ovary syndrome, one 250 mg magnesium oxide tablet a day (151–250 mg of magnesium) for 10 weeks): “Magnesium supplementation had no significant effect on hyperandrogenism (p = 0.51 for dehydroepiandrosterone sulfates, p = 0.27 for testosterone), hirsutism (p = 0.23), and sleep quality (p = 0.85) compared with placebo.” Schuster et al. (155 adults aged 18–65 reporting poor sleep, 250 mg a day as bisglycinate for 4 weeks): “The magnesium bisglycinate group showed a significantly greater reduction in ISI scores compared to the placebo group from baseline to Week 4 (-3.9 [95% CI: -5.8 to -2.0] vs -2.3 [95% CI: -4.1 to -0.4], respectively; p = 0.049). The effect size was small (Cohen’s d = 0.2), indicating a modest benefit.” Nielsen et al. (100 adults aged 51–85 with poor sleep quality, 320 mg a day as citrate for 7 weeks): “Overall PSQI scores improved (10.4 to 6.6, p < 0.0001) and erythrocyte magnesium increased (4.75 to 5.05 pg/cell, p = 0.01) regardless of magnesium or placebo supplementation.” Abbasi et al. (46 older adults with insomnia, 500 mg a day as oxide (250 mg twice a day) for 8 weeks): “As compared to the placebo group, in the experimental group, dietary magnesium supplementation brought about statistically significant increases in sleep time (P = 0.002), sleep efficiency (P = 0.03), concentration of serum renin (P < 0.001), and melatonin (P = 0.007), and also resulted in significant decrease of ISI score (P = 0.006), sleep onset latency (P = 0.02) and serum cortisol concentration (P = 0.008). Although total sleep time (P = 0.37) did not show any significant between-group differences.” Held et al. (12 adults aged 60–80 (crossover, sleep measured by EEG), 30 mmol (729 mg) a day for 14 days, after 3 days each at 10 and 20 mmol): “Mg(2+) led to a significant increase in slow wave sleep (16.5 +/- 20.4 min vs. 10.1 +/- 15.4 min, < or =0.05), delta power (47128.7 microV(2) +21417.7 microV(2) vs. 37862.1 microV(2) +/- 23241.7 microV(2), p < or =0.05) and sigma power (1923.0 microV(2) + 1111.3 microV(2) vs. 1541.0 microV(2) + 1134.5 microV(2), p< or =0.05 ).”

The two trials in women with polycystic ovary syndrome print “a 250 mg magnesium oxide tablet” without saying whether 250 mg is the oxide or the magnesium in it; by the oxide’s formula, 250 mg of it is 151 mg of magnesium, so both are shown as 151–250 mg.

Over 350 mg a day

NIH ODS: “The Tolerable Upper Intake Level for supplemental magnesium is 350 mg for adults, and it ranges from 65 to 350 mg for children and adolescents, depending on age.” Two trials gave more — Abbasi 2012 500 mg and Held 2002 729 mg a day, to older adults under study supervision. The tool marks any day over 350 mg and prints the NIH’s sentence beside it; it does not suggest one.

What the reviews say

A 2026 systematic review (Lopresti, Smith and Drummond, Journal of Dietary Supplements): “Twelve randomized controlled trials were included in the main synthesis on sleep, insomnia, or poor sleep, and three additional trials involving movement- or cramp-related sleep disturbance were analyzed separately.” “Certainty of evidence was low to very low.” “Current evidence does not support oral magnesium as a routine treatment for insomnia.” It counts three more trials than the nine above, some outside PubMed. An earlier meta-analysis of three trials in older adults (Mah and Pitre, 2021): “Pooled analysis showed that post-intervention sleep onset latency time was 17.36 min less after magnesium supplementation compared to placebo (95% CI – 27.27 to – 7.44, p = 0.0006).” and “All trials were at moderate-to-high risk of bias and outcomes were supported by low to very low quality of evidence.”

Worked examples

  • One serving with 200 mg of magnesium on the Supplement Facts panel (the page’s example): among the trials’ doses and within the 350 mg limit; the nearest trials are the two at 151–250 mg, and both found no difference.
  • A front label reading “Magnesium glycinate 500 mg”: 70.5 mg of magnesium — less than any trial gave; the nearest is Hausenblas 2024’s 75 mg, which had mixed results.
  • 250 mg twice a day: 500 mg — over the 350 mg limit, the dose Abbasi 2012 gave.
  • Two 1 g capsules of magnesium L-threonate: 165 mg of magnesium by the formula; the nearest trials are the two at 151–250 mg. (Lopresti 2026 counted its 2 g of Magtein as 145 mg.)

Common mistakes

  • Reading the compound as the magnesium. “Magnesium glycinate 500 mg” on the front of a bottle is about 70 mg of magnesium; the Supplement Facts panel lists the magnesium itself.
  • Counting only the good results. Four of the nine trials found no difference and two were mixed — in one, the insomnia score improved just as much on placebo.
  • Taking more because a trial did. Two trials gave more than 350 mg a day under supervision; the NIH’s limit for supplemental magnesium is 350 mg for adults.
  • Forgetting the glycine. The bisglycinate trial’s capsules also held 1,523 mg of glycine a day, which has been studied for sleep on its own.

Frequently asked questions

Does magnesium help you sleep?

Of nine placebo-controlled adult trials of magnesium alone, three reported a sleep measure better than placebo, two had mixed results and four found no difference. A 2026 systematic review concluded that current evidence does not support oral magnesium as a routine treatment for insomnia, with low to very low certainty.

How much magnesium for sleep did the trials use?

From about 75 mg of magnesium a day (as L-threonate) to 729 mg (Held 2002, in older adults). The bisglycinate trial gave 250 mg, the citrate trial 320 mg and the oxide trial in older adults with insomnia 500 mg. The NIH’s upper limit for supplemental magnesium is 350 mg a day for adults.

How much magnesium glycinate for sleep?

The one trial of magnesium bisglycinate gave 250 mg of magnesium a day, 30–60 minutes before bedtime, for four weeks, and found a small improvement in insomnia scores (Cohen’s d = 0.2). As a compound weight, 250 mg of magnesium is about 1,770 mg of magnesium glycinate — which is why the Supplement Facts panel lists the magnesium.

When to take magnesium for sleep?

The trials that said gave it 30–60 minutes before bedtime (Schuster 2025), two hours before bedtime (Hausenblas 2024), morning and evening (Lopresti 2026), twice a day (Abbasi 2012) or once a day (Macian 2022). The rest do not say.

Is magnesium glycinate better than other forms for sleep?

No trial we could read compared forms for sleep. The glycinate trial found a small improvement; the citrate trial found no difference from placebo; the oxide trials split; the L-threonate trials were mixed.

Can you take too much magnesium?

The NIH sets the upper limit for supplemental magnesium at 350 mg a day for adults; magnesium from food does not count against it. People with kidney disease clear magnesium less well, so their doctor should decide.

For which form of magnesium does what, see the Magnesium Form Finder & Dose Chart; for gummies, the Magnesium Gummies Calculator; for other sleep aids, L-Theanine for Sleep and the Melatonin Dose & Timing Calculator. How much glycine a magnesium glycinate carries, against the 3 g the glycine sleep trials gave: Glycine for Sleep.

Read next

This is not medical advice, and nothing here diagnoses or treats anything. It shows what small trials gave and what they found; it is not a dose recommendation. Insomnia that lasts is worth a conversation with your doctor. Talk to your doctor or pharmacist first if you have kidney disease or take blood thinners, antidepressants, a sedative, blood-pressure medication, antibiotics, bisphosphonates, diuretics or proton pump inhibitors. Some links on this site are affiliate links: I buy what I review at full price, and a commission never changes a verdict.