Magnesium is one of the most popular supplements for sleep and anxiety, and for good reason: it sits right in the middle of the nervous-system pathways that help your body wind down. But walk down the supplement aisle and you will find a dozen versions, and they are not interchangeable. The form decides how much actually gets absorbed, how gentle it is on your stomach, and even whether it reaches your brain. This guide compares the three forms people ask about most, glycinate, L-threonate, and citrate, so you can match the right one to your goal.

The quick answer

  • For sleep and general anxiety, most people do best with magnesium glycinate: well absorbed, gentle, and the glycine it is bound to is calming on its own.
  • If your problem is a racing, won't-switch-off brain, magnesium L-threonate is the one form shown to reach the brain in meaningful amounts.
  • If you are also constipated, magnesium citrate can cover both, but it loosens stools, which is the last thing you want at 2 a.m.
  • Skip magnesium oxide for this purpose. It is cheap but poorly absorbed and mostly acts as a laxative.

How magnesium helps sleep and anxiety

Magnesium is a cofactor in hundreds of reactions, but a few are directly relevant to calm and sleep:

Low magnesium is common, and it is associated with poorer sleep and higher anxiety. The symptoms of a magnesium shortage often go beyond restless nights: people may also notice muscle cramps or twitches, fatigue, irritability, and headaches. That does not make magnesium a sedative or a treatment for an anxiety disorder. It means that if you are running low, topping up helps your body do what it is built to do. The sleep research generally shows modest improvements, strongest in people who were short on magnesium to begin with.

Magnesium glycinate: the best all-rounder

What it is: elemental magnesium bound to glycine, an amino acid. (You will also see it sold as "magnesium bisglycinate," which is the same thing.)

Best for: sleep and everyday anxiety, and anyone with a sensitive stomach.

It wins for most people for two reasons. First, this chelated (amino-acid-bound) form is well absorbed and very gentle, so it rarely causes the loose stools that put people off magnesium. Second, glycine itself is calming and has been studied for improving sleep quality, so you get a small double benefit. In a 2025 trial, 250 mg of elemental magnesium helped adults with poor sleep fall asleep faster and sleep more deeply, and an older trial in elderly adults with insomnia used 500 mg.

Typical dose: start at 100 to 200 mg of elemental magnesium in the evening and work up to about 300 to 400 mg if you need it.

Magnesium L-threonate: for a busy brain

What it is: magnesium bound to threonic acid, usually sold under the branded name Magtein.

Best for: a racing, busy mind, and people who care about focus and memory.

What makes it different is reach. L-threonate is the one form shown to cross the blood-brain barrier and raise magnesium levels in the brain in meaningful amounts. That is why people reach for it when the problem is mental, the 3 a.m. spin cycle of thoughts rather than physical restlessness. A 2024 trial found that 1 gram of magnesium L-threonate daily improved sleep quality and next-day thinking.

Typical dose: the studied dose is about 1,000 to 2,000 mg of the compound, which sounds like a lot but delivers only around 140 to 150 mg of elemental magnesium. It is usually split through the day, with a portion in the evening.

The catch: it is by far the most expensive form, and the evidence is newer and thinner than glycinate's. If your issue is mostly physical, or you just want the best value, glycinate is still the sensible first try.

Magnesium citrate: fine, unless it sends you to the bathroom

What it is: magnesium bound to citric acid.

Best for: people who are constipated, especially if they also struggle with sleep, because one supplement can help both.

Citrate is well absorbed, but it also pulls water into the gut, which is exactly why it is a popular constipation remedy. For sleep and anxiety that is usually a downside, not a feature: a calming mineral that wakes you up for the bathroom is not doing you any favors. Lower doses (around 100 to 200 mg elemental) are less likely to loosen stools, while higher doses are used deliberately as a laxative.

Bottom line: reach for citrate if regularity is part of your problem. Otherwise, glycinate is gentler.

The three forms, side by side

FormBest forEvening dose (elemental)Main downside
GlycinateSleep and general anxiety100 to 400 mgNone notable; check the elemental amount
L-threonateA racing, busy brain~140 mg (1 to 2 g of the compound)Expensive; newer evidence
CitrateSleep plus constipation100 to 200 mgLaxative effect (loose stools)
OxideSkip for this purposen/aPoorly absorbed; mostly a laxative

The other forms, quickly

You will see plenty of other versions on the shelf. Here is the short version for sleep and anxiety:

How much, and when to take it

Is it safe to take magnesium every night?

For most healthy adults, nightly magnesium within sensible doses is safe and not habit-forming. A few cautions are worth knowing:

Want our current product picks for sleep and calm?

See our best supplements for sleep →

Frequently asked questions

Which magnesium is best for sleep?

For most people, magnesium glycinate. It is well absorbed, gentle on the stomach, and the glycine it is bound to is calming on its own. A typical dose is 100 to 400 mg of elemental magnesium in the evening. If a racing mind is your main problem, magnesium L-threonate is the form shown to reach the brain.

Which magnesium is best for anxiety?

Glycinate works well for most people, and magnesium taurate is a reasonable alternative. Magnesium supports GABA and the body's stress response, so topping up a low level can help you feel calmer, but it is not a treatment for an anxiety disorder, and persistent anxiety deserves a real evaluation.

Can I take magnesium every night?

For most healthy adults, yes. Nightly magnesium within sensible doses is fine and not habit-forming. The upper limit for supplemental magnesium is 350 mg per day of elemental magnesium, set mainly to avoid diarrhea. People with kidney disease should only take it under medical supervision.

How much magnesium should I take for sleep?

Start around 100 to 200 mg of elemental magnesium in the evening and work up to 300 to 400 mg if needed. Read the supplement facts for the elemental amount, not the total compound weight, since a 500 mg magnesium glycinate capsule may contain only about 70 mg of actual magnesium.

Magnesium glycinate or citrate, which is better?

For sleep and anxiety, glycinate, because it is gentle and well absorbed. Choose citrate only if you are also constipated, since it draws water into the gut and loosens stools, which is not what you want overnight.

What are the symptoms of a magnesium shortage?

A shortage of magnesium can be hard to spot, because standard blood tests do not reflect total body stores well. When symptoms do appear, common ones include muscle cramps and twitches, fatigue, poor sleep, irritability or anxiety, and headaches, and more severe deficiency can affect heart rhythm. Since the signs overlap with many other things, treat them as a reason to look at your intake rather than a diagnosis on their own.

The bottom line

For most people asking which magnesium is best for sleep and anxiety, the answer is glycinate: well absorbed, gentle, and calming, at 100 to 400 mg of elemental magnesium in the evening. Choose L-threonate if your mind is the thing that will not switch off, and citrate if you are constipated too. Whatever you pick, read the label for elemental magnesium, start low, give it a couple of weeks, and loop in your doctor if your sleep or anxiety is a persistent problem.

VS
Reviewed for accuracy by
Vladimir Salamakha

B.S. in Chemistry, University of South Florida · a formulation scientist with 15 years developing compliant, evidence-based products across nutritional supplements and personal care. More about the author →

A quick note This article is general information, not medical advice. Supplements can support good sleep and a calmer baseline, but they are not a substitute for diagnosis or treatment. Talk to your doctor or pharmacist before starting magnesium if you have a health condition, take medications, or have reduced kidney function.
Sources
Schuster J et al. Magnesium glycinate and sleep quality, randomized trial, 2025. · Abbasi B et al. The effect of magnesium supplementation on primary insomnia in elderly. J Res Med Sci, 2012. · Hausenblas HA et al. Magnesium-L-threonate, sleep, and cognition, randomized trial, 2024. · National Institutes of Health, Office of Dietary Supplements, Magnesium Fact Sheet (RDA and upper limit). · Sleep Foundation, "Magnesium and Sleep."