Magnesium

Magnesium for sleep: which form, how much and when to take it

Magnesium is the most recommended sleep supplement that is not a sleeping pill. The research is real but smaller than the hype. Here is what the trials actually tested, which form makes sense, and how to fit it into an evening routine.

Quick answer

Magnesium may help you fall asleep a little faster, especially if you are older or eat little magnesium, but the evidence is modest. Trials found people fell asleep about 17 minutes sooner on average and reported small improvements in insomnia scores. Magnesium glycinate is the usual choice for sleep because it is gentle on the gut; L-threonate has one promising but small trial. Trials used 250 to 500 mg of elemental magnesium a day, taken in the evening for 3 to 8 weeks. Stay at or under 350 mg a day from supplements unless a doctor advises otherwise.

Key takeaways

  • Magnesium is not a sedative. In trials it shortened the time to fall asleep by about 17 minutes and nudged insomnia scores, mostly in older adults.
  • Glycinate is the practical first choice for sleep: well absorbed and easy on the gut. Citrate and oxide can send you to the bathroom at night.
  • Count elemental magnesium, not the compound weight. 1,000 mg of glycinate is only about 140 mg of magnesium.
  • Trials dosed in the evening and ran 3 to 8 weeks. Judge it after a month of nightly use, not after one night.
  • Magnesium and melatonin can be taken together. Keep magnesium 2 hours away from iron, and ask a pharmacist about spacing it from antibiotics.
  • If you have had poor sleep for three months or more, see a doctor. Cognitive behavioral therapy for insomnia is the first-line treatment.

Ask ten people what helps them sleep and at least one will say magnesium. It has become the default "natural" sleep aid, recommended on podcasts, in pharmacies and by friends who swear by it.

The research behind it is genuine but smaller and more modest than most of those recommendations suggest. That is not a reason to dismiss it. Magnesium is cheap, safe at sensible doses and does help some people. It is a reason to choose the right form, take a dose the trials actually tested, and know what result to expect.

Does magnesium help you sleep? What the trials found

Magnesium is involved in nerve signaling, including the GABA system that many sleep medicines act on, and the 2012 trial measured lower cortisol in the magnesium group. That is the theory. Here is what happens when people actually take it.

≈17 minfaster sleep onset in a 2021 meta-analysis of 3 trials
151older adults in that entire meta-analysis
1.6 ptsextra drop on a 28-point insomnia scale vs placebo (2025 trial)
Study Who What they took What happened
Abbasi et al., 2012 46 older adults with insomnia, Iran 500 mg magnesium daily for 8 weeks Fell asleep faster, better sleep efficiency and insomnia scores; total sleep time not clearly longer
Mah and Pitre, 2021 (meta-analysis) 3 trials, 151 older adults Oral magnesium Fell asleep about 17 minutes sooner; total sleep up 16 minutes but not statistically significant; evidence rated low to very low quality
Hausenblas et al., 2024 80 adults aged 35 to 55 with sleep complaints 1 g magnesium L-threonate daily for 21 days Better deep and REM sleep scores on an Oura ring and better self-rated sleep; small, industry-funded
Schuster et al., 2025 Adults in Germany reporting poor sleep 250 mg elemental magnesium as bisglycinate for 4 weeks Insomnia score fell 3.9 points vs 2.3 with placebo; a small effect
Rondanelli et al., 2011 43 care home residents, average age 78 Melatonin 5 mg + magnesium 225 mg + zinc 11.25 mg, 1 hour before bed, 8 weeks Clearly better sleep quality than placebo, but you cannot tell which ingredient did it

Read together, the pattern is consistent. Magnesium produces small improvements, mostly in falling asleep and in how people rate their sleep. The strongest results come from older adults, a group that often eats less magnesium and absorbs it less well. Nobody has shown that magnesium knocks you out the way a sleeping pill does.

Reasonable to try

Nightly magnesium for 4 weeks if you have mild sleep trouble, especially if you are over 50 or rarely eat nuts, seeds, beans and whole grains.

Modest at best

Expect to fall asleep somewhat faster and feel a little more rested. Most trials found no clear gain in total sleep time.

Not supported

Magnesium as a treatment for chronic insomnia, or claims that one form "knocks you out".

Who is most likely to notice a difference

Magnesium seems to help most when there is a gap to fill. US dietary surveys consistently find that many adults eat less magnesium than recommended, and older adults absorb less and lose more through the kidneys. A blood test is not a reliable way to check, because the body keeps blood magnesium in a narrow range even when stores are low.

You are more likely to benefit if:

  • You are over 50.
  • Your diet is low in leafy greens, nuts, seeds, beans and whole grains.
  • You drink alcohol regularly or take medicines that waste magnesium, such as long-term proton pump inhibitors or some diuretics (ask your pharmacist).
  • Your problem is mainly falling asleep, not waking at 4 a.m.

If you already eat a magnesium-rich diet and sleep reasonably well, a supplement probably will not change much.

The best magnesium for sleep, form by form

Every magnesium supplement is magnesium bound to something else. The partner decides how well it absorbs, how much magnesium you get per capsule, and how your gut reacts. At bedtime, that last point matters more than people expect: citrate and oxide draw water into the bowel, which is not what you want at 2 a.m.

Form Elemental magnesium Sleep evidence Gut at night Verdict for sleep
Glycinate / bisglycinate About 14% One 2025 placebo-controlled trial (small benefit) Gentle First choice
L-threonate About 7 to 8% One 2024 trial (80 people, Oura ring data) Gentle Promising, pricey, low dose
Citrate About 16% Not tested for sleep on its own Mild laxative Better in the morning
Oxide About 60% Common in multivitamins and cheap tablets Laxative, poorly absorbed Not ideal at bedtime
Malate About 15% No sleep trials Gentle Fine, but no advantage shown
Taurate About 9% No sleep trials Gentle Fine, but no advantage shown
Chloride spray or Epsom bath n/a No good evidence it absorbs None Relaxing ritual, not a dose

Magnesium you actually get from 1,000 mg of compound

Approximate elemental magnesium by form

Magnesium oxide
≈ 600 mg
Magnesium citrate
≈ 160 mg
Magnesium glycinate
≈ 140 mg
Magnesium L-threonate
≈ 75 mg
Exact percentages vary with the salt and its water content. Buffered glycinate contains some oxide.

That last bar is worth pausing on. The 2024 threonate trial used 1 g of magnesium L-threonate a day, which delivers only about 75 mg of magnesium. Whatever it did, it did not do it by topping up a large deficit. The proposed explanation is that threonate gets more magnesium into the brain, which has been shown in animals but not yet measured in people.

For a side-by-side of the two most common forms, see magnesium glycinate vs citrate.

The glycine question nobody mentions

Magnesium bisglycinate is magnesium bound to two molecules of the amino acid glycine. Glycine has its own small sleep research: two Japanese studies gave people 3 g of glycine before bed and found better subjective sleep, and one also saw faster sleep onset in the sleep lab.

The math

By weight, pure magnesium bisglycinate carries about 6 g of glycine for every 1 g of magnesium. A 250 mg elemental dose, the amount used in the 2025 trial, therefore comes with roughly 1.5 g of glycine. That is half the dose used in the glycine studies, but not nothing. The bisglycinate trial cannot tell us how much of its small benefit came from the magnesium and how much from the glycine.

This is one more reason glycinate is a sensible pick for sleep. It is also why "buffered" glycinate, which swaps some glycinate for cheaper magnesium oxide, may not behave the same as the product used in the trial.

How much magnesium for sleep

Trials of magnesium on its own used 250 to 500 mg of elemental magnesium a day. The combination trial used 225 mg alongside melatonin and zinc, and the threonate trial roughly 75 mg. Safety limits apply to magnesium from supplements only. Magnesium in food does not count, because the kidneys handle it easily.

Amount Where it comes from
100 to 200 mg elemental A common starting dose; one or two capsules of most glycinate products
250 mg elemental The 2025 bisglycinate trial; also the EU upper limit for supplements
350 mg elemental US upper limit for adults from supplements
500 mg The 2012 trial in older adults, above the US limit and given in a study setting

The upper limit exists mainly because higher doses cause diarrhea and cramping, not because they are toxic in healthy kidneys. Going over it will not make magnesium work better for sleep. If one product is not enough, the answer is not to stack two. Remember to add up all sources: a multivitamin, a "sleep blend" and a magnesium capsule can easily total more than you think.

When to take magnesium for sleep

Take it about 30 to 60 minutes before bed, every night. Absorption does not depend on the time of day, so the evening slot is about routine and about matching how the trials gave it. The 2011 combination trial dosed one hour before bedtime.

Consistency matters more than the exact minute. The trials ran for three to eight weeks, so a fair test is four weeks of nightly use. A sleep log or a tracker helps you judge honestly rather than by how one bad night felt.

For timing magnesium for reasons other than sleep, see when to take magnesium.

A simple evening routine with magnesium

For someone who goes to bed around 10:30 p.m.

2:00 p.m.Caffeine cutoff
Last coffeecaffeine lasts for hours
7:00 p.m.Dinner
Multivitaminwith foodOmega-3with food
9:45 p.m.Wind down
Magnesium glycinateabout 45 min before bed
10:30 p.m.Lights out
Melatonin (optional)lowest dose that helps

Magnesium with melatonin, glycine and other supplements

Melatonin. Magnesium and melatonin do not interact, and they work in different ways: melatonin shifts the timing signal for sleep, while magnesium may help with relaxation. The 2011 trial in care home residents combined them (with a little zinc) and found better sleep quality than placebo. Use the lowest melatonin dose that helps.

Glycine. Taking magnesium glycinate already adds some glycine. If you add a separate glycine supplement, studies used 3 g.

Zinc. Normal doses are fine together. Very high zinc, around 142 mg a day, has been shown to interfere with magnesium absorption, which is far above what most people take.

Iron and calcium. Keep iron at least 2 hours away from magnesium, which usually happens naturally if iron is in the morning. Large calcium doses can compete with magnesium; if you take calcium at dinner, a bedtime magnesium dose gives them space.

Medicines. Magnesium can bind some antibiotics and the osteoporosis drugs called bisphosphonates. The NIH advises taking tetracycline and quinolone antibiotics at least 2 hours before or 4 to 6 hours after magnesium, and keeping bisphosphonates at least 2 hours apart. Your pharmacist can give the exact gap for your prescription. For the full list of combinations to space out, see vitamins that should not be taken together.

Your situation: three common evening stacks

Real routines rarely involve one supplement. These are the combinations people ask about most, each linked to the free planner with the stack already filled in so you can adjust the times to your day.

Iron in the morning, magnesium at night

The easiest pairing to schedule. Iron goes on an empty stomach at wake-up with vitamin C, and magnesium goes 30 to 60 minutes before bed, many hours later. Open this plan in the planner.

Magnesium, melatonin and a multivitamin

Take the multivitamin with breakfast or dinner, magnesium in your wind-down hour and melatonin shortly before lights out. Open this plan in the planner.

Evening workout with creatine, magnesium before bed

Creatine can go in your post-workout shake or with dinner; it is not a stimulant and does not affect sleep. Magnesium follows at bedtime. Open this plan in the planner.

Free toolBuild your own evening stackPick your supplements and your bedtime. The planner keeps clashing ones apart and puts magnesium where it fits.

Magnesium sprays, oils and Epsom salt baths

Skin is a good barrier, and magnesium ions are poor at crossing it. A 2017 review of the evidence concluded that the case for transdermal magnesium is scientifically unsupported: the studies are small, mostly unpublished in full, or do not measure magnesium properly. A warm bath can still be a good wind-down ritual. Just do not count it as your magnesium dose.

When magnesium is not the answer

If you have had trouble sleeping at least three nights a week for three months or more, that is chronic insomnia, and it deserves proper treatment. The American College of Physicians recommends cognitive behavioral therapy for insomnia (CBT-I) as the first-line treatment for adults, ahead of any pill or supplement. Snoring with daytime sleepiness can be a sign of sleep apnea, which no supplement fixes.

Be careful with magnesium supplements if you:

  • Have kidney disease. Your kidneys may not clear the extra magnesium.
  • Take antibiotics, bisphosphonates, diuretics or other regular medicines. Ask a pharmacist about spacing.
  • Are pregnant or breastfeeding. Food sources are fine; ask before adding high-dose supplements.
SuppCue Today screen with an evening magnesium reminder

Make the four-week test fair

Magnesium only shows what it can do with nightly use. SuppCue reminds you in your wind-down hour, logs each dose with one tap and shows your streak, so you know you gave it a real try.

Frequently asked questions

Does magnesium really help you sleep?

It helps some people a little. A 2021 meta-analysis of three trials in older adults found people fell asleep about 17 minutes faster, and a 2025 trial in adults with poor sleep found a small improvement in insomnia scores. It works best for people who are low in magnesium and is not a substitute for treating insomnia.

What is the best magnesium for sleep?

Magnesium glycinate (bisglycinate) is the most practical choice: it absorbs well, rarely upsets the stomach and has a 2025 placebo-controlled sleep trial behind it. Magnesium L-threonate has one small 2024 trial with encouraging wearable data but is expensive and delivers little magnesium per capsule. Avoid citrate and oxide at bedtime if they loosen your stools.

How much magnesium should I take for sleep?

Sleep trials used 250 to 500 mg of elemental magnesium a day. The US upper limit for magnesium from supplements is 350 mg a day and the EU limit is 250 mg, so many people start at 100 to 200 mg and stay within the limit for their country. Food magnesium does not count toward these limits.

How long before bed should I take magnesium?

About 30 to 60 minutes before bed is common. One combined magnesium and melatonin trial gave it one hour before bedtime. No study has found an exact best time, so pick a time you can repeat every night.

Can I take magnesium and melatonin together?

Yes. They do not interact, and a 2011 trial in older adults gave melatonin, magnesium and zinc together one hour before bed and found better sleep quality than placebo. Use the lowest melatonin dose that works and check with a doctor if you take other sleep or blood pressure medicines.

How long does magnesium take to work for sleep?

Trials measured results after 3 to 8 weeks of daily use. Some people notice they feel calmer within days, but give it at least four weeks before deciding.

Is it safe to take magnesium every night?

For most healthy adults, yes, within the upper limit for supplements. People with kidney disease should only take magnesium on medical advice, because their kidneys may not clear the excess.

Magnesium glycinate or threonate for sleep?

Glycinate is cheaper, gives more magnesium per capsule and has a placebo-controlled sleep trial. Threonate has one small, industry-funded trial showing better deep and REM sleep scores on an Oura ring. Start with glycinate; try threonate if glycinate does nothing after a month and the price does not bother you.

Do magnesium sprays or baths help you sleep?

There is little evidence that magnesium absorbs through the skin in useful amounts. A 2017 review called transdermal magnesium scientifically unsupported. A warm bath before bed may help you relax for other reasons.

Sources

Every figure on this page comes from the sources below. We check them when we update the page.

  1. NIH Office of Dietary Supplements. Magnesium: Fact Sheet for Health Professionals.
  2. Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: a systematic review and meta-analysis. BMC Complement Med Ther. 2021;21:125.
  3. Abbasi B, et al. The effect of magnesium supplementation on primary insomnia in elderly: a double-blind placebo-controlled clinical trial. J Res Med Sci. 2012;17(12):1161-1169.
  4. Schuster J, Cycelskij I, Lopresti A, Hahn A. Magnesium bisglycinate supplementation in healthy adults reporting poor sleep: a randomized, placebo-controlled trial. Nat Sci Sleep. 2025;17.
  5. Hausenblas HA, et al. Magnesium-L-threonate improves sleep quality and daytime functioning in adults with self-reported sleep problems: a randomized controlled trial. Sleep Med X. 2024;8:100121.
  6. Rondanelli M, et al. The effect of melatonin, magnesium, and zinc on primary insomnia in long-term care facility residents in Italy: a double-blind, placebo-controlled clinical trial. J Am Geriatr Soc. 2011;59(1):82-90.
  7. Inagawa K, et al. Subjective effects of glycine ingestion before bedtime on sleep quality. Sleep Biol Rhythms. 2006;4:75-77.
  8. Yamadera W, et al. Glycine ingestion improves subjective sleep quality in human volunteers, correlating with polysomnographic changes. Sleep Biol Rhythms. 2007;5:126-131.
  9. Gröber U, Werner T, Vormann J, Kisters K. Myth or reality: transdermal magnesium? Nutrients. 2017;9(8):813.
  10. Qaseem A, et al. Management of chronic insomnia disorder in adults: a clinical practice guideline from the American College of Physicians. Ann Intern Med. 2016.
  11. EFSA. Overview on Tolerable Upper Intake Levels.

This page is general information, not medical advice. It does not replace a doctor or pharmacist, especially if you are pregnant, take prescription medicine, or have a health condition.