Our Services
Medical Information
Helpful Resources
Published on: 9/12/2026
Most adults who use magnesium for muscle cramps take roughly 200 to 400 mg of elemental magnesium per day, often as citrate, glycinate, or lactate, since these forms absorb well and cause less diarrhea than oxide. Timing, form, kidney function, medications, and the fact that supplemental magnesium above about 350 mg daily can trigger loose stools all affect the right amount for you, and research results are mixed for cramps in older adults versus pregnancy-related leg cramps, so see below to understand more before choosing a dose.
Cramps can also stem from dehydration, low potassium or calcium, thyroid problems, nerve compression, poor circulation, or side effects of statins and diuretics, which means magnesium alone may not solve the problem. A free, instant online symptom check can help you sort out which of these causes fits your pattern of cramping in just a few minutes. That clarity makes your next step easier, whether that means adjusting your intake, requesting bloodwork, or talking with a clinician about a medication review.
Last reviewed for medical accuracy: 09/11/2026
Muscle cramps can strike at any time—from a late‐night charley horse to post‐workout stiffness. Magnesium plays a key role in muscle relaxation and nerve function, so ensuring you get enough each day may help reduce the frequency and intensity of cramps. Below, we cover:
Magnesium is an essential mineral involved in over 300 biochemical reactions, including:
Low magnesium levels can contribute to involuntary muscle contractions and cramping. While diet should be your first source—think leafy greens, nuts, seeds, whole grains and legumes—supplementation can help if you’re not meeting the recommended amount.
National guidelines focus on total daily intake (food + supplements). Here’s what adults typically need:
| Group | RDA (mg/day of elemental magnesium) |
|---|---|
| Adult men (19–30) | 400 |
| Adult men (31+) | 420 |
| Adult women (19–30) | 310 |
| Adult women (31+) | 320 |
| Pregnant women (19–30) | 350 |
| Pregnant women (31+) | 360 |
| Breastfeeding women (19–30) | 310 |
| Breastfeeding women (31+) | 320 |
If you’re experiencing muscle cramps, some health professionals recommend supplemental doses of 200–400 mg of elemental magnesium per day, on top of what you get from food. Clinical trials for nocturnal leg cramps—and in pregnancy—often use 300 mg daily with improvements in cramp frequency.
Upper intake limit (supplements only): 350 mg/day for adults. Going above this may lead to gastrointestinal side effects like diarrhea.
Not all magnesium supplements are created equal. Bioavailability (how well your body absorbs it) and tolerability vary by form. Here are popular options:
When selecting the best magnesium supplement, consider:
To make the most of your supplement:
While generally safe, magnesium supplements can cause:
If you have:
…talk to your doctor before supplementing.
Medications that can interact with magnesium include:
Always read labels and check with a healthcare professional if you take prescription or over‐the‐counter drugs.
Most mild cramps respond to diet and supplementation. However, see a doctor if you experience:
You might also consider a free, online symptom check, using the doctor approved Ubie Symptom Checker to help narrow down potential causes.
If you suspect a life‐threatening condition—chest pain, difficulty breathing, or sudden paralysis—call emergency services right away.
Always discuss any new supplement plan with a healthcare provider—especially if you have chronic health issues or take multiple medications. If you’re ever in doubt about your symptoms or dosage, speak to a doctor for personalized guidance.
(References)
* Young G. Leg cramps. BMJ Clin Evid. 2009 Mar 26;2009. Epub 2009 Mar 26. PMID: 19445755; PMCID: PMC2907778.
* Guerrera MP, Volpe SL, Mao JJ. Therapeutic uses of magnesium. Am Fam Physician. 2009 Jul 15;80(2):157-62. PMID: 19621856.
* Young G. Leg cramps. BMJ Clin Evid. 2015 May 13;2015. Epub 2015 May 13. PMID: 25970567; PMCID: PMC4429847.
* Pattanittum P, Kunyanone N, Brown J, Sangkomkamhang US, Barnes J, Seyfoddin V, Marjoribanks J. Dietary supplements for dysmenorrhoea. Cochrane Database Syst Rev. 2016 Mar 22;3(3):CD002124. doi: 10.1002/14651858.CD002124.pub2. Epub 2016 Mar 22. PMID: 27000311; PMCID: PMC7387104.
* Magnesium for nocturnal leg cramps. Drug Ther Bull. 2017 May;55(5):52. doi: 10.1136/dtb.2017.5.0475. Epub 2017 May 2. PMID: 28465366.
* Cascella M, Vaqar S. Hypermagnesemia. 2026 Jan. PMID: 31747218.
* Garrison SR, Korownyk CS, Kolber MR, Allan GM, Musini VM, Sekhon RK, Dugré N. Magnesium for skeletal muscle cramps. Cochrane Database Syst Rev. 2020 Sep 21;9(9):CD009402. doi: 10.1002/14651858.CD009402.pub3. Epub 2020 Sep 21. PMID: 32956536; PMCID: PMC8094171.
* Claverie-Martin F, Perdomo-Ramirez A, Garcia-Nieto V. Hereditary kidney diseases associated with hypomagnesemia. Kidney Res Clin Pract. 2021 Dec;40(4):512-526. doi: 10.23876/j.krcp.21.112. Epub 2021 Nov 12. PMID: 34784661; PMCID: PMC8685365.
* Gogna S, Kaur J, Sharma K, Prasad R, Singh J, Bhadariya V, Kumar P, Jarial S. Spirulina- An Edible Cyanobacterium with Potential Therapeutic Health Benefits and Toxicological Consequences. J Am Nutr Assoc. 2023 Aug;42(6):559-572. doi: 10.1080/27697061.2022.2103852. Epub 2022 Aug 2. PMID: 35916491.
* Kaufman N, White D, Bull J, Radi R, DeSanto K. Does Magnesium Supplementation Treat Nocturnal Leg Cramps? Am Fam Physician. 2023 Dec;108(6):619-620. PMID: 38215424.
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.