Our Services
Medical Information
Helpful Resources
Published on: 9/17/2026
Most adults who take magnesium glycinate for sleep use 200 mg to 400 mg of elemental magnesium about 30 to 60 minutes before bed, though some people respond well to lower doses near 100 mg to 200 mg. The right amount depends on your age, kidney function, dietary magnesium intake, medications, and whether your sleep trouble stems from stress, restless legs, cramps, or another underlying cause, so see below for the full details before choosing a dose. Taking too much can cause loose stools, nausea, or low blood pressure, and magnesium can interact with antibiotics, diuretics, and heart medications, which are important cautions covered below. Because ongoing insomnia is often a signal of something else, such as thyroid problems, sleep apnea, anemia, anxiety, or hormonal shifts, a supplement alone may not resolve it. Take a free, instant, online symptom check to see what may be driving your sleep problems and get clear guidance on your next steps.
Last reviewed for medical accuracy: 09/17/2026
Magnesium is an essential mineral that supports hundreds of biochemical reactions in the body. In recent years, magnesium for sleep and anxiety has gained attention for its calming effect on the nervous system and its potential to improve sleep quality. Of all magnesium forms, magnesium glycinate is prized for its high absorption rate and gentle impact on the digestive tract. This guide reviews credible sources to help you determine a safe, effective bedtime dose.
Always check the label for elemental magnesium. If a label lists “200 mg magnesium glycinate,” confirm whether that’s 200 mg of the salt or 200 mg of elemental magnesium.
• Start Low: 100–150 mg elemental magnesium about 30–60 minutes before bed.
• Adjust Gradually: If tolerated, increase by 50–100 mg every 3–5 nights, up to 300–350 mg elemental.
• Maximum: Do not exceed 350 mg elemental from supplements in one day, unless under medical supervision.
Example:
In people with mild insomnia or elevated anxiety, nightly magnesium supplementation has reduced complaints of restlessness and improved overall sleep satisfaction.
Magnesium glycinate is generally well tolerated, but watch for:
• Mild Gastrointestinal Upset
Though less common than with other salts, some may experience bloating or soft stools.
• Excessive Intake
Taking more than 350 mg elemental magnesium daily can cause diarrhea, dehydration, and electrolyte imbalance.
• Medication Interactions
Magnesium can interfere with absorption of certain antibiotics, bisphosphonates, and thyroid medications. Take magnesium at least 2 hours before or after these drugs.
Always read the supplement label and, if you’re on prescription medications, discuss timing and dosage with a healthcare provider.
You might also consider a free, online symptom check, using the doctor approved Ubie Symptom Checker to better understand your sleep or anxiety concerns and get personalized guidance.
Magnesium glycinate can be a simple, low-risk strategy to support sleep and ease mild anxiety. A bedtime dose of 100–350 mg elemental magnesium is generally effective and safe for most adults. Start low, monitor how you feel, and adjust gradually. Remember:
If you experience any severe or concerning symptoms, or if you’re unsure about how magnesium fits into your overall health plan, speak to a doctor right away. Your healthcare provider can review your full medical history, current medications, and tailor recommendations specifically for you.
(References)
* Abbasi B, Kimiagar M, Sadeghniiat K, Shirazi MM, Hedayati M, Rashidkhani B. The effect of magnesium supplementation on primary insomnia in elderly: A double-blind placebo-controlled clinical trial. J Res Med Sci. 2012 Dec;17(12):1161-9. PMID: 23853635; PMCID: PMC3703169.
* Barbagallo M, Veronese N, Dominguez LJ. Magnesium in Aging, Health and Diseases. Nutrients. 2021 Jan 30;13(2). doi: 10.3390/nu13020463. Epub 2021 Jan 30. PMID: 33573164; PMCID: PMC7912123.
* Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: a Systematic Review & Meta-Analysis. BMC Complement Med Ther. 2021 Apr 17;21(1):125. doi: 10.1186/s12906-021-03297-z. Epub 2021 Apr 17. PMID: 33865376; PMCID: PMC8053283.
* Arab A, Rafie N, Amani R, Shirani F. The Role of Magnesium in Sleep Health: a Systematic Review of Available Literature. Biol Trace Elem Res. 2023 Jan;201(1):121-128. doi: 10.1007/s12011-022-03162-1. Epub 2022 Feb 19. PMID: 35184264.
* Metyas C, Aung TT, Cheung J, Joseph M, Ballester AM, Metyas S. Diet and Lifestyle Modifications for Fibromyalgia. Curr Rheumatol Rev. 2024;20(4):405-413. doi: 10.2174/0115733971274700231226075717. PMID: 38279728; PMCID: PMC11107431.
* Rawji A, Peltier MR, Mourtzanakis K, Awan S, Rana J, Pothen NJ, Afzal S. Examining the Effects of Supplemental Magnesium on Self-Reported Anxiety and Sleep Quality: A Systematic Review. Cureus. 2024 Apr;16(4):e59317. doi: 10.7759/cureus.59317. Epub 2024 Apr 29. PMID: 38817505; PMCID: PMC11136869.
* Hausenblas HA, Lynch T, Hooper S, Shrestha A, Rosendale D, Gu J. Magnesium-L-threonate improves sleep quality and daytime functioning in adults with self-reported sleep problems: A randomized controlled trial. Sleep Med X. 2024 Dec 15;8:100121. doi: 10.1016/j.sleepx.2024.100121. Epub 2024 Aug 17. PMID: 39252819; PMCID: PMC11381753.
* Khalid S, Bashir S, Mehboob R, Anwar T, Ali M, Hashim M, Waseem H, Basharat S. Effects of magnesium and potassium supplementation on insomnia and sleep hormones in patients with diabetes mellitus. Front Endocrinol (Lausanne). 2024;15:1370733. doi: 10.3389/fendo.2024.1370733. Epub 2024 Oct 29. PMID: 39534260; PMCID: PMC11554482.
* Moreland P, Gaffney B, Lanham JS. Migraine Headache Prophylaxis. Am Fam Physician. 2025 May;111(5):443-450. PMID: 40378325.
* Ortega RM, Jiménez-Ortega AI, Peral-Suárez Á, Martínez-García RM, González-Rodríguez LG. [Nutrition in improving sleep quality and fighting insomnia]. Nutr Hosp. 2025 Sep 11;42(Spec No1):43-46. doi: 10.20960/nh.06090. PMID: 40728459.
We would love to help them too.
For First Time Users
We provide a database of explanations from real doctors on a range of medical topics. Get started by exploring our library of questions and topics you want to learn more about.
Was this page helpful?
Purpose and positioning of servicesUbie Doctor's Note is a service for informational purposes. The provision of information by physicians, medical professionals, etc. is not a medical treatment. If medical treatment is required, please consult your doctor or medical institution. We strive to provide reliable and accurate information, but we do not guarantee the completeness of the content. If you find any errors in the information, please contact us.