Magnesium and Sleep

One of the most popular sleep supplements rests on a few small trials and a modest effect.

Magnesium is an essential mineral, and about half of Americans get less from food than they need.1 Its reputation as a sleep aid rests on a small evidence base. A 2021 review found three small trials in older adults, rated low to very low quality, in which magnesium shortened the time to fall asleep by about 17 minutes without significantly changing total sleep.2 A 2025 trial in 155 adults reporting poor sleep found a small improvement on a sleep-difficulty scale after four weeks, and no difference in daytime tiredness or mood.3 Supplemental magnesium above 350 mg a day can cause diarrhea, and people with kidney disease face a risk of toxicity.1

Evidence at a glance

  • Falling asleep faster, older adults: limited (low-quality trials).
  • Overall sleep difficulty, adults reporting poor sleep: limited (one trial, small effect).
  • Total sleep time: insufficient.
  • Daytime tiredness: no difference found.

Magnesium helps run more than 300 enzyme systems in the body, including those involved in making protein, muscle and nerve function, blood sugar control and blood pressure.1 Adults need about 310 to 420 mg a day, depending on age and sex.1

Shortfalls are common. About 48% of Americans get less magnesium from food and drink than their estimated requirement.1 Green leafy vegetables such as spinach, legumes, nuts, seeds and whole grains are good sources.1 People with gastrointestinal diseases, type 2 diabetes or alcohol dependence, and older adults, are more likely to fall short.1

The body typically absorbs about 30% to 40% of the magnesium in food. Food is also the safest route: too much magnesium from food does not pose a risk for healthy people, because the kidneys remove the excess.1

Early signs of a real deficiency include loss of appetite, nausea, vomiting, fatigue and weakness. A blood test is the usual check, but blood levels do not accurately reflect how much magnesium the body holds overall, and no single test is considered satisfactory.1

Notably, the NIH’s detailed fact sheet on magnesium does not discuss sleep at all.1 The sleep claims come from a small number of trials.

Older adults. A 2021 systematic review found three randomized trials comparing oral magnesium with placebo in 151 older adults with sleep problems in three countries. Pooled, magnesium shortened the time it took to fall asleep by about 17 minutes. Total sleep time rose by about 16 minutes, a difference that was not statistically significant. All three trials were at moderate to high risk of bias, and the evidence was rated low to very low quality.2

Adults reporting poor sleep. A 2025 trial randomly assigned 155 healthy adults aged 18 to 65 who reported poor sleep to 250 mg of magnesium, as magnesium bisglycinate, or a placebo for four weeks. Scores on the Insomnia Severity Index, a questionnaire about sleep difficulty, fell by 3.9 points with magnesium and 2.3 with placebo, a small effect. There were no differences in fatigue, daytime sleepiness, stress, mood or anxiety, and overall sleep quality did not differ significantly between the groups.3

Put together: a possible small effect on how quickly some people fall asleep, from a thin and imperfect evidence base.

Forms differ in how well they are absorbed. Magnesium in the aspartate, citrate, lactate and chloride forms is absorbed more completely than magnesium oxide and magnesium sulfate.1 Some forms are also more likely to cause diarrhea, including the carbonate, chloride, gluconate and oxide forms.1

The 2025 trial used magnesium bisglycinate.3 There is no good evidence that one form works better than another for sleep.

For adults, the upper limit for magnesium from supplements and medicines is 350 mg a day. That limit does not include magnesium from food, which does not cause these problems.1

Stomach effects. High doses of supplemental magnesium often cause diarrhea, sometimes with nausea and cramping.1

Toxicity. Very large doses of magnesium-containing laxatives and antacids, typically more than 5,000 mg a day, have been linked to magnesium toxicity. Symptoms can include low blood pressure, nausea, vomiting, facial flushing and lethargy, progressing to muscle weakness, difficulty breathing and an irregular heartbeat.1

Kidney disease. Impaired kidneys cannot remove extra magnesium well, so the risk of magnesium toxicity rises, and severe toxicity can affect the heart.1 People with kidney disease should not take magnesium supplements without medical advice.

Osteoporosis medicines such as alendronate: take magnesium at least 2 hours before or after.1

Some antibiotics, tetracyclines and quinolones: take them at least 2 hours before or 4 to 6 hours after magnesium.1

Diuretics and acid reducers. Some diuretics increase magnesium loss, and long-term use of proton pump inhibitors can lower magnesium levels.1

See supplement-medication interactions for more.

Do I have kidney disease? If so, magnesium supplements need medical advice first.1

Am I taking antibiotics, osteoporosis medicine, a diuretic or an acid reducer? Each interacts with magnesium.1

How much am I already getting? Check every product you take, including multivitamins and antacids, against the 350 mg supplemental limit.1

Persistent difficulty sleeping has effective treatments, starting with cognitive behavioral therapy for insomnia, which the American Academy of Sleep Medicine strongly recommends.4 The complete sleep hygiene guide covers where habits fit. Sleepiness during the day despite enough time in bed is a different problem with its own causes; what is excessive daytime sleepiness? explains them.