Magnesium for Sleep


Written by Dr. Michael Breus

Our Editorial Process

Medical Disclaimer: The following content should not be used as medical advice or as a recommendation for any specific supplement or medication. It is important to consult your health care provider prior to starting a new medication or altering your current dosage.

Table of Contents

I talk often with my patients about the importance of magnesium, and it’s critical—and sometimes under-recognized—role in sleep and overall health. I’ve seen many patients benefit from increasing their magnesium intake, through diet and supplements. It’s not uncommon for people, especially women, to have less-than-optimal magnesium levels.

Because magnesium plays such a widespread, critical role in the body—it’s one of the 24 essential vitamins and minerals—low magnesium levels can throw many of the body’s functions off course, and raise risks for chronic health problems.

Few dietary elements have more influence over the body than magnesium. Let’s take a closer look at how maintaining magnesium levels can benefit your sleep, as well as your mental and physical well being.

Key Takeaways


    • A magnesium deficiency can affect energy production and stress control.
    • Add magnesium to your diet with supplements, vegetables, seeds, nuts, and legumes.
    • Magnesium may improve sleep, stabilize mood, regulate muscle function, and reduce pain.

What Is Magnesium?

Magnesium is an essential mineral, one of seven essential macro-minerals that the human body needs in large quantities. The body does not produce magnesium. The magnesium your body needs must come from outside sources. You receive magnesium through your diet. Magnesium-rich foods include:

  • Dark leafy greens
  • Seeds and nuts, including sunflower and sesame seeds, cashews and almonds
  • Squash, broccoli, and other vegetables
  • Legumes
  • Dairy products
  • Meat
  • Unprocessed whole grains
  • Chocolate
  • Coffee

Magnesium deficiency is common among adults. Estimates suggest nearly half of adult men and women in the United States aren’t getting enough magnesium. Older adults are more vulnerable to magnesium deficiency. Women are also at higher risk for low magnesium, especially with age. Magnesium supplements can also be a very quick, easy and effective source of magnesium.

How Does Magnesium Work?

Magnesium plays a widespread role in the human body, helping regulate and facilitate many essential functions. One of magnesium’s most important roles is as an enabler of healthy enzyme function. Magnesium is involved in more than 300 different enzyme-related reactions in the body’s cells, in addition to other processes:

  • Plays a key role in energy production, activating ATP, the energy molecule that fuels your body’s cells
  • Regulates transport of calcium, potassium, and other essential minerals, helping muscles and nerves function properly, and maintaining heart rhythm
  • Regulates blood pressure, cholesterol production, and blood glucose levels
  • Aids bone development and guards against bone loss
  • Functions as an electrolyte, maintaining fluid balance in your body
  • Helps control your body’s stress-response system, and hormones that elevate or diminish stress

Benefits of Magnesium

Healthy magnesium levels promote better sleep, stabilize mood, keep stress in check, protect metabolic health, and contribute to heart and bone health.

Better Sleep

Insomnia is a common symptom of magnesium deficiency. People with low magnesium often experience restless sleep, waking frequently during the night. Maintaining healthy magnesium levels often leads to deeper, more sound sleep. Magnesium plays a role in supporting deep, restorative sleep by maintaining healthy levels of GABA, a neurotransmitter that promotes sleep. Research indicates supplemental magnesium can improve sleep quality, especially in people with poor sleep. Magnesium can also help insomnia that’s linked to the sleep disorder restless-leg syndrome.

Stress Reduction and Mood Stabilization

Magnesium increases GABA, which encourages relaxation as well as sleep. Low GABA levels in the body can make it difficult to relax. Magnesium also plays a key role in regulating the body’s stress-response system. Magnesium deficiency is associated with heightened stress and anxiety. Recent research indicates that magnesium deficiency can negatively affect gut health and is linked to anxiety behaviors.

Supplemental magnesium has been shown to have a stabilizing effect on mood. This essential mineral has been demonstrated effective in relieving symptoms of both mild-to-moderate anxiety and mild-to-moderate depression.

Bone Health

Magnesium plays a critical role in bone formation, and in maintaining bone density. It helps the body effectively use the building blocks of strong bones, including the nutrients calcium and Vitamin D. The role of magnesium to bone health becomes increasingly clear with age. Higher magnesium intake is linked to greater bone density in older men and women. In postmenopausal women, magnesium has been shown to improve bone mass.

Cardiovascular Health

One of magnesium’s most important jobs is to regulate muscle function throughout the body—and that includes the heart muscle. In the body, magnesium helps the heart maintain a healthy rhythm. It also helps regulate blood pressure and the production of cholesterol. High dietary magnesium intake is linked to significantly reduced mortality in people who are at high risk for cardiovascular disease.

Magnesium deficiency is linked to unhealthful inflammation, and elevated inflammatory markers, including C-reactive protein, or CRP. Studies show adults who don’t get sufficient magnesium are more likely to have higher levels of CRP, a risk factor for cardiovascular disease.

In people with hypertension, supplemental magnesium can lower blood pressure, according to research. Magnesium is an effective blood-pressure reducer in healthy adults with high blood pressure, and in adults who have hypertension and diabetes.

Metabolic Health

Magnesium has an important function in regulating blood sugar, and in metabolizing glucose in the body. Higher magnesium levels are associated with lower risk for type 2 diabetes. Low magnesium levels in the body are linked to insulin resistance. Among people with type 2 diabetes, 25-38 percent are also deficient in magnesium, according to research.

Research shows supplemental magnesium can improve insulin sensitivity in people with diabetes who have a magnesium deficiency. One study showed that in pre-diabetics without a magnesium deficiency, supplemental magnesium reduces blood glucose levels.

People whose magnesium intake is high have a lower risk for metabolic syndrome, a group of conditions that increase risk for diabetes and cardiovascular disease.

Magnesium is an essential macro-mineral that plays a role in several body functions, including sleep. Since the body does not produce magnesium on its own, you must find ways to add magnesium to your diet.
Dr. Michael Breus

Pain Relief

Research indicates supplemental magnesium may help reduce pain intensity and improve mobility for people with chronic lower back pain. Supplemental magnesium may also help improve headache pain, including for migraines.

Low magnesium appears to make fibromyalgia symptoms worse. Research suggests supplemental magnesium can improve pain and tender points (as well as depression) in people with fibromyalgia.

Help with PMS

Research indicates magnesium can reduce premenstrual symptoms, including mood swings, irritability, anxiety and tension, and bloating.

ADHD Symptoms

Research indicates children with ADHD often have low magnesium levels, at significantly higher rates than children in the general population. Low magnesium in children has been linked to impulsivity, inattention, and hyperactive behavior. Studies suggest supplemental magnesium may reduce hyperactivity and improve cognitive function in children with ADHD.

Athletic Performance

Magnesium plays a major role in muscle health and energy production. What can it do for physical performance? Some research indicates supplemental magnesium can reduce the stress response to exertion and increase red blood cells and hemoglobin in athletes. In one study of triathletes, taking magnesium supplements was associated with faster start times in swimming, cycling, and running. In people who are sleep deprived, magnesium improves exercise tolerance, according to research.

Magnesium: What to Know

Magnesium Dosing

Based on amounts that have been investigated in scientific studies, experts generally recommend taking 100-350 mg daily. In general, it is recommended that users begin with the lowest suggested dose, and gradually increase as needed. Individual dosing will vary, and can vary widely depending on an individual’s magnesium levels.

Always consult your doctor before you begin taking a supplement or make any changes to your existing medication and supplement routine.

Possible Side Effects of Magnesium

Magnesium is generally well tolerated by healthy adults. Possible side effects include bloating, diarrhea, upset stomach, nausea, vomiting.

Very large doses of magnesium can cause serious side effects, including: low blood pressure, irregular heartbeat, mental confusion, changes to breathing, coma, and death.

The following people should consult with a physician before using a magnesium supplement:

  • Women who are pregnant or breast feeding
  • People with bleeding disorders
  • People with heart block
  • People with kidney problems

There are also conditions associated with higher risks for magnesium deficiency, including:

  • Alcoholism
  • Inflammatory bowel disease
  • Diabetes that is not well controlled
  • Stomach infections
  • Immune conditions

Magnesium Interactions

These are commonly used medications and supplements that have scientifically-identified interactions with magnesium. People who take these or any other medications and supplements should consult with a physician before beginning to use magnesium as a supplement:

  • Antacids
  • Antibiotics
  • Anticoagulant medications
  • Biphosphonates (medications that treat bone density)
  • Boron supplements
  • Calcium supplements
  • Digoxin (a medication that treats atrial fibrillation)
  • Gabapentin
  • Medications for diabetes and high blood pressure
  • Muscle relaxants
  • Vitamin D supplements
  • Water pills
  • Zinc supplements

Magnesium is an essential, whole-health mineral, key to helping the body run well, both sleeping and waking. Paying attention to magnesium in your diet—and considering magnesium supplement to support healthy levels—are ways to ensure you get all this protective and therapeutic benefits magnesium offers.

About The Author

Dr. Michael Breus

Clinical Psychologist, Sleep Medicine Expert

Michael Breus, Ph.D is a Diplomate of the American Board of Sleep Medicine and a Fellow of The American Academy of Sleep Medicine and one of only 168 psychologists to pass the Sleep Medical Specialty Board without going to medical school. He holds a BA in Psychology from Skidmore College, and PhD in Clinical Psychology from The University of Georgia. Dr. Breus has been in private practice as a sleep doctor for nearly 25 years. Dr. Breus is a sought after lecturer and his knowledge is shared daily in major national media worldwide including Today, Dr. Oz, Oprah, and for fourteen years as the sleep expert on WebMD. Dr. Breus is also the bestselling author of The Power of When, The Sleep Doctor’s Diet Plan, Good Night!, and Energize!

  • POSITION: Combination Sleeper
  • TEMPERATURE: Hot Sleeper

Ask the Sleep Doctor

Have questions about sleep? Submit them here! We use your questions to help us decide topics for articles, videos, and newsletters. We try to answer as many questions as possible. You can also send us an emailPlease note, we cannot provide specific medical advice, and always recommend you contact your doctor for any medical matters.