Magnesium For Sleep: What The Evidence Really Shows
Magnesium for sleep, magnesium glycinate for sleep, best magnesium for sleep, magnesium vs melatonin, magnesium side effects, magnesium for menopause, how much magnesium for sleep.
A review of three small trials in older adults found magnesium for sleep helped people fall asleep about 17 minutes faster, but did not clearly add total sleep. The evidence quality was low. Adults should not take more than 350 mg a day from supplements, and magnesium interacts with some antibiotics and bone drugs.12
- Small effect at best: Magnesium helped older adults fall asleep about 17 minutes faster; the evidence is low quality.1
- 350 mg is the limit: The NIH upper limit is 350 mg a day from supplements and medicines; food does not count.2
- Form matters less than you think: No trial has compared forms head to head for sleep.32
- Kidney disease? Ask first: Magnesium can build up to toxic levels when kidneys do not clear it.2
- CBT-I works better: Therapy for insomnia beat education in women in menopause by a wide margin.18
Magnesium may save you about 17 minutes. Here is what the evidence really says. Magnesium glycinate is one of the most searched sleep fixes in America, and most pages selling it never grade the research. We did, study by study, alongside melatonin, valerian and ashwagandha. If poor sleep has lasted months, also read our guide to insomnia treatment: the strongest fix is not a pill.
- 17 MinutesFaster to fall asleep with magnesium in older adults; low-quality evidence.1
- 350 mgNIH daily upper limit for magnesium from supplements.2
- 1.6 PointsExtra insomnia-score drop with magnesium glycinate vs a dummy pill.3
- 5.2 PointsExtra drop with CBT for insomnia in menopause, on the same scale.18
Does Magnesium For Sleep Work?
Magnesium for sleep works a little, at best. The best summary, a 2021 review of three small trials with 151 older adults, found people fell asleep about 17 minutes faster than with a dummy pill. Total sleep time rose by about 16 minutes, but that was not a clear result, and the evidence was rated low to very low quality.1
The authors of that review said the research is too weak for doctors to make firm recommendations, though magnesium is cheap and widely available.1 None of the three trials studied women in menopause, so we cannot say how much it helps you in particular.
Does Magnesium Help You Sleep? What Each Study Found
| Study | Who | What Happened | Quality |
|---|---|---|---|
| 2021 review of 3 trials1 | 151 older adults | Fell asleep about 17 minutes faster; total sleep not clearly longer | Low to very low |
| 2025 magnesium bisglycinate trial3 | 155 adults with poor sleep, 4 weeks | Insomnia score fell 3.9 points vs 2.3 on a dummy pill: a small difference of 1.6 points | Low: self-report only, short |
| 2024 magnesium L-threonate trial4 | 80 adults aged 35 to 55, 21 days | Better deep and REM sleep scores on a consumer sleep ring | Low: small, short, not repeated |
| 2026 magnesium L-threonate trial27 | 100 adults aged 18 to 45, 6 weeks | No difference on a sleep ring; 1 of 4 sleep questionnaires improved | Moderate size, but funded by the maker |
| 2015 magnesium oxide trial5 | 289 women with hot flashes | No fewer hot flashes than a dummy pill; more diarrhea | Good trial, no benefit |
Bottom line: magnesium is a reasonable thing to try within the safe limit, but expect a small effect. For comparison, cognitive behavioral therapy for insomnia (CBT-I) cut insomnia scores by 9.9 points in women in menopause, vs 4.7 with menopause education.18 The studies differ, so the numbers are a guide, not a contest.
Magnesium For Menopause
“Magnesium for menopause” and “magnesium for perimenopause” are popular searches, but the one strong trial was negative. In a 2015 study of 289 women with bothersome hot flashes, magnesium oxide did no better than a dummy pill, and it caused more diarrhea.5 The Menopause Society does not recommend supplements for hot flashes.17
The sleep trials above did not focus on women in menopause. A US trial registered in 2026 is testing magnesium for sleep in women with poor sleep, with results analyzed by age from 35 to 60 and sleep measured with a sleep ring. Its results have not been published.28
Why does this matter for sleep? In menopause, many sleepless nights start with night sweats. Hormone therapy relieves sleep problems caused by menopause.21 If hot flashes wake you, our guide to hormone replacement therapy and the free HRT Options Explorer are a better place to start than any supplement. For every cause of night sweats, see menopause symptoms.
Magnesium For Sleep And Anxiety
Many women take magnesium for anxiety as well as sleep. A 2017 review of 18 studies found suggestive but inconclusive evidence that magnesium may ease anxiety in people prone to it. The review rated the quality of the evidence as poor and found no good evidence on stress.6 If anxiety is keeping you awake, our perimenopause symptoms guide includes the free GAD-7 anxiety check used by doctors.
Magnesium For Restless Legs And Night Leg Cramps
Night leg cramps and restless legs are common reasons people try magnesium. The evidence is disappointing:
- Night leg cramps: a 2020 Cochrane review of 11 trials found magnesium is unlikely to give a meaningful benefit to older adults with ordinary muscle cramps.22 In a 2017 trial of 94 adults, magnesium oxide at bedtime for 4 weeks cut cramps no more than a dummy pill.23
- Restless legs: a 2019 review found only one small randomized trial, which showed no clear benefit, so experts could not say whether magnesium helps.24
Cramps and restless legs that keep waking you have other possible causes a doctor can check, so ask rather than guessing. Our insomnia treatment guide covers other reasons you may wake at night.
How Long Does Magnesium Take To Work For Sleep?
In the trials above, people took magnesium every day for 3 to 8 weeks before sleep was measured: 21 days in the threonate trial, 4 weeks in the glycinate trial, and 8 weeks in a 2012 trial of 46 older adults with insomnia.4325 So if you try it, give it a few weeks, keep a simple sleep diary, and stop if nothing changes.
Is Magnesium Glycinate For Sleep Better?
Not proven. No study has compared magnesium glycinate for sleep head to head with other forms. Glycinate does have one 2025 trial showing a small benefit, which is more than citrate or oxide have for sleep. Forms differ mainly in how well they are absorbed: the NIH says citrate is absorbed better than oxide.32

Best Magnesium For Sleep: Which Type Works?
| Form | Absorption | Sleep Evidence | Stomach |
|---|---|---|---|
| Magnesium glycinate (bisglycinate) | Not rated by the NIH | One 2025 trial, small benefit3 | Diarrhea possible at high doses2 |
| Magnesium citrate | Better than oxide2 | No sleep trial on its own | Diarrhea possible at high doses2 |
| Magnesium oxide | Lower than citrate, aspartate, lactate or chloride2 | No hot flash benefit in a 2015 trial5 | More diarrhea than placebo in that trial5 |
| Magnesium L-threonate | Not rated by the NIH | Mixed: a 2024 trial looked positive; a larger 2026 trial found no sleep-ring benefit427 | Reported as well tolerated427 |
| Spray, lotion or bath flakes | Skin absorption scientifically unsupported7 | None | Not applicable |
The NIH notes its absorption findings come from small studies.2
Magnesium L-Threonate For Sleep: What The 2026 Trial Found
Magnesium L-threonate is often marketed for the brain, and its sleep evidence is mixed. A 2024 trial of 80 adults found better deep and REM sleep scores on a consumer sleep ring after 21 days.4 Then a larger 2026 trial gave 100 adults aged 18 to 45 with poor sleep either magnesium L-threonate or a dummy pill for 6 weeks:27
- Sleep ring data: no difference in any sleep measure between the two groups.27
- Questionnaires: 1 of 4 improved (daytime sleep-related problems). Sleep disturbance, restful sleep and wellbeing did not differ.27
- Other results: memory and attention tests improved a little more, and night heart rate fell slightly.27
- Who paid: the company that sells the ingredient funded the trial and helped design it.27
So if sleep is your goal, magnesium L-threonate has no stronger sleep evidence than glycinate. It also carries much less magnesium per gram, as the next section on labels shows.
Magnesium Glycinate Vs Citrate
Magnesium glycinate pairs magnesium with glycine, an amino acid. Magnesium citrate pairs it with citric acid. Citrate has better absorption data from the NIH; glycinate has the only recent sleep trial of the two.23 That trial was small, lasted 4 weeks and relied on self-reported sleep, and its authors said magnesium alone is unlikely to fix insomnia for many people.3 Whichever you choose, the same 350 mg supplement limit applies.2
Magnesium Glycinate Benefits And Side Effects
- Benefits shown in trials: a small drop in insomnia scores after 4 weeks, compared with a dummy pill.3 Other claimed magnesium glycinate benefits, such as calm mood or better skin, have little direct evidence.
- Side effects: like every magnesium supplement, high doses often cause diarrhea, sometimes with nausea and belly cramps.2
- Who should be careful: anyone with kidney disease, and anyone taking bisphosphonates, tetracycline or quinolone antibiotics, water pills or long-term acid reflux pills.2
Magnesium Vs Melatonin: Which Is Better For Sleep?
Neither is strong for long-term insomnia. Melatonin has more research: a review of 19 studies found people fell asleep about 7 minutes faster and slept about 8 minutes longer. Magnesium has fewer, smaller studies. US sleep doctors suggest not using melatonin for chronic insomnia, while magnesium has a clearer official safety limit.8112
| Compare | Magnesium | Melatonin |
|---|---|---|
| What it is | A mineral your body needs for hundreds of processes2 | A hormone that helps time your sleep cycle9 |
| Sleep effect | About 17 minutes faster to fall asleep in older adults; low-quality evidence1 | About 7 minutes faster to fall asleep, 8 minutes more sleep8 |
| Expert guidance | No sleep guideline; NIH sets a 350 mg supplement limit2 | US sleep doctors suggest not using it for chronic insomnia11 |
| Best use | Low intake from food; trying a gentle option | Jet lag, where it may help9 |
| Main concerns | Diarrhea, kidney disease, drug timing2 | Mislabeled products; unknown long-term safety910 |
Melatonin Side Effects
In short studies, melatonin side effects were mild: headache, dizziness, nausea and sleepiness. Information on long-term safety is lacking. People with epilepsy and those taking blood thinners need medical supervision, and safety in pregnancy and breastfeeding has not been well studied.9
In November 2025, a study presented at the American Heart Association’s meeting looked at health records of 130,828 adults with insomnia. Those who used melatonin for 12 months or more were more likely to be diagnosed with heart failure (4.6% vs 2.7%). It was observational and not peer reviewed, so it cannot prove melatonin caused this, and over-the-counter use in the US was likely missed.12
Melatonin Gummies: What Is Really In Them?
In the US, melatonin is sold as a dietary supplement, which is checked far less than medicines.920 When researchers tested 25 melatonin gummy products in 2023, 22 were mislabeled. The real amount ranged from 74% to 347% of what the label said.109 That is one reason a stated melatonin dosage on a bottle may not be what you get.
Other Natural Sleep Aids: Valerian Root, Ashwagandha, Chamomile
- Valerian root: study results are inconsistent, and US sleep doctors suggest not using it for chronic insomnia. Do not mix it with alcohol or sedatives.1311
- Ashwagandha for sleep: a 2021 review of 5 small studies, all in India, found a small benefit. Liver injury and thyroid changes have been reported in case reports.15
- Chamomile tea for sleep: a 2019 review found only one insomnia study, with no benefit. It can interact with warfarin and cause allergies in people sensitive to ragweed.14
- Black cohosh is sold for menopause, not sleep, and carries a rare liver injury warning.16
Supplements are not approved by the FDA before they are sold, so “natural” does not always mean safe.20 The checker below grades each one.
Can You Take Magnesium And Melatonin Together?
The NIH does not list melatonin among the medicines that interact with magnesium.2 But combining two options with small effects does not create a strong one. Melatonin adds drowsiness, so do not mix it with alcohol or sedatives, and ask your pharmacist to check both against everything else you take.9
How Much Magnesium Is Safe? Daily Limit, Magnesium Side Effects And Who Should Avoid It
For adults, the NIH upper limit is 350 mg a day of magnesium from supplements and medicines combined. Magnesium from food does not count, because the kidneys clear extra food magnesium. Above that limit, diarrhea, nausea and cramps become common. If you have kidney disease, magnesium can build up to dangerous levels.2
| What | Amount |
|---|---|
| Daily need, women 19 to 30, from all sources | 310 mg2 |
| Daily need, women 31 and older, from all sources | 320 mg2 |
| Upper limit from supplements and medicines (adults) | 350 mg2 |
| Americans who get less than they need from food | 48%2 |
We do not give a personal magnesium dosage, because the right amount depends on your diet, kidneys and medicines. Food is the safest source, and food magnesium does not count toward the limit.2 Already taking something? The check below adds up your supplements and medicines.
Magnesium Glycinate Dosage: How To Read The Label
The number that counts toward the 350 mg limit is elemental magnesium: the magnesium itself, not the whole compound.2 The big number on the front of a bottle is often the whole compound, so two bottles can look the same and give very different amounts.
- Look for the Supplement Facts line that reads “Magnesium (as magnesium bisglycinate)” or similar. That amount is what you add up.
- Real examples from trials: the 2025 glycinate trial gave 250 mg of elemental magnesium a day, under the 350 mg limit.3 The 2026 threonate trial gave 2,000 mg of magnesium L-threonate a day, which supplied only 145 mg of magnesium.27
- Food may matter more than form: in the glycinate trial, people who ate less magnesium seemed to benefit more, though this was an early, exploratory finding.3
- Count everything: a multivitamin, a “sleep” blend and some antacids or laxatives can all contain magnesium.2

Words in this picture (4)
- Elemental magnesium
- The amount of magnesium itself in a supplement, not counting what it is bound to.
- Bisglycinate
- Magnesium bound to the amino acid glycine. Often sold as magnesium glycinate.
- Daily Value (DV)
- A reference amount the FDA uses on labels. For magnesium it is 420 mg.
- Serving size
- The amount the label numbers are based on, such as 2 capsules.
How to read this picture
The front of the bottle and the Supplement Facts panel can tell two different stories. Count only the elemental magnesium line, then add any antacids or laxatives you take that day.
How to read this picture
- Start with the black-and-white label. It is an example label we made to show the parts, not a real product. Every supplement bottle has a panel like this.
- 1, serving size: all amounts are per serving. On this label one serving is 2 capsules, so one capsule gives half.
- 2, the green line is the one to count. “Magnesium (as magnesium bisglycinate) 250 mg” means 250 mg of the magnesium itself. That is the dose used in the 2025 glycinate trial.
- 3, percent Daily Value compares the amount with 420 mg, the FDA Daily Value. It is a different number from the 350 mg safety limit, so do not mix them up.
- The red box shows a common trap. A bottle that says 2,000 mg of magnesium L-threonate on the front gave only 145 mg of magnesium in the 2026 trial.
- The bottom box adds up one day. 250 mg from the supplement plus one extra-strength Rolaids (55 mg) is 305 mg, under 350. One tablespoon of milk of magnesia would push it far over. Spinach at dinner does not count, because food magnesium is not part of the limit.

Words in this picture (4)
- Upper limit (UL)
- The most you can take each day without likely harm. For magnesium it covers only supplements and medicines.
- Antacid
- A medicine that neutralizes stomach acid. Some contain magnesium.
- Laxative
- A medicine that helps you pass stool. Milk of magnesia is one.
- Supplement facts label
- The panel on a supplement bottle that lists how much of each nutrient one serving contains.
How to read this picture
Only supplements and medicines count toward the 350 mg upper limit. Magnesium from food does not. If you have kidney disease, ask your doctor first.
How to read this picture
- Start with the red side: what counts. The picture shows a supplement bottle, a roll of chewable antacids and a bottle of liquid laxative. These are the sources that count toward the NIH safe upper limit of 350 mg a day.
- Each line gives a real example. One tablespoon of milk of magnesia has 500 mg, more than the whole daily limit on its own.
- The green side is food: spinach, pumpkin seeds and black beans. Magnesium from leafy greens, nuts, seeds, beans and whole grains does not count toward the 350 mg limit, because food magnesium does not cause problems in healthy people.
- The pale green bar is your total daily need from all sources: 320 mg for women 31 and older.
- The red bar at the bottom is the safety rule: with kidney disease, ask your doctor before any magnesium supplement or medicine.
Magnesium Limit Check: How Much Magnesium Is Safe For You To Add?
Add up the magnesium from every supplement and medicine you take in a day, and see how it compares with the NIH upper limit of 350 mg. Food does not count.
Takes about 30 seconds with your bottles in hand. Nothing is saved or sent.
- Use the magnesium line on the Supplement Facts panel, for example “Magnesium (as magnesium glycinate) 120 mg.” That number is the magnesium itself, not the whole compound.
- Count multivitamins, sleep blends and antacids or laxatives with magnesium too.
- This check cannot tell you what dose to take. It only compares your total with the official limit.
How This Magnesium Limit Check Works
- The limit: the NIH sets a tolerable upper intake level of 350 mg a day of magnesium from supplements and medicines for adults. It does not include magnesium in food and drinks.
- Built-in amounts: milk of magnesia has 500 mg of magnesium per tablespoon, and extra-strength Rolaids 55 mg per tablet, according to the NIH. Tums has none.
- Kidney disease: the risk of magnesium building up to toxic levels is higher, so the check gives no verdict and asks you to talk to your doctor.
Source: NIH Office of Dietary Supplements, Magnesium Fact Sheet for Health Professionals, updated January 6, 2026.
Magnesium From Food Vs A Magnesium Supplement
| Food | Serving | Magnesium |
|---|---|---|
| Pumpkin seeds, roasted | 1 ounce | 156 mg |
| Chia seeds | 1 ounce | 111 mg |
| Almonds, dry roasted | 1 ounce | 80 mg |
| Spinach, boiled | Half a cup | 78 mg |
| Cashews, dry roasted | 1 ounce | 74 mg |
| Peanuts, oil roasted | A quarter cup | 63 mg |
| Soymilk, plain or vanilla | 1 cup | 61 mg |
| Black beans, cooked | Half a cup | 60 mg |
| Edamame, shelled, cooked | Half a cup | 50 mg |
| Peanut butter, smooth | 2 tablespoons | 49 mg |
| Potato, baked with skin | 3.5 ounces | 43 mg |
| Brown rice, cooked | Half a cup | 42 mg |
| Yogurt, plain, low fat | 8 ounces | 42 mg |
| Oatmeal, instant | 1 packet | 36 mg |
Source: NIH Office of Dietary Supplements, Table 2, updated January 6, 2026.2 Women 31 and older need 320 mg a day from all sources, so a handful of nuts and a serving of beans covers a good share.
Best Magnesium Supplement: How To Choose One
- Read the magnesium line, not the compound. The amount on the Supplement Facts panel is the magnesium itself.2
- Look for a quality seal. ConsumerLab.com, NSF International and U.S. Pharmacopeia test supplements. A seal means the product was made properly, contains what the label says and is free of harmful levels of contaminants. It does not mean the product is safe or works.26
- Count everything. Multivitamins, sleep blends and some antacids and laxatives add magnesium too.2
- Remember the FDA does not approve supplements before they are sold, or check that they work.26
Magnesium Side Effects And Interactions

Words in this picture (6)
- Kidney
- One of two bean-shaped organs that filter blood and make urine.
- Cortex
- The outer layer of the kidney, where the filters sit.
- Renal pyramids
- Striped, cone-shaped areas inside the kidney, full of tiny tubes that take back what the body needs.
- Renal pelvis
- The funnel in the center of the kidney that collects urine.
- Ureter
- The tube that carries urine from each kidney to the bladder.
- Kidney disease
- When the kidneys lose some of their ability to filter blood.
How to read this picture
Your kidneys decide how much magnesium to keep. About 120 mg leaves in urine each day, and less when you run low. With kidney disease, supplement magnesium can build up to dangerous levels.
How to read this picture
- This is a real kidney shape cut in half lengthwise. Most people have two, at the back of the belly just under the lowest ribs.
- Follow the blood in at number 4: the red renal artery carries blood into the kidney, where it branches out toward the edges.
- 1, the cortex, is the outer grainy layer. It holds the tiny filters that pull magnesium, water and waste out of the blood.
- 2, the striped pyramids, are full of small tubes. Here the kidney takes back the magnesium your body still needs, keeping more when you are low.
- 3, the renal pelvis, is the pale funnel in the middle that collects the finished urine. 6, the ureter, carries it, with any extra magnesium, down to the bladder.
- 5, the blue renal vein, takes the cleaned blood back toward the heart.
- Read the red box last. With kidney disease, this control fails, so magnesium from supplements, antacids and laxatives can build up to dangerous levels.
- Common magnesium side effects: diarrhea, often with nausea and belly cramps, from high-dose supplements or medicines.2
- Toxicity: very high doses can cause low blood pressure, vomiting, trouble breathing, an irregular heartbeat and, rarely, cardiac arrest. The risk is higher with kidney problems.2
- Bisphosphonates (bone drugs such as alendronate): take magnesium at least 2 hours before or after.2
- Tetracycline and quinolone antibiotics: take them at least 2 hours before or 4 to 6 hours after magnesium.2
- Water pills (diuretics) and acid reflux pills (PPIs) taken for over a year can lower your magnesium level.2
- Gabapentin, a seizure and nerve pain medicine, is also on the list of drugs to check against magnesium.29
- Cancer treatment: some chemotherapy drugs, such as cisplatin, lower magnesium, while magnesium can build up if the kidneys are affected. If you are being treated for cancer, ask your care team before starting magnesium.29
Magnesium Deficiency Symptoms
Early magnesium deficiency symptoms include loss of appetite, nausea, vomiting, tiredness and weakness. As it gets worse, numbness, tingling, muscle cramps, seizures, personality changes and an abnormal heart rhythm can appear.2 True deficiency is uncommon in healthy people but is more likely with long-term PPI or diuretic use, type 2 diabetes, gut conditions or heavy drinking. A doctor can test your level if you have symptoms.2
About 50% to 60% of the magnesium in your body is stored in your bones, and most of the rest is in muscles and other soft tissue. Less than 1% is in your blood, which is why a normal blood level does not always rule out low stores.2

Words in this picture (6)
- Magnesium
- A mineral your body uses for muscles, nerves, heart rhythm, blood sugar and bones.
- Soft tissue
- Body tissue that is not bone, such as muscle, organs and fat.
- Absorption
- How much of a nutrient passes from your gut into your blood.
- mmol/L
- Millimoles per liter, the unit labs use to report magnesium in blood.
- Excrete
- To remove from the body, here through urine.
- RDA
- Recommended Dietary Allowance: the daily amount that covers the needs of almost all healthy people.
How to read this picture
Almost all of your magnesium is in bone and muscle, and less than 1% is in your blood. That is why a normal blood test cannot rule out low magnesium stores.
How to read this picture
- The picture shows four tissues up close. Each number matches a card underneath it.
- 1, bone: the end of a long bone cut open. Inside the hard outer shell is a honeycomb of spongy bone with red marrow. Bones hold 50% to 60% of your magnesium, a store the body can draw on.
- 2, muscle: a muscle bundle cut across, with a few fibers pulled out. Muscle and other soft tissue hold most of the rest.
- 4, the gut: the lining of the small intestine, covered in tiny finger-like villi with blood vessels inside. This is where magnesium from food is absorbed, about 30% to 40% of what you eat and drink.
- 5, the kidney: cut in half to show the outer layer, the striped pyramids and the funnel that drains into the ureter. The kidneys send about 120 mg a day out in urine and hold on to more when you run low.
- Now read the blocks. There are 100 blocks, each 1% of the roughly 25 grams in an adult body: green for bone, red for muscle and soft tissue.
- 3, the single blue block, is your blood: under 1%. A blood test only sees this tiny share, normally 0.75 to 0.95 mmol/L, so it can look normal even when your stores are low.
- The line under the title puts it in context: women need 310 to 320 mg a day from food, drinks and supplements combined.
Sleep Supplement Evidence Checker: Melatonin, Valerian Root, Ashwagandha And More
Pick or type a sleep supplement to see its evidence grade, the best study in plain words, the official NIH safety limit where one exists, key interactions and who should avoid it.
Covers 9 supplements, with magnesium split by form. Nothing is saved or sent.
- It can: grade the research behind 9 popular sleep supplements and point out warnings for kidney disease, liver problems, blood thinners and common medicines.
- It cannot: check your exact medicines, judge a brand, tell you what a bottle really contains or suggest a dose. Supplements are not approved by the FDA before they are sold.
- It is not a recommendation to take any supplement. Tell your doctor and pharmacist what you take.
All 9 Sleep Supplements At A Glance
Evidence grade: High means strong, repeated trials; Moderate means some good trials; Low means small or few trials; Very low means little or no real evidence.
Magnesium glycinate Evidence: Low
In short: Small effect, small studies.
Best study: In a 2025 trial of 155 adults with poor sleep, magnesium bisglycinate for 4 weeks improved insomnia scores by 1.6 points more than a dummy pill, a small effect. Sleep was self-reported only. No trial has compared glycinate head to head with other forms for sleep.
Safety limit: NIH upper limit: 350 mg a day of magnesium from supplements and medicines for adults. Magnesium from food does not count toward it.
Key interactions and warnings:
- Take it at least 2 hours apart from bone drugs called bisphosphonates, such as alendronate (Fosamax).
- Take tetracycline or quinolone antibiotics at least 2 hours before or 4 to 6 hours after magnesium.
- Water pills (diuretics) and long-term acid reflux pills (PPIs) can change your magnesium level.
Who should avoid or ask first: Ask your doctor first if you have kidney disease: the risk of magnesium building up to toxic levels is higher.
Common side effects: High doses from supplements often cause diarrhea, sometimes with nausea and belly cramps.
Magnesium citrate Evidence: Low
In short: Absorbed well, not tested alone for sleep.
Best study: The NIH says citrate is absorbed better than oxide, based on small studies. We found no strong sleep trial of magnesium citrate on its own. A 2021 review of 3 small trials of magnesium in older adults found about 17 minutes faster sleep onset, rated low-quality evidence.
Safety limit: NIH upper limit: 350 mg a day of magnesium from supplements and medicines for adults. Magnesium from food does not count toward it.
Key interactions and warnings:
- Take it at least 2 hours apart from bone drugs called bisphosphonates, such as alendronate (Fosamax).
- Take tetracycline or quinolone antibiotics at least 2 hours before or 4 to 6 hours after magnesium.
- Water pills (diuretics) and long-term acid reflux pills (PPIs) can change your magnesium level.
Who should avoid or ask first: Ask your doctor first if you have kidney disease: the risk of magnesium building up to toxic levels is higher.
Common side effects: High doses from supplements often cause diarrhea, sometimes with nausea and belly cramps.
Magnesium oxide Evidence: Very low
In short: Poorly absorbed.
Best study: The NIH says oxide is absorbed less well than citrate, aspartate, lactate or chloride. In a 2015 trial of 289 women, magnesium oxide did not reduce hot flashes and caused more diarrhea than a dummy pill.
Safety limit: NIH upper limit: 350 mg a day of magnesium from supplements and medicines for adults. Magnesium from food does not count toward it.
Key interactions and warnings:
- Take it at least 2 hours apart from bone drugs called bisphosphonates, such as alendronate (Fosamax).
- Take tetracycline or quinolone antibiotics at least 2 hours before or 4 to 6 hours after magnesium.
- Water pills (diuretics) and long-term acid reflux pills (PPIs) can change your magnesium level.
Who should avoid or ask first: Ask your doctor first if you have kidney disease: the risk of magnesium building up to toxic levels is higher.
Common side effects: High doses from supplements often cause diarrhea, sometimes with nausea and belly cramps.
Magnesium L-threonate Evidence: Low
In short: Mixed: two trials disagree.
Best study: In a 2024 trial of 80 adults aged 35 to 55, magnesium L-threonate for 21 days improved deep and REM sleep scores on a consumer sleep ring. But a larger 2026 trial of 100 adults found no difference in any sleep ring measure after 6 weeks, and only 1 of 4 sleep questionnaires improved. The maker funded the 2026 trial.
Safety limit: NIH upper limit: 350 mg a day of magnesium from supplements and medicines for adults. Magnesium from food does not count toward it.
Key interactions and warnings:
- Take it at least 2 hours apart from bone drugs called bisphosphonates, such as alendronate (Fosamax).
- Take tetracycline or quinolone antibiotics at least 2 hours before or 4 to 6 hours after magnesium.
- Water pills (diuretics) and long-term acid reflux pills (PPIs) can change your magnesium level.
Who should avoid or ask first: Ask your doctor first if you have kidney disease: the risk of magnesium building up to toxic levels is higher.
Common side effects: High doses from supplements often cause diarrhea, sometimes with nausea and belly cramps.
Melatonin Evidence: Low
In short: Modest; not advised for chronic insomnia.
Best study: A 2013 review of 19 studies with 1,683 people found melatonin helped people fall asleep about 7 minutes faster and sleep about 8 minutes longer. The American Academy of Sleep Medicine suggests doctors not use it for chronic insomnia (a weak recommendation). It may help jet lag.
Safety limit: No official US upper limit. In a 2023 test of 25 melatonin gummies, 22 were mislabeled, with 74% to 347% of the amount on the label.
Key interactions and warnings:
- People with epilepsy or who take blood thinners should use it only with medical supervision.
- A 2025 conference study linked 12 months or more of use to more heart failure. It was observational and not peer reviewed, so it cannot prove cause.
Who should avoid or ask first: Little is known about safety in pregnancy or breastfeeding. Long-term safety is unknown.
Common side effects: Headache, dizziness, nausea and next-day sleepiness.
Valerian root Evidence: Low
In short: Inconsistent; not advised for insomnia.
Best study: Studies have been inconsistent. The American Academy of Sleep Medicine suggests doctors not use valerian for chronic insomnia (a weak recommendation).
Safety limit: No official limit. Studies used it safely for up to 6 weeks; long-term safety is unknown.
Key interactions and warnings:
- Do not combine it with alcohol or sedatives.
- Rare liver injury has been reported, usually when valerian was mixed with other herbs.
Who should avoid or ask first: Little is known about safety in pregnancy or breastfeeding. Stopping suddenly after long use may cause withdrawal symptoms.
Common side effects: Headache, upset stomach, mental dullness, uneasiness and vivid dreams.
Ashwagandha Evidence: Low
In short: Small effect, limited research.
Best study: A 2021 review of 5 studies with 372 adults, all in India, found a small but significant effect on sleep. Benefits were larger in people with insomnia and with at least 8 weeks of use.
Safety limit: No official US limit.
Key interactions and warnings:
- It may interact with thyroid hormone, diabetes and blood pressure medicines, drugs that suppress the immune system, and sedatives.
- Liver injury has been reported in case reports.
Who should avoid or ask first: Some experts advise avoiding it in pregnancy and breastfeeding, and France advises against it for people with hormone or thyroid disorders.
Common side effects: Case reports of liver injury and of an overactive thyroid.
Chamomile Evidence: Very low
In short: Not shown to help insomnia.
Best study: A 2019 review found only one study of chamomile for insomnia, and it showed no benefit.
Safety limit: No official limit. Likely safe in food and tea amounts.
Key interactions and warnings:
- Interactions have been reported with the blood thinner warfarin.
- It may reduce how well birth control pills work, based on early studies.
Who should avoid or ask first: People allergic to ragweed, chrysanthemums, marigolds or daisies are more likely to react to it.
Common side effects: Nausea, dizziness and, rarely, allergic reactions including anaphylaxis.
Black cohosh Evidence: Very low
In short: Not a sleep aid; liver warning.
Best study: Black cohosh is sold for menopause, not sleep. Studies for menopause symptoms have had mixed results, and The Menopause Society does not recommend it for hot flashes.
Safety limit: No official limit.
Key interactions and warnings:
- Rare cases of liver damage, some very serious, have been reported. The NIH notes at least 83 cases worldwide, though it is not proven black cohosh caused them.
- Stop and call your doctor if you get belly pain, dark urine, or yellow skin or eyes.
Who should avoid or ask first: Ask your doctor first if you have a liver problem.
Common side effects: Usually mild. The main concern is the rare liver injury above.
Sources: NIH Office of Dietary Supplements (magnesium, ashwagandha and black cohosh fact sheets); NCCIH (melatonin, valerian, chamomile); American Academy of Sleep Medicine 2017 guideline; Mah and Pitre 2021; Schuster et al. 2025; Hausenblas et al. 2024; Park et al. 2015; Ferracioli-Oda et al. 2013; Cohen et al., JAMA 2023; American Heart Association Scientific Sessions 2025.
Call or text 988 if you have thoughts of harming yourself. Call 911 for chest pain, fainting, a very slow or irregular heartbeat, or trouble breathing, which can be signs of magnesium toxicity.2
See a doctor promptly for any bleeding after menopause, and for loud snoring or gasping in your sleep, which can be signs of sleep apnea.
Magnesium And Sleep Words Explained Simply
Medical words can make a clear answer hard to follow. Here is what the key words on this page mean, in plain English.
- Elemental magnesium
- The magnesium itself, not the whole compound. It is the number on the Supplement Facts label.
- Glycinate, citrate, oxide
- Different partners attached to magnesium. They change how well it is absorbed, not what magnesium is.
- Upper limit (UL)
- The most most adults can take each day without side effects. For supplement magnesium it is 350 mg.
- Absorption
- How much of a pill your gut takes in. Example: citrate is absorbed better than oxide.
- Placebo
- A dummy pill. Trials compare a real treatment with it to see the true effect.
- Meta-analysis
- A study that pools several studies to get a bigger, clearer answer.
- CBT-I
- Cognitive behavioral therapy for insomnia: a short talk therapy that retrains sleep habits.
- Interaction
- When one product changes how another works. Example: magnesium can block some antibiotics.
Frequently Asked Questions
Is It Safe To Take Magnesium Every Night?
Yes, for most healthy adults, if you stay within the NIH limit of 350 mg a day from supplements and medicines combined. Food magnesium does not count. The main risks are diarrhea at high doses and drug interactions. If you have kidney disease, ask your doctor first, because magnesium can build up to toxic levels. 2
What Is The Downside Of Magnesium Glycinate?
The evidence is thin: in the best trial, magnesium glycinate improved insomnia scores only slightly more than a dummy pill. Like all magnesium, it can cause diarrhea and cramps at high doses, it interacts with some antibiotics and bone drugs, and it is risky with kidney disease. Labels are not checked by the FDA. 3220
Why Is Melatonin No Longer Recommended?
It was never strongly recommended for long-term insomnia in the US. In 2017 the American Academy of Sleep Medicine suggested doctors not use melatonin for chronic insomnia, because studies showed only small benefits. In 2025 a large, not yet peer-reviewed study also linked a year or more of use to heart failure, which added to the caution. 1112
Can I Take Magnesium With HRT?
Yes, in most cases. The NIH magnesium fact sheet does not list hormone therapy among the medicines that interact with magnesium. It does list bisphosphonate bone drugs, some antibiotics, water pills and long-term acid reflux pills. HRT treats sleep problems caused by menopause. Check with your pharmacist. 221
Which Form Of Magnesium Is Best For Sleeping?
No study has compared forms head to head for sleep. Magnesium glycinate has one 2025 trial with a small benefit. Magnesium L-threonate has mixed results: a small 2024 trial looked positive, but a larger 2026 trial found no benefit on a sleep ring. Citrate is absorbed better than oxide. Oxide is absorbed least well and did not help hot flashes in a 2015 trial. All forms share the same 350 mg supplement limit. 342725
Is Melatonin Safe To Take Every Night?
No, not without checking first. Melatonin seems safe in the short term, with mild side effects such as headache, dizziness, nausea and next-day sleepiness. Long-term safety is unknown, and 22 of 25 gummy products tested in 2023 were mislabeled. People with epilepsy or on blood thinners need medical supervision. 910
How Much Magnesium For Sleep Should I Take?
We cannot give a personal dose. The NIH sets the safe upper limit for adults at 350 mg a day from supplements and medicines, and the daily need from all sources at 310 to 320 mg for women. Your diet, kidneys and other medicines all matter, so ask your doctor or pharmacist what fits you. 2
When Should You Take Magnesium Before Bed?
Can You Take Magnesium And Melatonin Together?
Yes, usually. The NIH lists no interaction between magnesium and melatonin, but neither has strong evidence for chronic insomnia, and combining two weak options does not make a strong one. Melatonin adds drowsiness, so avoid it with alcohol or sedatives. Ask your pharmacist to check both against your other medicines. 29
How Long Does Magnesium Take To Work For Sleep?
Trials gave magnesium every day for 3 to 8 weeks before measuring sleep: 21 days for magnesium L-threonate, 4 weeks for magnesium glycinate and 8 weeks in an older trial of 46 adults with insomnia. So give it a few weeks, track your sleep, and stop if nothing changes. Effects in these trials were small. 4325
Does Magnesium Help With Leg Cramps At Night?
No, probably not. A 2020 Cochrane review of 11 trials found magnesium unlikely to give a meaningful benefit for ordinary muscle cramps in older adults. In a 2017 trial of 94 adults, magnesium oxide at bedtime cut night leg cramps no more than a dummy pill. Ask your doctor about other causes if cramps keep waking you. 2223
Do Magnesium Spray And Magnesium Lotion Work For Sleep?
No, there is no good proof. A 2017 review concluded that claims of magnesium being absorbed through the skin, from sprays, flakes, lotions or bath salts, are scientifically unsupported. If you want magnesium, food and oral supplements within the NIH limit are the forms that have actually been studied. 72
What Is The Best Sleep Supplement?
No sleep supplement has strong evidence for long-term insomnia. Melatonin has the most trials but only small benefits, and magnesium, ashwagandha and valerian have small or inconsistent studies. The treatment with the best evidence is not a supplement: cognitive behavioral therapy for insomnia, which the American College of Physicians recommends first. 81151319
Does Magnesium L-Threonate Help You Sleep?
Not clearly. A 2024 trial of 80 adults found better sleep ring scores after 21 days, but a larger 2026 trial of 100 adults found no difference in any sleep ring measure after 6 weeks, and only 1 of 4 sleep questionnaires improved. The maker funded the 2026 trial. A 2,000 mg dose gave only 145 mg of magnesium. 427
Does Magnesium Help With Anxiety?
Yes, possibly a little, but the research is weak. A 2017 review of 18 studies found suggestive but inconclusive evidence that magnesium may ease anxiety in people prone to it, and rated the study quality as poor. Anxiety that disturbs your sleep or your days is worth raising with a doctor, as better-proven treatments exist. 6
Page History And Next Review
- : added the 2026 magnesium L-threonate trial, a label-reading guide to magnesium glycinate dosage, a new US trial in women, an FAQ on L-threonate, and context and next steps in the Magnesium Limit Check
- : first published; later the same day we added leg cramp and restless legs evidence, how long magnesium takes to work, an NIH food table, how to choose a supplement, the Magnesium Limit Check, Key Takeaways and a plain-words glossary.
Next scheduled review: . We will recheck the NIH fact sheet, new sleep trials and supplement safety alerts.
Spot something out of date? Email hello@dearclear.com and we will check it against the source.
Sources
Every medical statement on this page links to one of these sources. All links were last checked on November 20, 2026.
- Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: a systematic review and meta-analysis. BMC Complementary Medicine and Therapies. 2021;21(1):125. pubmed.ncbi.nlm.nih.gov
- NIH Office of Dietary Supplements. Magnesium: Fact Sheet for Health Professionals. Updated January 6, 2026. ods.od.nih.gov
- Schuster J, Cycelskij I, Lopresti A, Hahn A. Magnesium bisglycinate supplementation in healthy adults reporting poor sleep: a randomized, placebo-controlled trial. Nature and Science of Sleep. 2025;17:2027-2040. pmc.ncbi.nlm.nih.gov
- Hausenblas HA, Lynch T, Hooper S, Shrestha A, Rosendale D, Gu J. Magnesium-L-threonate improves sleep quality and daytime functioning in adults with self-reported sleep problems: a randomized controlled trial. Sleep Medicine: X. 2024;8:100121. pubmed.ncbi.nlm.nih.gov
- Park H, Qin R, Smith TJ, et al. North Central Cancer Treatment Group N10C2 (Alliance): a double-blind placebo-controlled study of magnesium supplements to reduce menopausal hot flashes. Menopause. 2015;22(6):627-632. pubmed.ncbi.nlm.nih.gov
- Boyle NB, Lawton C, Dye L. The effects of magnesium supplementation on subjective anxiety and stress: a systematic review. Nutrients. 2017;9(5):429. pmc.ncbi.nlm.nih.gov
- Gröber U, Werner T, Vormann J, Kisters K. Myth or reality: transdermal magnesium? Nutrients. 2017;9(8):813. pubmed.ncbi.nlm.nih.gov
- Ferracioli-Oda E, Qawasmi A, Bloch MH. Meta-analysis: melatonin for the treatment of primary sleep disorders. PLoS One. 2013;8(5):e63773. pubmed.ncbi.nlm.nih.gov
- National Center for Complementary and Integrative Health (NCCIH). Melatonin: What You Need To Know. Last updated May 2024. nccih.nih.gov
- Cohen PA, Avula B, Wang YH, Katragunta K, Khan I. Quantity of melatonin and CBD in melatonin gummies sold in the US. JAMA. 2023;329(16):1401-1402. pubmed.ncbi.nlm.nih.gov
- Sateia MJ, Buysse DJ, Krystal AD, Neubauer DN, Heald JL. Clinical practice guideline for the pharmacologic treatment of chronic insomnia in adults: an American Academy of Sleep Medicine clinical practice guideline. Journal of Clinical Sleep Medicine. 2017;13(2):307-349. pubmed.ncbi.nlm.nih.gov
- American Heart Association Scientific Sessions 2025 (preliminary abstract, not peer reviewed), reported by ScienceDaily: Long-term melatonin use linked to higher heart failure risk. November 2025. sciencedaily.com
- National Center for Complementary and Integrative Health (NCCIH). Valerian. Last updated May 2025. nccih.nih.gov
- National Center for Complementary and Integrative Health (NCCIH). Chamomile. Last updated November 2024. nccih.nih.gov
- NIH Office of Dietary Supplements. Ashwagandha: Fact Sheet for Health Professionals. Updated May 2, 2025. ods.od.nih.gov
- NIH Office of Dietary Supplements. Black Cohosh: Fact Sheet for Health Professionals. ods.od.nih.gov
- The North American Menopause Society. The 2023 nonhormone therapy position statement. Menopause. 2023;30(6):573-590. pubmed.ncbi.nlm.nih.gov
- McCurry SM, Guthrie KA, Morin CM, et al. Telephone-based cognitive behavioral therapy for insomnia in perimenopausal and postmenopausal women with vasomotor symptoms: a MsFLASH randomized clinical trial. JAMA Internal Medicine. 2016;176(7):913-920. pubmed.ncbi.nlm.nih.gov
- Qaseem A, Kansagara D, Forciea MA, et al. Management of chronic insomnia disorder in adults: a clinical practice guideline from the American College of Physicians. Annals of Internal Medicine. 2016;165(2):125-133. pubmed.ncbi.nlm.nih.gov
- US Food and Drug Administration (FDA). Questions and Answers on Dietary Supplements. fda.gov
- NHS (UK). Benefits And Risks Of Hormone Replacement Therapy (HRT). nhs.uk
- Garrison SR, Korownyk CS, Kolber MR, et al. Magnesium for skeletal muscle cramps. Cochrane Database of Systematic Reviews. 2020;9:CD009402. pubmed.ncbi.nlm.nih.gov
- Roguin Maor N, Alperin M, Shturman E, et al. Effect of magnesium oxide supplementation on nocturnal leg cramps: a randomized clinical trial. JAMA Internal Medicine. 2017;177(5):617-623. pubmed.ncbi.nlm.nih.gov
- Marshall NS, Serinel Y, Killick R, et al. Magnesium supplementation for the treatment of restless legs syndrome and periodic limb movement disorder: a systematic review. Sleep Medicine Reviews. 2019;48:101218. pubmed.ncbi.nlm.nih.gov
- Abbasi B, Kimiagar M, Sadeghniiat K, 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;17(12):1161-1169. pubmed.ncbi.nlm.nih.gov
- NIH Office of Dietary Supplements. Dietary Supplements: What You Need To Know. Updated January 4, 2023. ods.od.nih.gov
- Lopresti AL, Smith SJ. The effects of magnesium L-threonate (Magtein) on cognitive performance and sleep quality in adults: a randomised, double-blind, placebo-controlled trial. Frontiers in Nutrition. 2026;12:1729164. Funded by Threotech Inc. pubmed.ncbi.nlm.nih.gov
- ClinicalTrials.gov NCT07708857. Magnesium Supplement For Sleep Quality In Women With Poor Sleep (Jacksonville University). Registered 2026; results not yet published. clinicaltrials.gov
- American Cancer Society and American Society of Clinical Oncology. Magnesium For Sleep: What You Need To Know. August 13, 2026. cancer.org
How we work: we use government sources and clinical guidelines first, cross-check numbers against a second source, and never claim medical review. If you spot an error, email hello@dearclear.com.