Can Magnesium Supplementation Help You Sleep Better?

Leafy greens growing in a field.

Leafy greens are rich in magnesium.

A 4 minute read

Here’s What You Need to Know About Magnesium and Sleep

Most of my clients are seeking a better nights sleep and they frequently ask me about magnesium supplementation.

Magnesium may promote better sleep—but it’s not a sleeping pill.

Magnesium is very important to overall health because it is involved in more than 300 metabolic processes throughout your body. It supports healthy muscles, nerves, energy production, heart function, and yes, restful sleep. The challenge is that many people don’t get enough magnesium from their diet, which may contribute to symptoms like muscle cramps, fatigue, and difficulty sleeping.

Why Magnesium May Support Better Sleep

Magnesium helps regulate the nervous system and supports the body’s natural ability to relax. It also plays a role in the production and function of neurotransmitters involved in sleep. If you’re deficient in magnesium, restoring healthy levels may make it easier for your body to wind down at night.

If your sleep is being disrupted by stress, inconsistent bedtimes, late-night screen use, or untreated medical conditions, a supplement alone won’t solve the problem.

Think of magnesium as one piece of a healthy sleep routine—not the entire solution.

Are You Getting Enough Magnesium?

Many Americans fall short of the recommended daily intake. Highly processed diets, certain medications, and some health conditions can all make it harder to maintain healthy magnesium levels.

Common signs of low magnesium include:

·         Trouble falling or staying asleep

·         Muscle cramps or twitching

·         Fatigue

·         Headaches

·         Feeling anxious or irritable

These symptoms can have many causes, so it’s always worth discussing ongoing concerns with your healthcare provider.

My Clients Know I Start With Food

Before reaching for a supplement, look at your plate. Some of the best magnesium-rich foods include:

·         Spinach and other leafy greens

·         Pumpkin seeds and almonds

·         Black beans and lentils

·         Brown rice and quinoa

·         Avocados

·         Dark chocolate

Small changes—like adding spinach to breakfast or snacking on a handful of pumpkin seeds—can make a meaningful difference over time.

If you would like to discuss eating a better diet to promote sleep or are considering magnesium supplementation, I can help.

Book a free discovery call here.

Which Magnesium Supplement Is Best for Sleep?

The supplement aisles are full of magnesium supplements, ignore most of them. Two forms stand out and are the ones I recommend to some patients:

Magnesium glycinate is well absorbed, gentle on the stomach, and commonly recommended for relaxation and sleep.

Magnesium L-threonate has emerging research suggesting it may improve sleep quality while also supporting brain health.

If your goal is simply better sleep, magnesium glycinate is often the best place to start because it’s affordable, widely available, and well tolerated.

A Better Night’s Sleep Starts with Good Habits

Even the best supplement works better alongside healthy sleep habits. Magnesium can support these habits—but it works best as part of an overall approach to healthy sleep. See my blogs on sleep here and here.

·         Keep a consistent bedtime.

·         Dim lights and limit screens before bed.

·         Avoid heavy meals and alcohol late in the evening.

·         Create a cool, quiet, comfortable sleep environment.

·         Get regular physical activity during the day.

Personally, I have found that eating very light in the afternoon and evening contribute to a much better nights sleep.

The Bottom Line

If you’re struggling with occasional poor sleep, making sure you’re getting enough magnesium is a smart place to start. Focus on magnesium-rich foods first, consider a supplement if needed, and remember that better sleep usually comes from several small habits working together.

Sometimes the simplest changes—eating well, keeping a consistent bedtime, giving your body the nutrients it needs and avoiding screens an hour before bedtime- make the biggest difference in achieving a good nights sleep.

 References

  1. National Institutes of Health, Office of Dietary Supplements. Magnesium Fact Sheet for Health Professionals. Updated June 2, 2025. Available at: https://ods.od.nih.gov/factsheets/Magnesium-HealthProfessional/

  2. Harvard T.H. Chan School of Public Health. Magnesium. The Nutrition Source. Updated October 21, 2019. https://nutritionsource.hsph.harvard.edu/magnesium/

  3. Jiao K, Costello R, Gahche J, Rosanoff A, Wallace TC. Serum magnesium levels in the United States—an updated population reference interval in children and adults.The Journal of Nutrition. 2026. doi:10.1016/j.tjnut.2026.101539

  4. Mayo Clinic Press. Magnesium glycinate: Is this supplement helpful for you? Published February 7, 2024. https://mcpress.mayoclinic.org/nutrition-fitness/magnesium-glycinate-is-this-supplement-helpful-for-you/

  5. Hausenblas HA, Lynch T, Hooper S, et al. 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. doi:10.1016/j.sleepx.2024.100121

  6. 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.

  7. National Sleep Foundation. Sleep Hygiene Tips.https://

Barbara Barrett

Private practice in Functional Nutrition

http://barbarabarrettrd.com
Next
Next

Spring-Clean Your Eating Routine