Muscle Cramps
Sudden, involuntary muscle contractions causing sharp pain.
TL;DR
Most night-time leg cramps are neuromuscular, not dehydration or a mineral deficiency. Stretching and medication review help more than electrolyte drinks, and quinine is no longer recommended.
Overview
Exercise-associated cramps and nocturnal leg cramps are different problems that get treated as one. Exercise cramps cluster in muscles working at short length under fatigue and are best explained by altered spinal reflex control rather than sweat losses; the classic evidence against the dehydration theory is that cramping athletes are not more dehydrated or more electrolyte-depleted than non-cramping ones in field studies. Nocturnal cramps, which affect roughly a third of adults over 60, involve sustained involuntary calf or foot contraction lasting seconds to minutes, often leaving residual soreness. The most productive first step is a medication review, because diuretics, statins, beta-agonists, and long-acting beta-2 agonists are frequent contributors, and correcting them removes the cramps entirely in some people. Secondary causes worth excluding include peripheral artery disease, peripheral neuropathy, hypothyroidism, chronic kidney disease and, in pregnancy, simple mechanical and circulatory change. Stretching the calf and hamstrings before bed has the best trial support of any self-directed intervention. On supplements, magnesium is the most heavily marketed and among the least supported: Cochrane concluded it is unlikely to help idiopathic cramps in older adults, though the pregnancy data are more favourable. Quinine works but was withdrawn from this indication due to thrombocytopenia and arrhythmia risk.
Common Symptoms
- •Sudden painful calf or foot contraction
- •Visible knotting of the muscle
- •Night-time onset waking you from sleep
- •Residual soreness for hours afterwards
- •Cramps in the arch of the foot or toes
Common Causes
- •Neuromuscular fatigue and altered reflex control
- •Diuretics, statins and beta-agonists
- •Peripheral neuropathy
- •Peripheral arterial disease
- •Pregnancy
- •Hypothyroidism or chronic kidney disease
- •Dialysis-related fluid shifts
Root Causes
Altered alpha motor neuron excitability with muscle fatigue, medication effects from diuretics, statins and beta-agonists, peripheral neuropathy, peripheral arterial disease, electrolyte disturbance in dialysis or severe diarrhoea, hypothyroidism, pregnancy-related circulatory change, and prolonged static posture.
How It's Diagnosed
Diagnostic Markers
- Medication review
- Electrolytes including sodium, potassium, calcium and magnesium
- Thyroid function and renal function
- HbA1c and B12 where neuropathy is suspected
- Ankle-brachial index if claudication features
- Creatine kinase after exertional cramps with dark urine
When to See a Doctor
See a doctor for cramps with muscle weakness, wasting or persistent numbness, cramps with dark urine after exertion, calf pain that is swollen and warm, or cramps that appear reliably with walking and stop with rest, which suggests arterial disease rather than cramp.
Supplements Studied For This
Electrolytes
Small lab trials favour an electrolyte solution over plain water, but race studies point to fatigue and prior cramps, not electrolyte loss.
Magnesium
Low value for typical night cramps in older adults. More defensible in pregnancy-related cramps or where intake is genuinely poor.
Diet & Lifestyle
Suggested Pattern
No specific diet prevents cramps. Adequate but not excessive fluid and normal dietary potassium and magnesium from food are sufficient; electrolyte drinks have not shown preventive benefit in controlled work.
Supporting Research
Muscle cramps and magnesium deficiency: case reports
Risk Factors for Exercise-Associated Muscle Cramps: A Systematic Review With Meta-Analysis
Effect of Magnesium Oxide Supplementation on Nocturnal Leg Cramps: A Randomized Clinical Trial
Secondary prevention of leg cramps using compression stockings or magnesium supplements: a three-arm randomized clinical trial
Influence of Hydration and Electrolyte Supplementation on Incidence and Time to Onset of Exercise-Associated Muscle Cramps
Articles on Muscle Cramps
Magnesium Glycinate vs Citrate: Which to Take
Citrate suits constipation and has more absorption data; glycinate has one modest sleep trial. Doses, side effects, interactions and how to choose.
13 min readTaking Calcium and Magnesium Supplements Together
Calcium and magnesium can be taken together: studies show little absorption clash. How to split doses, daily limits, the ratio and medicine spacing.
13 min read
Frequently Asked Questions
Are cramps caused by low magnesium?
Do electrolytes and hydration matter?
What actually stops a cramp?
Can medication cause cramps?
Is quinine an option?
When do cramps need investigation?
Who It Affects
Nocturnal leg cramps affect roughly 33% of adults over 60 and up to 50% of pregnant women in the third trimester.
Quick Facts
- •Cramping athletes are not more dehydrated than non-cramping ones in field studies
- •Around a third of adults over 60 get nocturnal leg cramps
- •Cochrane found magnesium unlikely to help idiopathic cramps in older adults
- •Quinine is no longer recommended because of thrombocytopenia and arrhythmia risk
Lifestyle Tips
- •Stretch calves and hamstrings for a few minutes before bed — the best-supported self-treatment
- •During a cramp, dorsiflex the foot and pull the toes toward you rather than massaging blindly
- •Review diuretics, statins and inhalers with your prescriber before buying supplements
- •Keep bedding loose so feet are not held in plantarflexion overnight
- •Build training load gradually; cramps cluster where fatigue outpaces conditioning
Related Topics
My Notes
Sign in to add personal notes
This information is for educational purposes only. Always consult a healthcare professional before starting any supplement regimen.