June 29, 2021

Does Magnesium Help You Sleep?

The scoop on magnesium sleep aids

Circular orange pills spilling out of a tipped-over bottle

In the eternal quest for a good night’s sleep, magnesium has gained attention as the latest supplement of note. Could this mineral help you catch some ZZZs?


Cleveland Clinic is a non-profit academic medical center. Advertising on our site helps support our mission. We do not endorse non-Cleveland Clinic products or services. Policy


“Overall, the evidence for magnesium is thin, but some people have found it helps them,” says integrative medicine specialist Naoki Umeda, MD. Here’s what to know about magnesium sleep aids.

What is magnesium?

Magnesium is a nutrient that’s involved in several important bodily functions. It plays a role in muscle and nerve function, is involved in regulating blood pressure and blood sugar, and even helps build bones and DNA.

Some research shows it may also be a better alternative to counting sheep.

“Magnesium may help regulate neurotransmitters that are directly related to sleep,” Dr. Umeda says. Neurotransmitters are chemicals that transmit messages between nerve cells in your brain and body. (It’s important to note that magnesium plays only a supporting role in their function.)

If you eat a balanced diet, you probably get plenty of magnesium. “It’s widely available in both plant and animal foods such as dairy products, leafy greens, nuts, legumes and whole grains,” Dr. Umeda says. “And magnesium deficiency is rare in healthy people.”


However, you may be at risk of magnesium deficiency if you:

  • Are an older adult.
  • Have Type 2 diabetes.
  • Have a gastrointestinal disorder.
  • Have alcohol use disorder.

Magnesium for sleep

Can taking magnesium help you get the rest you crave? Some studies have found that magnesium supplements can:

  • Make it easier to fall asleep.
  • Improve sleep quality.
  • Reduce symptoms of restless legs syndrome, which can interfere with a good night’s sleep.

Sounds great, right? Not so fast. “The studies on sleep and magnesium were all small studies, and the evidence is thin,” Dr. Umeda says.

It’s technically possible for a doctor to test your magnesium levels, but the findings aren’t very beneficial, Dr. Umeda says. Some people with low levels of magnesium sleep just fine, after all, and having it in your system is no guarantee of a sound snooze.

What’s the right magnesium dosage for sleep?

Magnesium supplements are safe, in general, but they could potentially interfere with some medications. Talk to your doctor before adding them to your routine.

If you plan to try magnesium supplements for sleep, look for these products:

  • Magnesium glycinate (200 milligrams).
  • Magnesium citrate (200 milligrams).

Avoid magnesium oxide, which is a stool softener and probably much less helpful for your insomnia.

Dr. Umeda recommends taking the supplement about 30 minutes before bedtime. And don’t take more than the recommended amount. More won’t help you sleep better, but it may cause stomach upset.

While magnesium might improve your slumber, it’s no substitute for a good sleep routine, Dr. Umeda says. “Limit caffeine, create a dark, cool sleeping environment and don’t use a smartphone or other devices before bed,” he says.

Dr. Umeda says there are other supplements he’d recommend first, including melatonin, valerian and chamomile tea. “But if those don’t work,” he says, “it’s worth giving magnesium a try.”

Related Articles

variety of food groups containing manganese and magnesium
November 30, 2023
Manganese vs. Magnesium: Two Important Minerals With Key Differences

They’re both essential minerals but do different jobs in your body

woman eating yogurt with other sources of calcium floating in back
March 21, 2023
Are You Taking Too Many Calcium Supplements?

You want to get enough but avoid hypercalcemia — and protect your heart

Plate with cordyceps.
March 10, 2023
Cordyceps Is a Killer Fungi With Potential Health Benefits

With anti-fatigue, anti-aging and anti-cancer claims, this fungi still needs more studies

The Mullein flower.
December 19, 2022
How Mullein Benefits Your Lungs

For centuries, people have been drinking mullein tea for respiratory conditions

Image of supplements in pill and powder form
December 5, 2022
Diets and Supplements for Teens: What’s Dangerous and What’s Healthy

Steer clear of restrictive trends and supplements; encourage a healthy diet and exercise

anthocyanins in Fruit and Veggies
June 2, 2022
5 Health Benefits of Anthocyanins

Why you should explore the purple end of the food spectrum

sleeping pills on bedside table with clock and glass of water
March 9, 2022
Can Melatonin Really Help You Sleep Better?

Does this supplement help you get more ZZZ's

A person using an eyedropper to squeeze out dark-green chlorophyll drops into a clear liquid
November 23, 2021
Are There Health Benefits to Using Liquid Chlorophyll?

Get the facts about the latest TikTok wellness craze

Trending Topics

group of hands holding different beverages
November 14, 2023
10 Myths About Drinking Alcohol You Should Stop Repeating

Coffee won’t cure a hangover and you definitely shouldn’t mix your cocktail with an energy drink

Person applies moisturizer as part of their skin care routine after a shower.
November 10, 2023
Korean Skin Care Routines: What You Need To Know

Focus on the philosophy — replenishing and respecting your skin — not necessarily the steps

glass of cherry juice with cherries on table
November 8, 2023
Sleepy Girl Mocktail: What’s in It and Does It Really Make You Sleep Better?

This social media sleep hack with tart cherry juice and magnesium could be worth a try