One study of older adults with insomnia found that magnesium supplementation at a dose of 500 milligrams daily for eight weeks helped them fall asleep faster, stay asleep longer, reduced nighttime awakenings, and increased their levels of naturally circulating melatonin.
How Magnesium Can Help You Sleep Written by Jay Summer, Staff Writer Jay Summer Staff Writer Jay Summer is a health content writer and editor. She holds a B.S. in psychology and master's degrees in writing and public policy. Read Full Bio Want to read more about all our experts in the field? Learn About The Editorial Team Medically Reviewed by Jenny Iyo, Physical Therapist Jenny Iyo Physical Therapist Dr. Iyo is a Doctor of Physical Therapy at an orthopedic clinic in Seattle. She specializes in hands-on therapy and tailored exercise programs. Read Full Bio Want to read more about all our experts in the field? Learn About The Editorial Team Fact Checked Learn More Sleep Foundation Fact-Checking: Our Process At Sleep Foundation, we personally test every product featured in our reviews and guides. This hands-on approach allows us to provide accurate, data-driven recommendations for mattresses, pillows, sheets, and other sleep essentials. Guidelines for our testing methodology are as follows: We only cite reputable sources when researching our guides and articles. These include peer-reviewed journals, government reports, academic and medical associations, and interviews with credentialed medical experts and practitioners.
All scientific data and information must be backed up by at least one reputable source. Each guide and article includes a comprehensive bibliography with full citations and links to the original sources.
Some guides and articles feature links to other relevant Sleep Foundation pages. These internal links are intended to improve ease of navigation across the site, and are never used as original sources for scientific data or information.
A member of our medical expert team provides a final review of the content and sources cited for every guide, article, and product review concerning medical- and health-related topics. Inaccurate or unverifiable information will be removed prior to publication.
Plagiarism is never tolerated. Writers and editors caught stealing content or improperly citing sources are immediately terminated, and we will work to rectify the situation with the original publisher(s)
Although Sleep Foundation maintains affiliate partnerships with brands and e-commerce portals, these relationships never have any bearing on our product reviews or recommendations. Read our full Advertising Disclosure for more information. Our team of writers, editors, and medical experts rigorously evaluates each article to ensure the information is accurate and exclusively cites reputable sources. We regularly assess how the content in this article aligns with current scientific literature and expert recommendations in order to provide the most up-to-date research.
Medical Disclaimer: The content on this page should not be taken as medical advice or used as a recommendation for any specific treatment or medication. Always consult your doctor before taking a new medication or changing your current treatment.
Magnesium is a mineral that is essential for processes throughout the body Trusted Source Medline Plus MedlinePlus is an online health information resource for patients and their families and friends. See Full Reference , including communication between cells in the nervous system. Sleep is largely controlled by the nervous system, and experts believe that nutrients like magnesium may play a role in sleep health. However, the exact relationship between magnesium and sleep is still being studied.
Despite the unclear relationship between magnesium and sleep, there have been encouraging studies showing that magnesium supplements may improve sleep quality, sleep duration, and benefit people with sleep disorders like insomnia and restless legs syndrome. Future research may clarify the effects of magnesium on sleep as well as the role of magnesium supplements in promoting sleep health.
What is Magnesium?
Magnesium is one of several electrolytes Trusted Source National Library of Medicine, Biotech Information The National Center for Biotechnology Information advances science and health by providing access to biomedical and genomic information. See Full Reference in the body. Electrolytes are minerals that the body needs to function properly. Magnesium plays essential roles Trusted Source National Institutes of Health (NIH) The NIH, a part of the U.S. Department of Health and Human Services, is the nation’s medical research agency — making important discoveries that improve health and save lives. See Full Reference in the production of proteins, bone, and DNA. Magnesium is also important for maintaining blood sugar, blood pressure, and regulating activity in the muscles, nerves, and cardiovascular system.
Magnesium in the body typically comes from a person’s diet Trusted Source Merck Manual First published in 1899 as a small reference book for physicians and pharmacists, the Manual grew in size and scope to become one of the most widely used comprehensive medical resources for professionals and consumers. See Full Reference . Additional sources of magnesium include dietary supplements and medicines, including laxatives and over-the-counter remedies for heartburn and indigestion.
Although many people’s diets don’t consistently provide enough magnesium, most people are able to keep the level of magnesium in their body within normal limits Trusted Source National Library of Medicine, Biotech Information The National Center for Biotechnology Information advances science and health by providing access to biomedical and genomic information. See Full Reference . The kidneys and other tissues normally release excess magnesium into the urine and, in times of low magnesium intake, these tissues can conserve magnesium by reducing the amount that is excreted.
Because much of the body’s magnesium is stored within other tissues, it can be difficult to measure the level of magnesium in a person’s blood. But a blood test for magnesium can help doctors determine if magnesium levels are dangerously low or high Trusted Source Merck Manual First published in 1899 as a small reference book for physicians and pharmacists, the Manual grew in size and scope to become one of the most widely used comprehensive medical resources for professionals and consumers. See Full Reference .
Will I lose progress if I have a cheat day?
1. Will a cheat meal ruin my progress? Lets start out plain and simple, a cheat meal will NOT ruin your progress, assuming all else is right with...
Having abnormally low or high magnesium levels is uncommon in the general population. Very low magnesium levels can happen in people with low dietary intake of magnesium, those with long-term excessive use of alcohol, and in people taking certain medications. Symptoms of abnormally low levels of magnesium include :
Weakness
Muscle spasms
Abnormal heart rhythms
Nausea and vomiting
Sleepiness
Personality changes
Seizures
People at higher risk for elevated levels of magnesium include those with kidney failure, which prevents the body from properly filtering out and releasing excess magnesium.
Foods with Magnesium
The Recommended Dietary Allowances for magnesium varies depending on age, sex, pregnancy, and whether a person is breastfeeding. For healthy adults over 18 years of age, experts recommend a daily magnesium intake between 310 and 420 milligrams Trusted Source National Institutes of Health (NIH) The NIH, a part of the U.S. Department of Health and Human Services, is the nation’s medical research agency — making important discoveries that improve health and save lives. See Full Reference .
There are many ways to get adequate magnesium in the diet. Some examples of foods rich in magnesium include:
Green leafy vegetables
Fish
Legumes
Whole grains
Pumpkin seeds
Chia seeds
Almonds
Cashews
Fortified breakfast cereals
Soy and soymilk
How Magnesium Impacts Sleep
Magnesium is included in a variety of nutritional supplements and natural sleep aids. Despite claims that magnesium can improve sleep, few studies have investigated this link. Researchers hypothesize that magnesium may relax the central nervous system and cause chemical reactions Trusted Source National Library of Medicine, Biotech Information The National Center for Biotechnology Information advances science and health by providing access to biomedical and genomic information. See Full Reference in the body that increase sleepiness.
Studies suggest that magnesium supplements might help to reverse age-related changes in sleep often seen in older adults. Healthy magnesium levels may have an important role in the development of baby and infant sleep cycles. In contrast, low magnesium could be associated with poor sleep quality.
Magnesium and Insomnia
Insomnia is impaired sleep that causes fatigue and daytime sleepiness. Insomnia can also lead to struggles with memory, mental health concerns, and a higher risk for accidents. Thus, people with insomnia may turn to supplements like magnesium to help with sleep.
Research is not clear on the role of magnesium supplements in the treatment of insomnia. However, some studies have shown encouraging findings Trusted Source National Library of Medicine, Biotech Information The National Center for Biotechnology Information advances science and health by providing access to biomedical and genomic information. See Full Reference . One study of older adults with insomnia found that magnesium supplementation at a dose of 500 milligrams daily for eight weeks helped them fall asleep faster, stay asleep longer, reduced nighttime awakenings, and increased their levels of naturally circulating melatonin.
There have also been studies combining magnesium with other supplements that have shown promising results Trusted Source National Library of Medicine, Biotech Information The National Center for Biotechnology Information advances science and health by providing access to biomedical and genomic information. See Full Reference for treating insomnia. Yet, because the supplements in these studies contained more than just magnesium, it is difficult to interpret whether the benefits were linked to magnesium, to the other supplements, or to the combination.
Magnesium and Restless Legs Syndrome
Restless legs syndrome is a sleep-related movement disorder that creates an irritating urge to move the legs. The exact cause of this condition remains unclear, but some researchers suggest that magnesium deficiency may play a role in the condition’s development.
Studies have not demonstrated Trusted Source National Library of Medicine, Biotech Information The National Center for Biotechnology Information advances science and health by providing access to biomedical and genomic information. See Full Reference a clear relationship between magnesium levels and restless legs syndrome in the general population. However, there is some evidence that magnesium may play a role in restless legs syndrome that develops during pregnancy Trusted Source National Library of Medicine, Biotech Information The National Center for Biotechnology Information advances science and health by providing access to biomedical and genomic information. See Full Reference or while receiving dialysis Trusted Source National Library of Medicine, Biotech Information The National Center for Biotechnology Information advances science and health by providing access to biomedical and genomic information. See Full Reference .
Researchers have also investigated whether magnesium supplementation can reduce the symptoms of restless legs syndrome. Results of these studies are contradictory Trusted Source National Library of Medicine, Biotech Information The National Center for Biotechnology Information advances science and health by providing access to biomedical and genomic information. See Full Reference . Some have found that magnesium supplementation may be helpful to reduce symptoms in people with restless legs syndrome. But a more recent study of people with many types of cramps, including restless legs syndrome, found no benefit from Trusted Source National Library of Medicine, Biotech Information The National Center for Biotechnology Information advances science and health by providing access to biomedical and genomic information. See Full Reference magnesium supplementation.
Is ketosis better than fasting?
What do the experts say? Like intermittent fasting, weight loss with keto is likely a result of eating fewer calories than you burn, with keto...
Supplemental magnesium may be recommended by a doctor for people with conditions that cause a magnesium deficiency. Magnesium may be given to people who have certain health conditions such as :
Diarrhea
Pancreatitis
Uncontrolled diabetes
There’s some evidence showing that magnesium supplements may benefit people with certain chronic conditions Trusted Source National Library of Medicine, Biotech Information The National Center for Biotechnology Information advances science and health by providing access to biomedical and genomic information. See Full Reference like migraine headaches, high blood pressure, and osteoporosis. But more research is needed to determine how helpful magnesium is in managing these conditions.
Magnesium supplements may also be recommended for people taking medications that can lower magnesium levels, including proton pump inhibitors, diuretics, antibiotics, and some medications used to treat cancer.
Risks of Magnesium
In most cases, magnesium supplements are safe. A dangerously high level of magnesium is rare in otherwise healthy people unless they take a very high dose of magnesium.
Symptoms of magnesium toxicity can range from mild to severe, and vary depending on a person’s magnesium level. Symptoms of excessive magnesium include:
Nausea
Headache
Drowsiness
Low blood pressure
Muscle paralysis
Cardiac arrest
Magnesium is also included in over-the-counter products such as Epsom salts, antacids, or laxatives. The risk of magnesium toxicity from using these products is higher in people who have impaired kidney function. Other risk factors for magnesium toxicity include conditions that increase the absorption of nutrients, such as colitis, gastritis or gastric ulcer disease.
Magnesium vs. Melatonin
Melatonin and magnesium supplements are both used to improve sleep, but they work in different ways in the body. Melatonin is a sleep hormone that the pineal gland in the brain produces when the time to sleep is approaching. Experts note that adding supplemental melatonin may help people fall asleep but may be less helpful for staying asleep all night.
Magnesium may help to quiet the nerves in the body that keep people awake. However, while experts recommend melatonin for treating some sleep disorders, magnesium may not be something that a doctor recommends unless a person has another reason to take it, such as evidence of low magnesium levels.
How to Use Magnesium for Sleep
Overall, the evidence for magnesium on insomnia and other sleep disorders remains mixed. However, some evidence shows that otherwise healthy people may benefit from low doses of oral magnesium supplements to help improve symptoms of insomnia. Research suggests doses of up to one gram of magnesium should be taken no more than three times daily.
While magnesium supplements are generally considered safe, there are some people who are at a higher risk for magnesium toxicity or harmful drug interactions. Therefore, before purchasing a magnesium supplement, talk to a health care provider first to find out if taking magnesium is safe and warranted.
If you're ready for more ⟶ sign up to receive our email newsletter! Your privacy is important to us. Thanks for the feedback - we're glad you found our work instructive! Was this article helpful? Yes No Thanks for the feedback - we're glad you found our work instructive! Submitting your Answer...
About Our Editorial Team Jay Summer Staff Writer Jay Summer is a health content writer and editor. She holds a B.S. in psychology and master's degrees in writing and public policy. Jenny Iyo Physical Therapist DPT Dr. Iyo is a Doctor of Physical Therapy at an orthopedic clinic in Seattle. She specializes in hands-on therapy and tailored exercise programs.