Magnesium, a treatment for leg cramps?

Quinine was once standard for leg cramps but has proved to have too many adverse effects. Is magnesium an option for patients with leg cramps?

Magnesium, a treatment for leg cramps?


Leg cramps are reported in up to 60% of adults and 7% of children.1 They are troublesome and can cause severe pain and sleep disturbance,2 and residual pain sometimes occurs in the affected muscles after cramping.3 Up to 20% of people who complain of leg cramps have symptoms every day which are severe enough to require medical intervention.1 Currently no treatments for leg cramps are proven to be safe and effective1 but there is a clear need for treatment options.

Quinine has been commonly used to treat leg cramps but TGA approval for this indication was withdrawn in 2004 after reports of an increased risk of thrombocytopenia and four associated fatalities in Australia.4

Since magnesium plays a role in neuromuscular transmission and muscle contraction, it has been hypothesised that magnesium deficiency may predispose to muscle cramps.2,5 Thus magnesium supplements are often recommended to prevent cramps. Does the evidence support using magnesium for this indication?


Practice points

  • Differentiating leg cramp from other conditions can be challenging, the term ‘cramp’ can be used to describe a variety of pain types.
  • When taking a medical history, consider factors which may account for leg cramp (peripheral vascular disease or motor neurone disease) as well as drug causes (calcium-channel blockers, angiotensin II-receptor antagonists and diuretics).
  • While magnesium deficiency has been proposed as a cause of leg cramps, there is no evidence that magnesium supplements provide a clinical benefit other than for pregnancy-related leg cramp.
  • Consider the potential for development of hypermagnesaemia in patients taking magnesium supplements, especially in older people and people with kidney disease.
  • Magnesium interacts with bisphosphonates and tetracycline antibiotics and should be taken 2 hours before or after these medicines.
  • Do not prescribe quinine tablets for leg cramps. The efficacy of quinine in preventing cramp is limited and is outweighed by the risk of severe thrombocytopenia, which may be fatal.
  • Consider non-pharmacological interventions for cramps such as stretching.


Diagnosis: focus on treatable causes

Differentiating leg cramps from other conditions in older people can be challenging, the term ‘cramp’ can be used to describe a variety of pain types. Consider other causes such as restless legs syndrome, nocturnal myoclonus, myopathic and neuropathic conditions.3

When taking a patient’s medical history include a review of medicines and medical conditions.1 Consider other factors which may contribute, such as peripheral vascular disease or motor neurone disease. Possible drug causes of cramp include calcium-channel blockers, angiotensin II-receptor antagonists and diuretics.3 Interestingly, the calcium-channel blockers diltiazem and verapamil have been assessed for the treatment of muscle cramp in older people, however the trials were small and of poor quality.6,7

Physical examination rarely identifies leg cramps because they are involuntary, unpredictable, and usually occur at night. But findings on examination may indicate a potential underlying medical cause (i.e.peripheral vascular disease).1,5

There are no routine blood tests recommended for the diagnosis of muscle cramps and there is no proven association with electrolyte abnormalities.8

The third trimester of pregnancy is often associated with leg cramps, although it is difficult to differentiate between pregnancy as the primary cause and venous insufficiency.9 Despite the high incidence of leg cramps in pregnancy, there has been minimal research in this area.


Do not use quinine tablets for leg cramp

Treatment with quinine was common until its withdrawal as an indication in 2004. The withdrawal was a consequence of 198 reports of thrombocytopenia associated with quinine use (since 1972), including four deaths.4 Quinine was withdrawn at a similar time in the US and subsequently, in 2006, the US FDA Federal Register alerted consumers to the problems surrounding off-label use, reporting 665 serious adverse events including 93 deaths since 1969.10 Despite this, off-label use still continues both here4 and overseas.


Magnesium treatment for leg cramps

Evidence is lacking except for pregnancy-associated cramps

The effectiveness and safety of magnesium has been established for eclampsia and pre-eclampsia, arrhythmia, severe asthma, and migraine.11 There is some evidence for efficacy of magnesium supplementation in treatment of leg cramps in pregnant women but not for other people.2,12

A recent systematic review evaluated the effect of magnesium versus placebo for the treatment of nocturnal leg cramps and found the overall effect of magnesium to be insignificant.2 Seven trials were included, one assessed magnesium infusion versus placebo and the rest assessed oral magnesium therapy but dose and frequency of therapy varied between all studies.

A sub-analysis of three of the studies involving only pregnant women showed a significant difference between the magnesium and placebo groups in the median number of leg cramps experienced per week.2 However the studies only contained a small number of participants (n=361 in total and n=198 in the subgroup analysis), and therefore was underpowered to detect meaningful differences between groups. In addition selection bias may have impacted results as participants were included in the analysis whose leg complaints may have been confused with disorders not known to be associated with magnesium deficiency (ie, restless leg syndrome).

Another recent systematic review evaluated a further seven studies in patients with leg cramp treated with magnesium.12 The elemental magnesium dose given varied between studies. The populations included 322 mostly older patients and 202 women with pregnancy-associated leg cramps. After four weeks of treatment, differences in percentage change from baseline of cramps per week between magnesium and placebo groups were small and not statistically significant.

The authors concluded that magnesium is unlikely to provide a meaningful benefit in reducing the frequency or severity of idiopathic leg cramps in older people.12 The second review also included three further studies on pregnant women; while a meta-analysis was not possible with these, results from the individual studies were considered and found to be mixed. One study found magnesium reduced cramp frequency and pain while the other two found no benefit.12 Although two of the studies were similar in design and setting,13,14 their outcomes were different; this may have been because one of the studies lacked baseline measurement of cramp frequency. If cramp frequency before intervention was not comparable between participants in these studies, it is not appropriate to compare the number of cramps experienced during the treatment period.

Oral magnesium supplementation is well tolerated

Both meta-analyses found that magnesium is well tolerated with the most frequent adverse effects affecting the gastrointestinal system (diarrhoea, nausea, vomiting, flatulence and constipation).2,12

Moderate-to-severe and symptomatic hypermagnesaemia is usually due to excessive supplemental intake of magnesium (eg, as antacids, enemas or by intravenous infusion), most often in patients with kidney impairment. Be aware of the most common clinical features of moderate-to-severe hypermagnesaemia which are usually neuromuscular (eg, loss of deep tendon reflexes, muscle paralysis, depressed conscious state and respiratory depression). Other signs include anorexia, nausea, skin flushing, hypotension, bradycardia/heart block and cardiac arrest.15

When considering magnesium supplements, ensure patients take a product containing magnesium only. Some magnesium supplements are combined with potassium and may contribute to hyperkalaemia in people taking ACE inhibitors or other medicines which cause potassium retention.3 Consider assessing kidney function in people using medicines that may impair or adversely affect kidney function16 and watch for signs of toxicity.15


Other therapies

Small studies have shown some benefit from other medications including diltiazem, gabapentin and vitamin B complex but none can be recommended for muscle cramps because of the poor quality of evidence.6,17-19 Multivitamins and sodium supplementation have also shown benefit in preventing cramps in pregnant women, although consider the potential risk of hypertension with sodium supplementation.9 Australian guidelines recommend calcium supplements for leg cramps in pregnant women based on case reports but also highlight there are no controlled trials to support its use.20 Paracetamol may be useful to manage residual muscle pain after cramping.3

Non-pharmacological therapy

Passive stretch and massage of the affected muscle may relieve cramp and stretching the calf muscles daily has been recommended to prevent cramp.21 Although there is no clinical trial evidence to support these measures, anecdotal evidence suggests they may be effective and the risk of adverse effects is low.


Information for patients

Magnesium interacts with other medicines

  • Magnesium significantly reduces the absorption of oral bisphosphonates and tetracycline antibiotics and may reduce their activity.
  • Advise patients to ensure they take these medicines at least 2 hours before or after taking a magnesium supplement.22

Median number of leg cramps experienced per week: Difference = 0.807 (CI 0.015 to 1.207)

Difference in percentage change from baseline of cramps per week: Difference = –3.93% (CI –21.12% to 13.26%) 



  1. Allen RE, Kirby KA. Nocturnal leg cramps. Am Fam Physician 2012;86:350\u20135. [PubMed]
  2. Sebo P, Cerutti B, Haller DM. Effect of magnesium therapy on nocturnal leg cramps: a systematic review of randomized controlled trials with meta-analysis using simulations. Fam Pract 2014;31:7\u201319. [PubMed]
  3. Australian medicines handbook drug choice companion: Aged care: Third Edition. Adelaide: Adelaide: Australian Medicines Handbook Pty Ltd, 2010.
  4. Australian Govenment Department of Health Therapeutic Goods Administration. Medicines safety update 2011 2(4). [Full text] (accessed 21 February 2014).
  5. Bilbey DL, Prabhakaran VM. Muscle cramps and magnesium deficiency: case reports. Can Fam Physician 1996;42:1348\u201351. [PubMed]
  6. Voon WC, Sheu SH. Diltiazem for nocturnal leg cramps. Age Ageing 2001;30:91\u20132. [PubMed]
  7. Baltodano N, Gallo BV, Weidler DJ. Verapamil vs quinine in recumbent nocturnal leg cramps in the elderly. Arch Intern Med 1988;148:1969\u201370. [PubMed]
  8. Schwellnus MP, Nicol J, Laubscher R, et al. Serum electrolyte concentrations and hydration status are not associated with exercise associated muscle cramping (EAMC) in distance runners. Br J Sports Med 2004;38:488\u201392. [PubMed]
  9. Young GL, Jewell D. Interventions for leg cramps in pregnancy. Cochrane Database Syst Rev 2002:CD000121. [PubMed]
  10. U.S. Food and Drug Administration. Questions and Answers about FDA\u2019s Enforcement Action Against Unapproved Quinine Products. 2006. [Full text] (accessed 18 February 2014).
  11. Guerrera MP, Volpe SL, Mao JJ. Therapeutic uses of magnesium. Am Fam Physician 2009;80:157\u201362. [PubMed]
  12. Garrison SR, Allan GM, Sekhon RK, et al. Magnesium for skeletal muscle cramps. Cochrane Database Syst Rev 2012;9:CD009402. [PubMed]
  13. Dahle LO, Berg G, Hammar M, et al. The effect of oral magnesium substitution on pregnancy-induced leg cramps. Am J Obstet Gynecol 1995;173:175\u201380. [PubMed]
  14. Nygaard IH, Valbo A, Pethick SV, et al. Does oral magnesium substitution relieve pregnancy-induced leg cramps? Eur J Obstet Gynecol Reprod Biol 2008;141:23\u20136. [PubMed]
  15. Therapeutic Guidelines. Endocrinology. Version 5 (1), 2013 Melbourne: Therapeutic Guidelines Ltd (accessed 12 December 2013).
  16. Bell JS, Blacker N, Leblanc VT, et al. Prescribing for older people with chronic renal impairment. Aust Fam Physician 2013;42:24\u20138. [PubMed]
  17. Katzberg HD, Khan AH, So YT. Assessment: symptomatic treatment for muscle cramps (an evidence-based review): report of the therapeutics and technology assessment subcommittee of the American academy of neurology. Neurology 2010;74:691\u20136. [PubMed]
  18. Serrao M, Rossi P, Cardinali P, et al. Gabapentin treatment for muscle cramps: an open-label trial. Clin Neuropharmacol 2000;23:45\u20139. [PubMed]
  19. Chan P, Huang TY, Chen YJ, et al. Randomized, double-blind, placebo-controlled study of the safety and efficacy of vitamin B complex in the treatment of nocturnal leg cramps in elderly patients with hypertension. J Clin Pharmacol 1998;38:1151\u20134. [PubMed]
  20. Therapeutic Guidelines. Rheumatology. Version 2, 2010. Melbourne: Therapeutic Guidelines Ltd [Online] (accessed 27 February 2014).
  21. Daniell HW. Simple cure for nocturnal leg cramps. N Engl J Med 1979;301:216. [PubMed] Australian medicines handbook 2013. Adelaide: Australian Medicines Handbook Pty Ltd, 2013.