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:
- It helps regulate the nervous system. Magnesium dampens NMDA receptors (which respond to the excitatory neurotransmitter glutamate) and supports GABA, the main calming neurotransmitter. In plain terms, it helps turn down the "on" signals and turn up the "off" ones.
- It buffers the stress response. Magnesium is involved in the HPA axis, the system that controls cortisol, so running low can leave the stress response more reactive than it needs to be.
- It supports melatonin. Your body uses magnesium to make and regulate melatonin, the hormone that sets your sleep timing.
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
| Form | Best for | Evening dose (elemental) | Main downside |
|---|---|---|---|
| Glycinate | Sleep and general anxiety | 100 to 400 mg | None notable; check the elemental amount |
| L-threonate | A racing, busy brain | ~140 mg (1 to 2 g of the compound) | Expensive; newer evidence |
| Citrate | Sleep plus constipation | 100 to 200 mg | Laxative effect (loose stools) |
| Oxide | Skip for this purpose | n/a | Poorly 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:
- Magnesium malate: well absorbed and gentle, more often suggested for daytime energy and muscle aches than for sleep.
- Magnesium taurate: bound to taurine, which is calming and supports heart and blood-pressure health. A reasonable alternative to glycinate for calm.
- Magnesium oxide: cheap and everywhere, but poorly absorbed and mostly a laxative. Not the one for sleep.
- Magnesium chloride: well absorbed, sometimes used on the skin. Fine, but nothing special for sleep.
- Magnesium sulfate (Epsom salt): lovely for a relaxing bath, but soaking does not meaningfully raise your magnesium levels, so it is not a substitute for taking it by mouth.
How much, and when to take it
- Read for elemental magnesium, not the compound. This is the single most common mistake. A capsule labeled "500 mg magnesium glycinate" may contain only about 70 mg of actual (elemental) magnesium. The number that matters for dosing is the elemental amount, listed in the supplement facts.
- Aim for a sensible total. The recommended daily intake for adults is roughly 310 to 420 mg from all sources. The upper limit for supplemental magnesium (on top of food) is 350 mg per day of elemental magnesium, set mainly to avoid diarrhea. Most sleep doses sit comfortably under that.
- Take it in the evening. For sleep, an hour or two before bed is typical. Start low and build up so your gut can adjust.
- Be consistent. Magnesium is not a knockout pill. The benefits build over days to weeks, and they are most noticeable if you were low to begin with.
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:
- Too much causes diarrhea. That is the body's main way of dumping the excess, and it is the most common side effect, especially with citrate or oxide.
- Kidney disease changes the rules. Your kidneys clear magnesium, so if they do not work well it can build up. Anyone with reduced kidney function should only take magnesium under medical supervision.
- It can interact with medications. Magnesium can reduce the absorption of certain antibiotics and bisphosphonates (osteoporosis drugs), so take them a few hours apart. Check with a pharmacist if you take regular medications.
- Persistent symptoms deserve a real look. Magnesium can support good sleep and a calmer baseline, but ongoing insomnia or anxiety is worth evaluating with a clinician, not just a supplement.
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.