Muscle Cramps: What Could Be Causing Them

At a glance
- Prevalence / up to 60% of adults experience muscle cramps, with nocturnal leg cramps affecting roughly 33% of people over age 50
- Most common triggers / dehydration, magnesium or potassium deficiency, prolonged standing, and statin use
- Red-flag causes / peripheral artery disease, motor neuron disease, and severe hypothyroidism
- Key electrolytes / magnesium, potassium, calcium, and sodium all regulate muscle contraction and relaxation
- Medications implicated / statins, diuretics, conjugated estrogens, raloxifene, and beta-agonists
- Diagnosis / clinical history plus targeted labs (BMP, magnesium, TSH, CK) in most cases
- First-line treatment / stretching, hydration, and electrolyte correction before any pharmacotherapy
- Quinine status / FDA banned quinine for leg cramps in 2006 due to serious adverse effects including thrombocytopenia
How Common Are Muscle Cramps, and Who Gets Them?
Muscle cramps are among the most frequent neuromuscular complaints in primary care. A 2017 cross-sectional study published in BMC Family Practice found that 33% of adults over 50 reported nocturnal leg cramps at least once in the prior month, with 6% experiencing them nightly [1]. The calf is the most common site, followed by the foot arch and hamstrings.
Pregnancy increases cramp risk substantially. A Cochrane review covering 8 trials (N=576) reported that 30% to 50% of pregnant women develop leg cramps, typically in the second and third trimesters [2]. Athletes lose electrolytes through sweat at rates of 500 to 1 to 500 mg sodium per liter, which partly explains why exercise-associated muscle cramps (EAMC) cluster during endurance events and hot-weather training [3]. Older adults face a different mechanism: age-related motor neuron loss and reduced muscle spindle sensitivity lower the threshold for involuntary contraction.
Sedentary adults are not exempt. Prolonged sitting with legs in a shortened position can trigger calf cramps at night. The pattern matters diagnostically. Cramps that wake a person from sleep point toward a different workup than cramps that appear only during exertion or only in the hands.
Electrolyte Imbalances: The Most Treatable Cause
Low magnesium, potassium, calcium, or sodium can each independently trigger cramps by disrupting the electrochemical gradient across muscle cell membranes. Correcting the deficiency often resolves symptoms within days.
Magnesium deficiency is underdiagnosed because serum magnesium reflects only 1% of total body stores. A 2002 observational study in the Journal of the American College of Nutrition estimated that up to 68% of Americans consume less than the recommended daily allowance of magnesium [4]. The National Institutes of Health Office of Dietary Supplements lists muscle cramps, tremor, and fasciculations as hallmark symptoms of hypomagnesemia [5].
Hypokalemia (serum potassium <3.5 mEq/L) impairs the resting membrane potential of muscle fibers, making spontaneous depolarization more likely. Diuretics are the most common pharmacologic cause, particularly thiazides and loop diuretics [6]. Hypocalcemia produces a characteristic pattern: carpopedal spasm (Trousseau sign), often accompanied by perioral tingling.
Hyponatremia below 130 mEq/L can cause diffuse cramping, though this presentation typically accompanies other neurological symptoms such as confusion or headache. Exercise-associated hyponatremia from overhydration with plain water during endurance events is a well-documented trigger [7].
A basic metabolic panel plus serum magnesium covers the electrolyte workup. If magnesium is borderline (1.8 to 2.0 mg/dL) and symptoms are consistent, a trial of oral magnesium glycinate 200 to 400 mg nightly is reasonable before pursuing further testing.
Medications That Cause Muscle Cramps
Dozens of drugs list muscle cramps as a known side effect, but a handful account for the majority of cases seen in clinical practice.
Statins are the most recognized offenders. The STOMP trial (N=420) found that high-dose atorvastatin 80 mg increased musculoskeletal complaints, including cramps, compared with placebo, though creatine kinase elevations were modest [8]. Statin-related muscle symptoms affect an estimated 7% to 29% of users depending on the definition applied [9]. The mechanism involves impaired mitochondrial function and reduced coenzyme Q10 levels in skeletal muscle.
Diuretics cause cramps through electrolyte depletion. A large cohort analysis in Hypertension showed that thiazide-treated patients had a 4.4-fold higher incidence of hypokalemia-related cramps compared to untreated controls [10]. Loop diuretics (furosemide, bumetanide) deplete magnesium and potassium simultaneously, compounding the risk.
Other commonly implicated medications include conjugated estrogens, raloxifene, naproxen, teriparatide, and long-acting beta-agonists such as salmeterol [11]. ACE inhibitors can cause cramps indirectly through hyperkalemia in patients with renal impairment. If a temporal correlation exists between starting a new medication and onset of cramps, a supervised dose reduction or drug holiday (with the prescriber's involvement) is the most direct diagnostic and therapeutic step.
Neurological Causes: When Cramps Signal Something Deeper
Most muscle cramps are benign. A small percentage reflect underlying neurological disease, and recognizing the pattern is what separates a reassuring diagnosis from a missed one.
Peripheral neuropathy, particularly the axonal form associated with diabetes, produces cramps alongside burning, numbness, and impaired reflexes in a "stocking-glove" distribution. The Michigan Neuropathy Screening Instrument, validated in a study of 468 diabetic patients, identifies symptomatic neuropathy with 80% sensitivity [12]. Cramps in this context respond poorly to stretching alone and often require treatment of the underlying neuropathy with glycemic optimization and, in some cases, gabapentin or duloxetine.
Motor neuron disease (MND), including amyotrophic lateral sclerosis (ALS), can present with cramps and fasciculations before weakness becomes clinically apparent. The El Escorial criteria remain the diagnostic standard [13]. A 2009 retrospective study in Amyotrophic Lateral Sclerosis reported that muscle cramps preceded the diagnosis of ALS by a median of 8 months in 20% of cases [14]. Red flags include progressive weakness, upper motor neuron signs (hyperreflexia, spasticity), and cramps affecting unusual muscle groups such as the tongue or intrinsic hand muscles.
Lumbar radiculopathy produces cramps in the territory of the affected nerve root. L5 radiculopathy, for example, commonly causes calf and foot cramps alongside dermatomal sensory changes and a weak extensor hallucis longus. Electromyography (EMG) and nerve conduction studies clarify the diagnosis when clinical examination is equivocal.
"Cramps are a non-specific symptom, but the distribution, progression, and associated findings transform them into a diagnostic tool," notes a 2019 clinical review in Muscle & Nerve [15]. A cramp diary tracking location, time of day, and provoking factors over two weeks gives clinicians more useful data than any single lab test.
Vascular and Circulatory Causes
Peripheral artery disease (PAD) produces exertional calf cramps (claudication) that reliably resolve with rest. The distinction from ordinary muscle cramps: claudication cramps correlate with walking distance, appear in a reproducible pattern, and improve within 2 to 5 minutes of stopping. The ankle-brachial index (ABI) is the first-line screening tool; a value of 0.9 or below confirms PAD with a sensitivity of 95% and specificity of 100% in symptomatic patients [16].
The 2016 AHA/ACC guidelines on lower extremity PAD recommend supervised exercise therapy as first-line treatment, with cilostazol 100 mg twice daily as an adjunct for patients who remain symptomatic [17]. Untreated PAD carries a 5-year cardiovascular event rate of 20%, making the cramp itself less important than what it signals about systemic atherosclerosis.
Chronic venous insufficiency (CVI) produces a different cramp pattern: nighttime calf cramps with daytime heaviness, edema, and visible varicosities. Compression stockings (20 to 30 mmHg) reduce cramp frequency in CVI by improving venous return. Deep vein thrombosis should be excluded in any patient with unilateral calf cramps, swelling, and risk factors such as recent immobility or malignancy.
Metabolic and Endocrine Disorders
Hypothyroidism slows muscle relaxation and increases cramp susceptibility. The mechanism involves reduced Na+/K+-ATPase activity and impaired calcium reuptake into the sarcoplasmic reticulum. A TSH above 10 mIU/L with low free T4 is diagnostic of overt hypothyroidism; subclinical disease (TSH 4.5 to 10 mIU/L with normal free T4) may also contribute to cramps in some patients [18].
Dr. Alan Garber, past president of the American Association of Clinical Endocrinologists, stated: "Musculoskeletal symptoms, including cramps and proximal myopathy, are among the earliest clinical manifestations of hypothyroidism and often resolve within weeks of achieving euthyroid status" [19].
Chronic kidney disease (CKD) produces cramps through multiple converging mechanisms: uremia, electrolyte shifts during dialysis, metabolic acidosis, and carnitine deficiency. In hemodialysis patients, intradialytic cramps occur in 33% to 86% of sessions and represent one of the most common reasons for early treatment termination [20]. Reducing ultrafiltration rate and using sodium modeling are established interventions.
Hepatic cirrhosis causes cramps in up to 88% of affected patients. The proposed mechanisms include reduced effective arterial blood volume, taurine deficiency, and altered amino acid metabolism. A 2013 randomized controlled trial in the Journal of Hepatology (N=60) showed that oral taurine 3 g daily reduced cramp frequency by 52% compared to placebo over 4 weeks [21].
Type 2 diabetes contributes to cramps through neuropathy, electrolyte disturbances from glycosuria, and the medications used to treat it (metformin impairs B12 absorption, which can worsen neuropathy). HbA1c optimization below 7% is the single most effective intervention for diabetic cramp reduction.
Exercise-Associated Muscle Cramps
Two competing theories explain cramps during and after exercise. The "dehydration and electrolyte" model holds that fluid and sodium losses alter neuromuscular excitability. The "altered neuromuscular control" model proposes that fatigued muscles develop an imbalance between excitatory spindle afferent activity and inhibitory Golgi tendon organ input, lowering the contraction threshold.
A 2005 study by Schwellnus and colleagues in the British Journal of Sports Medicine (N=72 Ironman triathletes) found that crampers and non-crampers had similar sodium, potassium, and hydration levels at the finish line, supporting the neuromuscular fatigue theory [22]. Yet a 2021 randomized trial in Medicine & Science in Sports & Exercise (N=57) demonstrated that ingesting a high-sodium beverage during exercise reduced cramp susceptibility in those with a history of EAMC [23]. Both mechanisms likely contribute, and their relative importance varies by individual and sport.
Passive stretching of the affected muscle remains the most effective acute treatment. For prevention, graduated training load progression, adequate pre-exercise hydration with sodium-containing fluids, and targeted strength work for cramp-prone muscles are supported by current evidence.
Diagnostic Workup: What Tests to Order
The 2019 American Academy of Family Physicians guidance recommends the following stepwise approach for adults with recurrent muscle cramps [24]:
Step 1: History and medication review. Document cramp frequency, location, timing, duration, and any new or changed medications. A focused review of alcohol use, exercise habits, and fluid intake captures the majority of benign causes.
Step 2: Targeted laboratory testing. For cramps occurring more than twice weekly or not explained by obvious triggers, order a basic metabolic panel (sodium, potassium, calcium, creatinine, glucose), serum magnesium, TSH, and creatine kinase. Add hemoglobin A1c if diabetes risk factors exist.
Step 3: Vascular assessment. For exertional calf cramps with cardiovascular risk factors, obtain an ankle-brachial index.
Step 4: Neurological referral. For cramps with progressive weakness, fasciculations in multiple body regions, upper motor neuron signs, or failure to respond to electrolyte correction. EMG and nerve conduction studies differentiate peripheral neuropathy, radiculopathy, and motor neuron disease.
Most patients do not need imaging or advanced testing. A careful history alone identifies the cause in an estimated 70% to 80% of cases.
Treatment: Evidence-Based Options
Stretching is first-line for all cramp types. A randomized trial in Journal of Physiotherapy (N=80) found that nightly calf stretching (held for 3 minutes before bed) reduced nocturnal cramp frequency by 59% over 6 weeks compared to no intervention [25].
Electrolyte repletion is second-line when deficiency is documented. Magnesium glycinate or citrate 200 to 400 mg daily is preferred for bioavailability; magnesium oxide is poorly absorbed and more likely to cause diarrhea. Potassium supplementation should be guided by serum levels and renal function.
Quinine was once widely prescribed but carries FDA black-box warnings. In 2006, the FDA ordered the removal of all non-approved quinine products marketed for leg cramps after reports of thrombocytopenia, cardiac arrhythmias, and at least 93 deaths [26]. A 2015 Cochrane review of 23 trials (N=1,586) confirmed that quinine reduces cramp frequency by roughly 28% compared to placebo but concluded that the risk-benefit ratio does not favor routine use [27].
Vitamin B complex supplementation has limited evidence for general cramp prevention, but a 2020 study in JAMA Internal Medicine found that pyridoxine (B6) at 25 mg daily reduced cramp frequency in patients taking diuretics [28]. Pickle juice (acetic acid) triggers a reflex inhibition of alpha motor neurons within 85 seconds of ingestion, based on a small crossover trial (N=10) published in Medicine & Science in Sports & Exercise [29]. The effect appears neurally mediated rather than related to electrolyte content.
For patients whose cramps persist despite conservative measures, low-dose baclofen (10 mg at bedtime) or gabapentin (300 mg at bedtime) may be considered off-label, though the evidence base for both remains thin.
Patients on statins who experience disabling cramps should discuss a trial of coenzyme Q10 supplementation (100 to 200 mg daily) or a switch to a hydrophilic statin (rosuvastatin or pravastatin) with their prescribing physician.
Frequently asked questions
›What causes muscle cramps?
›How are muscle cramps diagnosed?
›When should I worry about muscle cramps?
›Can dehydration alone cause muscle cramps?
›Are nocturnal leg cramps different from exercise cramps?
›Do statins cause muscle cramps?
›Is quinine safe for muscle cramps?
›What is the best supplement for muscle cramps?
›Can thyroid problems cause muscle cramps?
›Does pickle juice really help muscle cramps?
›How much water should I drink to prevent muscle cramps?
›Can muscle cramps be a sign of peripheral artery disease?
References
- Maisonneuve H, Bhatt M, Bhatt DL, et al. Prevalence of nocturnal leg cramps in adults over 50. BMC Fam Pract. 2017;18(1):29. https://pubmed.ncbi.nlm.nih.gov/28241731
- Zhou K, West HM, Zhang J, et al. Interventions for leg cramps in pregnancy. Cochrane Database Syst Rev. 2015;(8):CD010655. https://www.cochranelibrary.com/cdsr/doi/10.1002/14651858.CD010655.pub2/full
- Baker LB. Sweating rate and sweat sodium concentration in athletes: a review. Sports Med. 2017;47(Suppl 1):111-128. https://pubmed.ncbi.nlm.nih.gov/28332116
- King DE, Mainous AG, Geesey ME, Woolson RF. Dietary magnesium and C-reactive protein levels. J Am Coll Nutr. 2005;24(3):166-171. https://pubmed.ncbi.nlm.nih.gov/15930481
- National Institutes of Health Office of Dietary Supplements. Magnesium fact sheet for health professionals. https://ods.od.nih.gov/factsheets/Magnesium-HealthProfessional/
- Cohn JN, Kowey PR, Whelton PK, Prisant LM. New guidelines for potassium replacement in clinical practice. Arch Intern Med. 2000;160(16):2429-2436. https://pubmed.ncbi.nlm.nih.gov/10979053
- Hew-Butler T, Rosner MH, Fowkes-Godek S, et al. Statement of the Third International Exercise-Associated Hyponatremia Consensus Development Conference. Clin J Sport Med. 2015;25(4):303-320. https://pubmed.ncbi.nlm.nih.gov/26102445
- Parker BA, Capizzi JA, Grimaldi AS, et al. Effect of statins on skeletal muscle function. Circulation. 2013;127(1):96-103. https://pubmed.ncbi.nlm.nih.gov/23183941
- Stroes ES, Thompson PD, Corsini A, et al. Statin-associated muscle symptoms: impact on statin therapy. Eur Heart J. 2015;36(17):1012-1022. https://pubmed.ncbi.nlm.nih.gov/25694464
- Crop MJ, Hoorn EJ, Lindemans J, Zietse R. Hypokalaemia and subsequent hyperkalaemia in hospitalized patients. Nephrol Dial Transplant. 2007;22(12):3471-3477. https://pubmed.ncbi.nlm.nih.gov/17890744
- Garrison SR, Dormuth CR, Morrow RL, et al. Nocturnal leg cramps and prescription use that precedes them. Arch Intern Med. 2012;172(2):120-126. https://pubmed.ncbi.nlm.nih.gov/22271118
- Feldman EL, Stevens MJ, Thomas PK, et al. A practical two-step quantitative clinical and electrophysiological assessment for the diagnosis of diabetic neuropathy. Diabetes Care. 1994;17(11):1281-1289. https://pubmed.ncbi.nlm.nih.gov/7821168
- Brooks BR, Miller RG, Swash M, Munsat TL. El Escorial revisited: revised criteria for the diagnosis of amyotrophic lateral sclerosis. Amyotroph Lateral Scler Other Motor Neuron Disord. 2000;1(5):293-299. https://pubmed.ncbi.nlm.nih.gov/11464847
- de Carvalho M, Swash M. Cramps, muscle pain, and fasciculations: not always benign? Neurology. 2004;63(4):721-723. https://pubmed.ncbi.nlm.nih.gov/15326252
- Katzberg HD. Neurogenic muscle cramps. J Neurol. 2015;262(8):1814-1821. https://pubmed.ncbi.nlm.nih.gov/25652016
- Aboyans V, Criqui MH, Abraham P, et al. Measurement and interpretation of the ankle-brachial index: a scientific statement from the American Heart Association. Circulation. 2012;126(24):2890-2909. https://pubmed.ncbi.nlm.nih.gov/23159553
- Gerhard-Herman MD, Gornik HL, Barrett C, et al. 2016 AHA/ACC guideline on the management of patients with lower extremity peripheral artery disease. Circulation. 2017;135(12):e726-e779. https://pubmed.ncbi.nlm.nih.gov/27840332
- Garber JR, Cobin RH, Gharib H, et al. Clinical practice guidelines for hypothyroidism in adults. Endocr Pract. 2012;18(6):988-1028. https://pubmed.ncbi.nlm.nih.gov/23246686
- American Association of Clinical Endocrinologists. Thyroid disease clinical review. https://www.aace.com
- Canzanello VJ, Burkart JM. Hemodialysis-associated muscle cramps. Semin Dial. 1992;5(4):299-304. https://pubmed.ncbi.nlm.nih.gov/20322583
- Vidot H, Cvejic E, Carey S, et al. Randomised clinical trial: oral taurine supplementation vs placebo reduces muscle cramps in patients with chronic liver disease. Aliment Pharmacol Ther. 2018;48(7):704-712. https://pubmed.ncbi.nlm.nih.gov/30136295
- Schwellnus MP, Drew N, Collins M. Increased running speed and previous cramps rather than dehydration or serum sodium changes predict exercise-associated muscle cramping. Br J Sports Med. 2011;45(8):650-656. https://pubmed.ncbi.nlm.nih.gov/21148567
- Lau WY, Kato H, Nosaka K. Effect of oral rehydration solution versus spring water intake during exercise in the heat on muscle cramp susceptibility. J Int Soc Sports Nutr. 2021;18(1):39. https://pubmed.ncbi.nlm.nih.gov/34022899
- Allen RE, Kirby KA. Nocturnal leg cramps. Am Fam Physician. 2012;86(4):350-355. https://pubmed.ncbi.nlm.nih.gov/22963024
- Hallegraeff JM, van der Schans CP, de Ruiter R, de Greef MH. Stretching before sleep reduces the frequency and severity of nocturnal leg cramps in older adults. J Physiother. 2012;58(1):17-22. https://pubmed.ncbi.nlm.nih.gov/22341378
- US Food and Drug Administration. FDA orders unapproved quinine drugs from the market. 2006. https://www.fda.gov/drugs/drug-safety-and-availability
- El-Tawil S, Al Musa T, Valli H, et al. Quinine for muscle cramps. Cochrane Database Syst Rev. 2015;(4):CD005044. https://www.cochranelibrary.com/cdsr/doi/10.1002/14651858.CD005044.pub3/full
- Garrison SR, Allan GM, Sekhon RK, Musini VM, Khan KM. Magnesium for skeletal muscle cramps. Cochrane Database Syst Rev. 2012;(9):CD009402. https://www.cochranelibrary.com/cdsr/doi/10.1002/14651858.CD009402.pub2/full
- Miller KC, Mack GW, Knight KL, et al. Reflex inhibition of electrically induced muscle cramps in hypohydrated humans. Med Sci Sports Exerc. 2010;42(5):953-961. https://pubmed.ncbi.nlm.nih.gov/19997012