Magnesium can help sleep a little, mainly for older adults with insomnia and for people who don’t get enough magnesium from food. In trials, it improved insomnia scores and how quickly people fell asleep, but the effects were modest. For most adults, 200–350 mg of elemental magnesium in the evening is a reasonable trial dose. Magnesium glycinate (also called bisglycinate) is the form most people choose for sleep because it is gentle on the stomach.

Here is what the research actually shows, which form to buy, and when magnesium is not a good idea.

Does magnesium help you sleep? What trials show

StudyWhoDose and lengthResult
Abbasi et al., 201246 adults aged 60–75 with insomnia500 mg elemental magnesium daily, 8 weeksBetter insomnia scores, sleep efficiency and time to fall asleep vs placebo. Melatonin rose and cortisol fell
Schuster et al., 2025155 adults aged 18–65 reporting poor sleep250 mg elemental magnesium as bisglycinate, 4 weeksInsomnia scores fell 3.9 points vs 2.3 on placebo: a small effect. People who ate less magnesium seemed to benefit more

Two things stand out. First, the benefit is real but small. In the 2025 trial, the difference from placebo was about 1.6 points on a 28-point insomnia scale. Second, magnesium seems to help most where it fills a gap: older adults and people with low intake.

Magnesium is involved in calming nerve activity and in the body’s stress response, which is the likely link to sleep. It is not a sedative, and it won’t knock you out like a sleeping pill.

Which magnesium is best for sleep?

FormGood for sleep?Notes
Magnesium glycinate / bisglycinateMost popular choiceGentle on the stomach. Comes with glycine, an amino acid also studied for sleep. Used in the 2025 trial
Magnesium citrateWorks, butWell absorbed, but has a laxative effect at higher doses
Magnesium L-threonatePossiblyMarketed for brain health. Expensive; less research on sleep
Magnesium oxideNot idealCheap and common, but more likely to cause loose stools
Magnesium chloride sprays and lotionsUnclearLittle evidence that skin absorption raises body magnesium meaningfully

The US National Institutes of Health lists magnesium aspartate, citrate, lactate and chloride as forms that are absorbed more easily than oxide (NIH ODS).

How much magnesium to take for sleep

Read the elemental magnesium on the label, not the compound weight. In the 2025 trial, each 893 mg capsule of magnesium bisglycinate contained only 125 mg of actual magnesium. Labels that say “magnesium glycinate 1,000 mg” may contain far less magnesium than that.

  • Typical trial dose: 200–350 mg of elemental magnesium in the evening
  • Upper limit from supplements: 350 mg a day for adults, according to the NIH. This limit does not include magnesium from food.
  • The 500 mg dose in the 2012 trial was above that limit and was given under medical supervision. Don’t take that much without your doctor’s advice.

Daily needs from all sources (food plus supplements): about 400–420 mg for men and 310–320 mg for women.

When to take magnesium for sleep

Take it 30–60 minutes before bed, ideally with a light snack or your evening meal if it bothers your stomach. Give it at least two to four weeks before deciding whether it helps. Both trials above ran for four to eight weeks.

If you take other medicines, see the timing rules below.

Get magnesium from food first

Magnesium-rich foods: pumpkin seeds, almonds, cashews, spinach, banana, rajma and dark chocolate

Good sources include:

  • Pumpkin seeds, almonds, cashews and peanuts
  • Spinach and other leafy greens
  • Beans, lentils, rajma and chana
  • Whole grains such as whole-wheat atta, oats and brown rice
  • Milk and yoghurt

If your diet already includes these every day, a supplement is less likely to make a big difference. If you rarely eat them, food changes may help sleep and overall health more than a pill. For signs you might be low, read magnesium deficiency signs and health risks.

Side effects and who should avoid magnesium supplements

Common side effects of too much supplemental magnesium are diarrhea, nausea and stomach cramps. Very high intakes, usually from large doses of laxatives or antacids, can cause an irregular heartbeat.

Talk to your doctor first if you:

  • Have kidney disease. Your kidneys clear extra magnesium, so supplements can build up.
  • Take bisphosphonates for osteoporosis or antibiotics (such as tetracyclines or quinolones). Magnesium can block their absorption, so they need to be taken hours apart.
  • Take diuretics, which can raise or lower magnesium levels.
  • Take long-term acid reflux medicine, which can lower magnesium.
  • Take high-dose zinc, which can interfere with magnesium absorption.
  • Are pregnant or breastfeeding.

When magnesium isn’t the answer

Ongoing insomnia, loud snoring, gasping at night or daytime sleepiness need a proper check-up. Sleep apnea, anxiety, thyroid problems and some medicines can all cause poor sleep, and magnesium won’t fix them. Good sleep habits matter more than any supplement. Start with our sleep hygiene hacks and natural sleep remedies.

Frequently asked questions

Can I take magnesium every night?

Most healthy adults can take up to 350 mg of supplemental magnesium a day. If you have kidney disease or take regular medicine, ask your doctor first.

Magnesium glycinate or citrate for sleep?

Glycinate is usually better for sleep because it is gentler on the stomach. Citrate is well absorbed but can loosen stools.

Can I take magnesium with melatonin?

They are often combined in sleep products. There is no well-known interaction, but check with a doctor or pharmacist if you take other medicines.

How long does magnesium take to work for sleep?

Trials ran for four to eight weeks. Give it at least two to four weeks of nightly use before judging.

Can I take magnesium and zinc together?

Yes, at normal doses. Very high zinc intakes can reduce magnesium absorption, so avoid megadoses of zinc. Read more in our guide to which form of zinc is best absorbed.

Sources

  1. 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.
  2. 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:2027–2040.
  3. National Institutes of Health, Office of Dietary Supplements. Magnesium fact sheet for consumers.

This article is for general information and is not medical advice. See our medical disclaimer.

Frequently Asked Questions