Does magnesium help you sleep?

Magnesium may help some people fall asleep a bit faster, but trials are small. What studies show, forms tested, safe doses and who should check first.

We're a paid partner of Titan Recovery, and their ads appear on this page. Details

In short

  • A 2021 meta-analysis of three trials in 151 older adults found people taking magnesium fell asleep about 17 minutes faster than with placebo, but the evidence was low to very low quality.
  • A 2023 systematic review of nine studies with 7,582 adults found observational studies linked magnesium status to sleep quality, while randomized trials gave contradictory results.
  • A 2024 review found five of eight magnesium sleep trials reported some improvement, and five of those eight studies tested magnesium oxide.
  • The NHS says taking 400 mg or less of magnesium a day from supplements is unlikely to cause harm, and higher doses can cause diarrhoea.
  • Some magnesium-containing laxatives and drugs can raise magnesium too high in people with reduced kidney function, according to a kidney disease review.
  • MedlinePlus advises taking magnesium-containing antacids, laxatives or supplements 1 to 2 hours apart from the antibiotic doxycycline.

Magnesium may help some people fall asleep a little faster, particularly older adults with insomnia, but the studies behind it are small and not very strong. It's cheap and widely available, and the authors of one review argued that makes it reasonable to try despite the weak evidence. Before you start, it's worth knowing what the trials actually found, which forms they used, how much is safe and who should check with a doctor or pharmacist first.

Does magnesium help you sleep?

Magnesium may help you sleep slightly better, but the evidence is limited. The most cited result is that older adults with insomnia fell asleep about 17 minutes faster on magnesium than on placebo. That comes from only three small trials, and reviewers rated the quality of the evidence as low to very low.

Research: limited (what this means)

The 2021 meta-analysis that produced that number pooled three randomized trials comparing oral magnesium with placebo in 151 older adults in three countries. People taking magnesium fell asleep 17.36 minutes faster on average. Their total sleep time rose by about 16 minutes, but that difference wasn't statistically significant. All three trials had a moderate to high risk of bias.

The authors were cautious and practical at the same time. They said the research isn't good enough for doctors to make well-informed recommendations, but that given how cheap and available oral magnesium is, the trial evidence may support trying it for insomnia symptoms.

A broader 2023 systematic review looked at nine studies involving 7,582 adults. Observational studies suggested people with better magnesium status tended to have better sleep quality. The randomized trials, which are better at showing cause and effect, gave contradictory results. The reviewers called for larger trials lasting more than 12 weeks.

A 2024 systematic review counted 15 trials of magnesium for sleep or anxiety. Of the eight that measured sleep, five reported improvement, two found none and one had mixed results. The authors thought magnesium was likely useful for mild insomnia, particularly in people with low magnesium status to begin with, while noting that most studies were small and used different doses and forms.

What did the individual studies show?

The trials behind the reviews are small, and most were in older adults. A 2012 double-blind trial in Iran gave 46 older adults with insomnia either 500 mg of elemental magnesium a day, as magnesium oxide, or a placebo for eight weeks. The magnesium group improved more on an insomnia severity scale and fell asleep faster. Total sleep time didn't differ significantly between the groups.

A newer trial tested a different form. In a 2024 study, 80 adults aged 35 to 55 with self-reported sleep problems took 1 g a day of magnesium L-threonate or a placebo for 21 days. Sleep was tracked with questionnaires and a consumer sleep-tracking ring. The magnesium group kept up better sleep quality and daytime functioning while the placebo group declined, and the authors reported improvements in deep and REM sleep scores. It was a short study in a single group of middle-aged adults, so it needs repeating.

Taken together, the research is promising but early. Magnesium looks more like a modest helper for some people than a reliable sleep aid. If you sleep badly most nights for weeks, a structured approach like CBT for insomnia is worth knowing about, and melatonin for sleep covers the other popular supplement.

Which form of magnesium is best for sleep?

No form of magnesium has been shown to be best for sleep. Most sleep trials used magnesium oxide, a form common enough to be stocked on hospital formularies. A 2024 review found five of the eight sleep studies it included used magnesium oxide, at doses from 250 mg to 729 mg. Others used magnesium chloride, citrate or L-aspartate.

FormTested for sleep?What the studies used
Magnesium oxideYes, most trials250 to 729 mg; 500 mg elemental a day in the 2012 trial
Magnesium citrateYes, one trial320 mg a day split across meals
Magnesium chlorideYes, one trial100 mg in a slow-release product
Magnesium L-aspartateYes, one trialIncluded in the 2024 review
Magnesium L-threonateYes, one trial1 g a day for 21 days
Magnesium glycinateNot on its ownOnly in combination products in the reviews we read

Magnesium glycinate is popular for sleep online, but in the reviews we read it appeared only in combination products, so no trial in them tested it alone for sleep. That doesn't mean it doesn't work. It means the claim hasn't been tested.

Labels can be confusing, too. The 2012 trial explains that each 414 mg magnesium oxide tablet supplied 250 mg of elemental magnesium. The elemental amount is what counts toward safe limits, so check that number on the label rather than the weight of the whole compound.

How much magnesium is safe to take?

Most adults can take a modest magnesium supplement safely, and the main limit is set by diarrhoea. The NHS says men aged 19 to 64 need about 300 mg a day and women about 270 mg, and that you should be able to get what you need from a varied diet. It says having 400 mg or less a day from supplements is unlikely to cause harm.

Higher doses cause problems. The NHS says taking more than 400 mg for a short time can cause diarrhoea, and that there isn't enough evidence to say what high doses do over the long term. The sleep trials mostly stayed between 320 mg and 729 mg of elemental magnesium a day, often split into two or three doses, so some used more than that NHS figure. That's a reason to start lower and talk to a pharmacist rather than copy a trial dose.

MedlinePlus lists cramping and diarrhea as common side effects of magnesium oxide. It says to call a doctor if you have rash, hives, itching, dizziness, mood changes, unusual tiredness, weakness, nausea or vomiting.

Can you get enough magnesium from food?

Most people can get enough magnesium from food, according to the NHS. It says you should be able to get all the magnesium you need from a varied and balanced diet, and it names spinach, nuts and wholemeal bread as good sources. Food magnesium doesn't count toward the NHS supplement figure of 400 mg a day.

This matters for sleep because the 2024 review's authors thought magnesium was most likely to help people whose magnesium status was low to begin with. The 2023 review also found that the link between magnesium and better sleep showed up mainly in observational studies of people's overall magnesium status. If your diet is already rich in leafy greens, nuts and whole grains, a supplement may add less than you hope.

There's no harm in starting with food. A handful of nuts in the evening or more greens at dinner is a low-risk way to raise your intake before you buy a bottle.

Who should be careful with magnesium?

People with kidney disease should talk to a doctor before taking magnesium. Healthy kidneys clear extra magnesium, but a review in a National Kidney Foundation journal notes that magnesium-containing drugs such as laxatives can push levels too high, particularly when kidney filtration is impaired. The MedlinePlus magnesium oxide page also asks you to tell your doctor about heart, kidney, liver or intestinal disease.

Medicine interactions are the other big issue. MedlinePlus says people taking the antibiotic doxycycline should take magnesium-containing antacids, laxatives or calcium supplements 1 to 2 hours before or after it. For the osteoporosis drug alendronate, it says not to take any other medicines, vitamins or antacids for at least 30 minutes afterward. The magnesium oxide page lists aspirin and some heartburn medicines as possible interactions too, and the kidney review notes that some common drugs can lower magnesium instead.

If you take any regular prescription, have kidney problems, or are pregnant or breastfeeding, ask your doctor or pharmacist before adding magnesium. Bring the bottle so they can see the form and the elemental dose.

What else helps you sleep better?

Magnesium is at most one small part of a sleep routine. Our sleep hygiene tips go through the everyday habits that shape a night's sleep. If you fall asleep fine but wake in the small hours, why do I wake up at 3am? looks at the common reasons.

Breathing is another piece people miss. If a stuffy nose or mouth breathing wakes you, or you wake with a dry mouth, a supplement won't change that. Nasal strips and mouth tape work on the airway instead, and using mouth tape and nasal strips together explains how they fit. Mouth tape is only for people who can breathe comfortably through the nose with the mouth closed, and how to start mouth taping covers the first few nights. We don't recommend mouth tape for children.

Check this first. Skip mouth tape and see a doctor if you snore loudly, wake up gasping, have been told you stop breathing in your sleep, or can't breathe comfortably through your nose. More on safety

Our pick (paid partner): Titan Sleep System

If mouth breathing or a stuffy nose is part of what's keeping your sleep light, our pick is the Titan Sleep System. Titan says it puts TitanAir Nasal Strips and Titan Mouth Tape together as one nightly system. It isn't a sleep aid like magnesium, and it won't fix insomnia. It's aimed at keeping you breathing through your nose overnight.

Titan says the strips are drug-free external nasal dilators with flexible, spring-loaded bands, and that its bamboo silk mouth tape uses an adhesive made to grip without leaving residue. Titan suggests 20 to 30 minutes of daytime practice with the tape before the first night. Titan says every batch is third-party tested and certified PFAS-free, and its 30-night guarantee refunds you if your sleep isn't better after 30 nights.

Common questions

Does magnesium help you sleep?

It may help a little, especially for older adults with insomnia. A 2021 meta-analysis of three small trials found people fell asleep about 17 minutes faster with magnesium than placebo, though total sleep time didn't improve significantly. The trials had a moderate to high risk of bias, so the evidence is limited.

What is the best form of magnesium for sleep?

No form has been proven best. Most sleep trials used magnesium oxide, and others used citrate, chloride, aspartate or L-threonate. Magnesium glycinate is popular, but in the reviews we read it appeared only in combination products, so it hasn't been tested alone for sleep. Choose a form you tolerate and a dose within safe limits.

How much magnesium should I take for sleep?

There's no established sleep dose. Trials in older adults used 320 to 729 mg of elemental magnesium a day, often split into two or three doses. The NHS says 400 mg or less a day from supplements is unlikely to cause harm, and that more than 400 mg can cause diarrhoea. Check with a pharmacist before starting.

When should I take magnesium for sleep?

No study has compared bedtime with daytime dosing for sleep. Several trials split magnesium across the day with meals rather than taking it all at night. If you take other medicines, timing matters more for them: some antibiotics and osteoporosis drugs need to be taken apart from minerals. A pharmacist can help you set a schedule.

Who shouldn't take magnesium supplements?

People with kidney disease should talk to their doctor first, because reduced kidney function makes it harder to clear extra magnesium. Anyone taking antibiotics such as doxycycline, osteoporosis drugs or several other prescriptions should ask a pharmacist about interactions. The MedlinePlus magnesium oxide page also says to mention heart, liver or intestinal disease.

What are the side effects of magnesium supplements?

Diarrhoea is the most common problem with higher doses. The NHS says taking more than 400 mg for a short time can cause it. MedlinePlus lists cramping and diarrhea as side effects of magnesium oxide, and says to call a doctor about rash, dizziness, unusual tiredness, weakness, nausea or vomiting.

Sources

  1. Oral magnesium supplementation for insomnia in older adults: a systematic review and meta-analysisBMC Complementary Medicine and Therapies, 2021
  2. The role of magnesium in sleep health: a systematic review of available literatureBiological Trace Element Research, 2023
  3. Examining the effects of supplemental magnesium on self-reported anxiety and sleep quality: a systematic reviewCureus, 2024
  4. The effect of magnesium supplementation on primary insomnia in elderly: a double-blind placebo-controlled clinical trialJournal of Research in Medical Sciences, 2012
  5. Magnesium-L-threonate improves sleep quality and daytime functioning in adults with self-reported sleep problems: a randomized controlled trialSleep Medicine: X, 2024
  6. Vitamins and minerals: othersNHS
  7. Magnesium and drugs commonly used in chronic kidney diseaseAdvances in Chronic Kidney Disease, 2018
  8. Magnesium oxideMedlinePlus
  9. DoxycyclineMedlinePlus
  10. AlendronateMedlinePlus

About this article

Research
10 published sources, listed above.
Evidence
Limited. How we rate it
Last checked
October 26, 2026
Funding
Paid partner of Titan Recovery. Their ads are labeled.
Found an error?
Tell us. We log fixes on the corrections page.

* This content is for informational and educational purposes only and is not medical advice. It is not intended to diagnose, treat, cure or prevent any disease or health condition. Talk to a qualified healthcare provider about your health.

Our guides are researched and drafted with the help of AI tools. Before anything is published, every source is opened and checked against the claim it supports, and anything we can't verify is cut. We fix mistakes in public on our corrections page.