Magnesium glycinate is the most widely recommended form of magnesium for sleep, offering good absorption without the digestive side effects that come with other forms. The typical dose is 250 to 500 milligrams taken at bedtime. But the choice between forms isn’t as clear-cut as supplement marketing suggests, and understanding the tradeoffs will help you pick the right one.
How Magnesium Helps With Sleep
Magnesium plays a role in activating the part of your nervous system responsible for calming you down. It helps regulate GABA, the brain chemical that quiets neural activity and prepares your body for rest. When magnesium levels are low, your nervous system stays more active than it should at night, making it harder to fall asleep and stay asleep.
Magnesium also supports muscle relaxation. If you’ve ever had leg cramps or general restlessness at night, low magnesium could be a contributing factor. The mineral helps muscles release tension after they contract, which is part of why people report feeling physically calmer after supplementing.
Which Forms Work Best for Sleep
No head-to-head studies have compared different magnesium forms specifically for sleep. That said, the forms differ meaningfully in how well your body absorbs them and what side effects they carry.
Magnesium glycinate is the go-to recommendation for sleep. It pairs magnesium with glycine, an amino acid that has its own calming properties. It’s well absorbed and gentle on the stomach, so it won’t send you to the bathroom in the middle of the night. If you’re choosing one form specifically for sleep, this is the safest bet.
Magnesium citrate actually has the most research evidence supporting its use as a sleep aid. The catch: it has potent laxative effects. If you’re prone to constipation, that’s a bonus. Otherwise, it can disrupt the very sleep you’re trying to improve.
Magnesium L-threonate is marketed for brain health, and there’s some interesting data behind it. A randomized, double-blind trial found it improved working memory, episodic memory, and reaction time, with a 7.5-year reduction in estimated brain cognitive age compared to placebo. For sleep specifically, though, the results were mixed. Participants reported improvements in how much poor sleep affected their daytime functioning, but objective sleep tracking showed no measurable difference in sleep quality. Heart rate did decrease and heart rate variability improved, suggesting a real effect on stress and nervous system balance, even if sleep architecture itself didn’t change.
Magnesium oxide is the cheapest option and widely available. It’s less well absorbed than glycinate or citrate, meaning you get less magnesium per pill. But it still works for many people, and the lower price makes it accessible if you’re supplementing long-term.
Topical magnesium (sprays, lotions, bath salts) is popular but not recommended for sleep. Absorption through the skin is low and inefficient, so you’re unlikely to raise your magnesium levels meaningfully this way.
How Much to Take and When
The recommended dose for sleep is 250 to 500 milligrams, taken as a single dose at bedtime. One important detail: supplement labels list the amount of elemental magnesium in the product, not the total weight of the compound. So a capsule labeled “400 mg magnesium glycinate” is telling you it contains 400 mg of actual magnesium. You don’t need to do extra math.
The tolerable upper intake level for supplemental magnesium is 350 mg per day for adults, according to the NIH. This limit applies only to magnesium from supplements and medications, not from food. Going above this threshold increases the risk of diarrhea, nausea, and cramping. Many people tolerate doses up to 500 mg without issues, but starting at the lower end (250 mg) and working up makes sense if you’re new to supplementing.
Take it right before bed. Some people find they need to experiment with timing, taking it 30 to 60 minutes before they want to fall asleep rather than right as they get into bed. Consistency matters more than precision here.
Getting Magnesium From Food
If you’d rather not take a supplement, or if you want to boost your intake alongside one, certain foods are surprisingly rich in magnesium. Pumpkin seeds are the standout: a single ounce of hulled, roasted pumpkin seeds delivers 150 mg of magnesium. That’s nearly half the supplemental dose recommended for sleep. An ounce of roasted almonds provides 80 mg, and half a cup of cooked spinach gives you 78 mg.
A bedtime snack of pumpkin seeds or a dinner with a generous portion of spinach can meaningfully contribute to your magnesium levels. The advantage of food sources is that there’s no upper limit concern. Your body regulates absorption from food more efficiently than from supplements.
What Magnesium Won’t Fix
Magnesium is helpful for general sleep quality, particularly if your levels are low (and many adults’ levels are). But it’s not a solution for every sleep-related problem. Restless leg syndrome is a common reason people reach for magnesium, yet a systematic review of the available evidence found no reliable support for magnesium helping with restless legs or periodic limb movements during sleep. The single randomized trial on this topic included only 30 participants and didn’t find a significant effect.
If your sleep problems stem from anxiety, pain, sleep apnea, or a medical condition, magnesium alone is unlikely to resolve them. It works best as one piece of good sleep hygiene, alongside consistent sleep timing, a cool dark room, and limiting screens before bed.
Safety Considerations
For most healthy adults, magnesium supplements at recommended doses are safe. The most common side effect is loose stools, especially with magnesium citrate or oxide. Starting with a lower dose minimizes this.
People with kidney disease need to be cautious. Your kidneys are responsible for clearing excess magnesium from your blood, and when kidney function is reduced, magnesium can build up to dangerous levels. This is particularly risky for anyone with severely reduced kidney function. If you’re already taking medications that contain magnesium, like certain antacids or laxatives, stacking a sleep supplement on top could push levels too high. Diuretics can also affect magnesium balance, sometimes lowering your levels and sometimes interacting unpredictably with supplements.

