What are the causes of leg cramps?

Medical Advisory BoardAll articles are reviewed for accuracy by our Medical Advisory Board
Educational purpose only • Exercise caution as content is pending human review
Article Review Status
Submitted
Under Review
Approved

Last updated: November 15, 2026 • View editorial policy

Have a follow-up question?

Our Medical A.I. is used by practicing medical doctors at top research institutions around the world. Ask any follow up question and get world-class guideline-backed answers instantly.

Causes of Leg Cramps

Leg cramps have multiple etiologies spanning neurogenic, musculoskeletal, vascular, metabolic, and medication-related causes, with idiopathic cramps being the most common type, particularly in older adults.

Primary Categories of Leg Cramp Causes

Neurogenic Causes

  • Spinal stenosis - compression of nerve roots in the lumbar spine 1
  • Peripheral neuropathy - including diabetic neuropathy 1, 2
  • Radiculopathy - nerve root pain radiating down the leg 1

Musculoskeletal Causes

  • Muscle spasms or cramps (primary muscle dysfunction) 1
  • Spondylolisthesis 1
  • Hip or knee arthritis 1
  • Symptomatic Baker cyst 1
  • Chronic exertional compartment syndrome 1
  • Stress fractures 1

Vascular Causes

  • Peripheral arterial disease (PAD) - cramping pain with exercise that resolves within 10 minutes of rest 1
  • Chronic limb-threatening ischemia - ischemic rest pain, gangrene, or ulceration 1
  • Venous insufficiency 1
  • Deep venous thrombosis 1
  • Nonatherosclerotic arterial disease (e.g., popliteal entrapment syndrome) 1

Metabolic and Endocrine Causes

  • Electrolyte disturbances - particularly during diuretic therapy 3, 4, 5, 6
  • Diabetes mellitus 2, 3, 6
  • Thyroid disease 5
  • Tetany (calcium/magnesium abnormalities) 5, 6
  • Gout 6
  • Cirrhosis 7, 3
  • Hemodialysis 3, 5

Medication-Related Causes

Strongly associated medications 3:

  • Intravenous iron sucrose
  • Conjugated estrogens
  • Raloxifene
  • Naproxen
  • Teriparatide
  • Diuretics (both loop and potassium-depleting types) 7, 6, 8
  • β-agonists (may be one of the more common causes) 8
  • Statins (though may be less implicated than previously believed) 8
  • Antipsychotic medications (causing dystonias) 5

Other Causes

  • Restless legs syndrome (distinct from cramps) 1, 9, 1
  • Malignancy 1, 2
  • Pregnancy 3
  • Occupational factors (repetitive movements) 4, 5
  • Muscle fatigue and nerve dysfunction 3

Idiopathic Leg Cramps

The most common type of leg cramps are idiopathic, occurring in up to 60% of adults, particularly nocturnal leg cramps in older individuals 3, 4, 5. These are probably caused by muscle fatigue and nerve dysfunction rather than electrolyte abnormalities 3. The exact mechanism remains unknown despite their high prevalence 3, 4.

Clinical Distinction Points

Key Features to Differentiate Causes:

Vascular claudication (PAD):

  • Cramping muscle pain with exercise
  • Resolves within 10 minutes of rest
  • Reproducible at similar walking distances
  • Diminished pulses on examination 1

Neurogenic pain (spinal stenosis):

  • Pain with standing and extending spine
  • Relief with lumbar spine flexion
  • Variable relief that takes longer than 10 minutes
  • History of back problems 10

Nocturnal/rest cramps:

  • Occur at night or with recumbency
  • Painful tightening usually in calf muscles
  • Can cause severe insomnia
  • Often idiopathic in nature 3, 4

Common Pitfalls

  1. Do not assume electrolyte abnormalities are the primary cause - most idiopathic cramps occur despite normal electrolytes 3

  2. Distinguish cramps from restless legs syndrome - RLS involves uncomfortable sensations and urge to move that worsen at rest and improve with movement, without the painful muscle tightening of true cramps 9, 3, 5

  3. Consider medication review - many commonly prescribed medications can induce cramps, particularly diuretics, β-agonists, and certain hormonal therapies 3, 8

  4. Evaluate for secondary causes in patients with diabetes or chronic kidney disease - these populations have higher rates of both vascular and neuropathic causes 2, 3

  5. Assess for PAD in patients over 50 with risk factors for atherosclerosis, as cramping may be the presenting symptom of vascular disease 1

Professional Medical Disclaimer

This information is intended for healthcare professionals. Any medical decision-making should rely on clinical judgment and independently verified information. The content provided herein does not replace professional discretion and should be considered supplementary to established clinical guidelines. Healthcare providers should verify all information against primary literature and current practice standards before application in patient care. Dr.Oracle assumes no liability for clinical decisions based on this content.