The short answer

Possibly a little, mostly in older people. A review of three small trials in 151 older adults found magnesium helped people fall asleep about 17 minutes faster, but the evidence was low quality and total sleep didn't change significantly. The NHS says 400 mg a day or less from supplements is unlikely to cause harm.

Weak evidence

Small or short studies, surveys, or results that are mixed. How we grade

On this page
  1. Why might magnesium help sleep?
  2. What do the trials show?
  3. Is it safe?
  4. Is it worth trying?
  5. Common questions
  6. References

Why might magnesium help sleep?

Magnesium is involved in hundreds of processes in the body, including how nerves and muscles relax. It acts on the same calming brain receptors as some sleep medicines (GABA receptors) and dampens excitatory signals. That makes it plausible that topping up low levels could help sleep. Plausible is not the same as proven, though.

What do the trials show?

There are only a few trials, and they’re small.

  • The best-known trial, from Iran in 2012, gave 46 older adults with insomnia either 500 mg of magnesium or a placebo every day for 8 weeks. The magnesium group improved more on insomnia scores and sleep efficiency.
  • A 2021 review pooled three trials with 151 older adults. Magnesium cut the time to fall asleep by about 17 minutes compared with placebo. Total sleep rose by about 16 minutes, but that wasn’t statistically significant. The authors rated the evidence low quality and said better trials were needed.

There are no good trials in younger adults, and the people studied may have been low in magnesium to begin with. If your diet already gives you enough, extra magnesium is less likely to help.

Is it safe?

For most healthy adults, yes, at sensible doses. The NHS says taking 400 mg or less a day from supplements is unlikely to cause harm. High doses for a short time can cause diarrhoea.

  • Kidney disease: don’t take magnesium supplements without medical advice, because your kidneys may not clear it.
  • Medicines: magnesium can reduce how well some antibiotics (tetracyclines, quinolones) and osteoporosis drugs (bisphosphonates) are absorbed. Take them at different times, and ask a pharmacist.

Is it worth trying?

If you are older, eat little in the way of greens, nuts and wholegrains, and want to try a supplement, magnesium is low risk and cheap. Expect a small effect at best. It isn’t a treatment for long-term insomnia, where CBT for insomnia works far better.

Keep reading

Common questions

Which type of magnesium is best for sleep?

No trial has compared forms for sleep. Magnesium glycinate and citrate are absorbed well and are less likely to upset the stomach than magnesium oxide, but claims that one form is better for sleep aren't backed by trials.

When should I take magnesium for sleep?

Trials usually gave it in the evening, but there's no evidence that timing matters. Taking it with food can reduce stomach upset.

Can I get enough magnesium from food?

Most people can. Good sources include green leafy vegetables, nuts, seeds, wholegrain bread and brown rice. Adults need about 300 mg a day for men and 270 mg for women.

References

  1. Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: a systematic review and meta-analysis. BMC Complementary Medicine and Therapies, 2021.pubmed.ncbi.nlm.nih.gov
  2. Abbasi B et al. The effect of magnesium supplementation on primary insomnia in elderly: a double-blind placebo-controlled clinical trial. Journal of Research in Medical Sciences, 2012.pubmed.ncbi.nlm.nih.gov
  3. NHS. Vitamins and minerals: others (magnesium).nhs.uk

First published 4 November 2026. Spotted an error? Tell us and we'll correct it. Read our editorial policy.