⚠ Evidence warning: Clinical trials or other evidence do not support the claim that potassium-sparing diuretics such as spironolactone are much less often responsible for cramps. This page keeps it as a report of what people, websites or other media say.
Muscle Cramps
Table of Contents
- What a Cramp Actually Feels Like
- Nocturnal Leg Cramps
- Exercise-Associated Muscle Cramping
- Dehydration and Electrolytes: The Mixed Evidence
- Medications That Cause Cramps
- Medical Conditions Behind Persistent Cramps
- Neurological Conditions That Mimic Cramp
- Red Flags: When to Get Help Urgently
- How Cramps Are Evaluated
- What Actually Helps
- What to Expect Over Time
- Connections
- Key Research Papers
- Featured Videos
What a Cramp Actually Feels Like
A muscle cramp is a sudden, involuntary, painful contraction you cannot voluntarily release. The muscle goes rock-hard, often visibly knotted, and the pain is out of all proportion to anything you just did. Most last seconds to a couple of minutes. What surprises people is the aftermath: the muscle can feel bruised and stiff for a day or two, because the contraction was strong enough to do minor mechanical damage.
The calf is the classic site, then the small muscles of the foot, then the hamstrings; cramps also hit the thigh, hand, abdominal wall and neck. They are extremely common and almost always benign: roughly 35–60% of adults report night cramps, the rate climbs steeply with age, and 30–50% of pregnant women get leg cramps, mostly in the third trimester.
A true cramp is a problem of motor nerve hyperexcitability, not of the muscle itself. EMG during a cramp shows motor units firing at up to 150 impulses per second, far above the 20–40 of a strong voluntary contraction, and the origin appears to lie in the terminal branches of the motor nerve inside the muscle. That explains most of this page: why stretching works (it recruits Golgi tendon organ feedback that inhibits the firing), why the muscle aches afterwards, and why the story about electrolytes being "used up" in the muscle is weaker than the folklore.
Nocturnal Leg Cramps
These are the most common form by far, and the pattern is distinctive: you wake in the first third of the night with a violent calf or foot cramp, hop out of bed and put weight on the leg or haul your toes towards you, it eases in one to three minutes, and the muscle aches for the rest of the night. Clusters are typical: several bad nights, then weeks of nothing.
Two structural facts explain them. Lying in bed lets the ankle fall into plantar flexion (toes pointed), putting the calf in its shortest position, and a shortened muscle cramps more easily. Sedentary adults also spend far less time in full ankle range than the anatomy was built for, so calf and Achilles sit habitually short. Hence the most widely used non-drug approach is the most boring one: lengthening the calf regularly and sleeping with the ankle less pointed. In a randomised trial by Hallegraeff and colleagues in 80 adults over 55, six weeks of calf and hamstring stretching just before sleep reduced cramps by 1.2 more per night than no stretching (95% CI 0.6 to 1.8) and cut pain severity by 1.3 cm more on a 10-cm scale. An earlier trial by Coppin and colleagues in 191 people found no significant effect: its authors concluded that calf-stretching exercises did not reduce the frequency or severity of night cramps. The trial evidence for stretching is therefore mixed.
Risk rises with age over 50 — motor units are progressively lost and survivors reinnervate more fibres, which appears to make them more excitable — and with long standing or sitting, unaccustomed exercise, pregnancy, dialysis, and several prescriptions covered below. Two reassurances: night cramps are not a warning sign of blood clots, and they are not restless legs syndrome, which is an urge to move with crawling discomfort, relieved by movement, without a hard contracted muscle.
Exercise-Associated Muscle Cramping
Exercise-associated muscle cramping is cramping during or just after activity. It is better studied than any other kind, because one Ironman provides thousands of subjects in an afternoon — and the findings overturned the received wisdom. When Schwellnus and colleagues followed 210 Ironman triathletes prospectively, the 43 who cramped were not more dehydrated and did not differ in blood sodium or other serum electrolytes, or in body-weight change, from those who did not. The only two independent predictors of cramping were a faster race time (and cycling time) and a history of cramping in the previous 10 races. An earlier study by Sulzer, Schwellnus and Noakes in the same race (11 triathletes who cramped, 9 who did not) found post-race sodium slightly lower in those who cramped (140 versus 143 mmol/L), but still within the normal post-race range, and no other differences in blood electrolytes or body-weight loss; the authors concluded that cramping was not linked to clinically significant electrolyte differences.
The model that fits is altered neuromuscular control from muscle fatigue: excitatory muscle-spindle feedback rises while inhibitory Golgi tendon organ feedback falls, the motor neuron pool becomes hyperexcitable, and a muscle working in a shortened position tips into sustained firing. It also fits the reliable observations that cramps hit the hardest-working muscle group late in an event, worst when someone races beyond trained intensity, and stop when the muscle is passively stretched.
In this model, racing beyond trained pace raises the risk, and fine prodromal twitching often precedes a full cramp by a minute or two, when slowing frequently aborts it. Stretching the affected muscle at once and holding it is the standard first response. Fluid matters for heat safety, but fluid and salt have not been shown to prevent cramps — and forcing plain water through a long event causes exercise-associated hyponatraemia (low blood sodium), which is dangerous and presents with nausea, headache and confusion, not cramp.
Dehydration and Electrolytes: The Mixed Evidence
Frank, measurable derangements absolutely cause cramps and spasm — but these are lab abnormalities, not marginal dietary shortfalls:
- Low calcium — carpopedal spasm, tingling around the mouth and fingers, and in severe cases laryngospasm; seen after thyroid surgery, in vitamin D deficiency and in kidney failure. See Calcium.
- Low magnesium — tremor, twitching, tetany and cramps; it also blunts the parathyroid response, so calcium falls too. Causes: chronic proton pump inhibitors, alcohol, diuretics, malabsorption. See Magnesium.
- Low potassium — weakness and cramps; at severe levels rhabdomyolysis and arrhythmia. See Potassium.
- Rapidly shifting sodium — especially the osmotic shifts of haemodialysis, which is why dialysis cramps are so characteristic.
What does not survive the trials is the claim that ordinary cramps in healthy people come from mild dehydration or a mild dietary shortfall, and can be prevented by drinking more or taking a supplement. Magnesium is the clearest test: the 2020 Cochrane review by Garrison and colleagues pooled 11 randomised trials (735 people) and found that in older adults with idiopathic cramps magnesium was no better than placebo — the pooled difference under one cramp per week (0.18 fewer cramps a week, 95% CI from 0.84 fewer to 0.49 more), the confidence interval crossing zero, and the share of people whose cramps fell by a quarter or more was the same (risk ratio 1.04). Side effects were mostly stomach and bowel upsets such as diarrhoea. In pregnancy the evidence was conflicting: small trials with mixed results, all at high risk of bias, and the review found no trials at all of magnesium for exercise-associated cramps. Magnesium remains a treatment when blood magnesium is low; it is just not the general cure it is sold as. Salt and hydration fare similarly — field studies repeatedly fail to find the predicted difference between crampers and non-crampers, though laboratory dehydration does make cramps easier to induce electrically.
Medications That Cause Cramps
Drug-induced cramps are among the most commonly missed causes, because they often begin weeks or months after the prescription starts. Garrison and colleagues used sequence symmetry analysis on prescribing records — which drugs are dispensed just before someone is first given quinine for cramps — and several classes stood out.
Diuretics are the best-established offenders. In that analysis of prescribing records for 4.2 million people, cramp treatment was most likely after starting a potassium-sparing diuretic such as spironolactone (adjusted sequence ratio 2.12), then a thiazide-like diuretic such as hydrochlorothiazide, chlorthalidone or indapamide (1.48), while the link for loop diuretics such as furosemide, bumetanide and torsemide was small (1.20) and not statistically significant. Thiazides and loop diuretics act through volume and sodium depletion and through urinary loss of potassium and magnesium. Cramps that began within months of a new blood-pressure or fluid pill are a reason for potassium, magnesium and sodium checks and a review of the dose; potassium-sparing agents such as spironolactone are much less often responsible.
Statin muscle symptoms are real but heavily over-attributed. Aching, cramping and proximal weakness are reported by perhaps 7–29% of patients in observational cohorts, but blinded randomised and re-challenge studies find most of those symptoms occur just as often on placebo — the drug-attributable excess is a few percent. The 2022 Cholesterol Treatment Trialists' Collaboration analysed individual records from 19 double-blind trials of a statin versus placebo (123,940 people, median follow-up 4.3 years): muscle pain or weakness was reported by 27.1% of people on a statin and 26.6% on placebo. In the first year, statins produced a 7% relative increase, meaning only about 1 in 15 of those reports were actually caused by the statin; after the first year there was no significant excess, and more than 90% of all muscle reports by people on a statin were not due to it. More intensive regimens carried a slightly higher ratio (1.08 versus 1.03 for less intensive ones). Someone who abandons a statin they needed over cramps it did not cause has been harmed twice. The usual clinical approach is a supervised interruption and re-challenge, a creatine kinase check, a different statin or alternate-day dosing, and screening for what unmasks statin myopathy: untreated hypothyroidism, vitamin D deficiency, interacting drugs. See Cholesterol.
Others commonly implicated: beta-agonist inhalers (in the same prescribing analysis, inhaled long-acting beta-agonists had the highest ratio of any class, 2.42) and theophylline; raloxifene and teriparatide; aromatase inhibitors; proton pump inhibitors, via magnesium depletion; nifedipine; fibrates; neurotoxic chemotherapy such as cisplatin; alcohol; and withdrawal states. A complete list of every medicine, with start dates, is the most useful thing to bring to an appointment. Stopping a heart or blood-pressure medicine without a plan carries its own risks, and a planned trial off it is what makes the answer interpretable.
Medical Conditions Behind Persistent Cramps
Kidney disease and dialysis. Cramps affect a large majority of people on maintenance haemodialysis, typically late in a session or in the hours after, driven by rapid fluid removal, falling plasma osmolality and low dialysate sodium. Fixes include slowing the ultrafiltration rate, reducing interdialytic weight gain, adjusting dialysate sodium, and midodrine when cramps come with intradialytic hypotension. Chronic kidney disease also cramps without dialysis, through uraemia, secondary hyperparathyroidism and low calcium. See Kidney Disease.
Thyroid and liver disease. Hypothyroidism causes a well-described myopathy — cramps, stiffness, slow-relaxing reflexes, proximal weakness, raised creatine kinase — and is one of the few causes that fully resolves with treatment, which is why thyroid-stimulating hormone (TSH) belongs in the first round of tests. See Hypothyroidism. Cramps affect roughly 60–90% of people with cirrhosis and are badly under-treated, driven by reduced plasma volume, diuretics for ascites, low albumin and low magnesium. See Cirrhosis.
Peripheral arterial disease is the most important mimic to separate out, because treatment differs completely and the condition predicts heart attack and stroke. Claudication is a cramping pain in the calf, thigh or buttock that appears after a reproducible walking distance and settles within minutes of standing still, without a hard contracted muscle and without night-time onset. The exam finds reduced foot pulses; the test is an ankle-brachial index. See Peripheral Artery Disease. Lumbar spinal stenosis causes neurogenic claudication instead: leg heaviness and cramping on standing and walking, relieved by sitting or leaning forward, and better uphill than downhill. See Spinal Stenosis.
Neurological Conditions That Mimic Cramp
Most cramps are benign; a minority are the opening symptom of a neurological disease. The pattern that raises the question is cramps plus fixed weakness, wasting or spreading twitching.
Motor neuron disease (amyotrophic lateral sclerosis, ALS). Cramps are a genuinely common early symptom of amyotrophic lateral sclerosis, sometimes months before weakness is noticed. What distinguishes them is their company, not their character: cramps in unusual places (tongue, jaw, abdomen, hands), fasciculations that persist at rest and spread across the body, painless progressive weakness, wasting, foot drop, and slurred speech or swallowing trouble. Isolated cramps with normal strength are not amyotrophic lateral sclerosis; cramps with new weakness are the pattern that calls for neurological assessment. See amyotrophic lateral sclerosis.
Benign cramp-fasciculation syndrome is the reassuring counterpart: widespread twitching plus cramps, but a normal examination, normal strength, and nerve conduction studies without denervation. It persists for years, fluctuates with stress and caffeine, and does not progress to motor neuron disease.
Neuropathy and radiculopathy. Damaged or irritated motor nerves are hyperexcitable, and cramps are one result. Diabetic, alcoholic, chemotherapy-induced, B12-deficient and hereditary neuropathies all cramp, usually alongside numbness, burning pain and lost ankle reflexes; and a single compressed nerve root can cause repeated cramps in exactly the muscles it supplies. See Peripheral Neuropathy and Numbness and Tingling.
Dystonia is a sustained twisting posture, not a cramp: writer's cramp appears only during that one task, and the posture is stereotyped and often eased by a "sensory trick" such as touching the affected part.
Metabolic myopathies. In McArdle disease and related glycogen storage disorders, intense exercise produces a painful contracture — a shortened muscle that is electrically silent on EMG, the diagnostic difference from a cramp. Look for exercise intolerance since childhood, a "second wind" after a few minutes' rest, and markedly raised creatine kinase.
Two rarer conditions round out the list: myasthenia gravis, which causes fatigable weakness rather than cramp, and autoimmune nerve hyperexcitability syndromes, which cause continuous rippling, stiffness and severe cramping and respond to immunotherapy.
Red Flags: When to Get Help Urgently
Cramping itself is rarely an emergency. These combinations are.
Emergency department now
- Severe muscle pain with dark, cola-coloured urine after extreme exertion, a fall with a long lie, heat illness, a new statin or a seizure — this is rhabdomyolysis, and myoglobin from breaking-down muscle can cause acute kidney failure. It needs immediate intravenous fluids.
- One leg suddenly painful, swollen, warm and red — deep vein thrombosis, not cramp. Do not massage it.
- One leg or foot suddenly cold, pale, numb and pulseless — acute arterial occlusion; limb salvage is measured in hours.
- Escalating pain, tightness and numbness in a limb after a fracture or crush injury, with pain far out of proportion — acute compartment syndrome, a surgical emergency.
- Cramps with confusion, seizures, collapse or a heart rhythm that feels wrong — severe electrolyte disturbance.
- Spasm of the hands and feet with tingling around the mouth, or throat spasm — acute hypocalcaemia, particularly after recent neck surgery.
- Generalised rigidity with high fever and confusion on antipsychotics or serotonergic drugs, or spasms with lockjaw after a dirty wound (tetanus).
- Cramps and weakness with difficulty breathing or swallowing — see Shortness of Breath.
A prompt appointment — days, not months
- New weakness or visible wasting with the cramps — dropping things, tripping, a foot that slaps the floor.
- Twitching that spreads beyond the muscle that cramps, or cramps in unusual locations: tongue, jaw, hands, abdominal wall, neck.
- Cramps starting within weeks of a new medication, particularly a diuretic or statin.
- Cramps reproducibly brought on by walking a set distance and relieved by standing still — possible claudication.
- Cramps with unexplained weight loss, fever or night sweats, or wrecking your sleep for weeks; or cramps in someone with known kidney, liver or thyroid disease.
How Cramps Are Evaluated
For a healthy adult with occasional night cramps, a careful history and examination are enough and no testing is needed. The history first asks whether it is truly a cramp — a hard, knotted muscle that cannot be voluntarily relaxed, relieved by stretch. If not, the differential shifts to claudication, dystonia, restless legs, contracture or neuropathic pain. Then: which muscles and how widely (calves only is reassuring, tongue and hands and trunk is not); timing; what provokes and relieves them; weakness, wasting, twitching, numbness, dark urine or weight change; the complete drug list with start dates; alcohol, bariatric surgery, chronic diarrhoea, pregnancy; and family history.
The examination covers muscle bulk and tone, looking for wasting in hands, shoulders and calves; strength, including rising from a chair without arms; fasciculations at rest in good light; reflexes (brisk with pathological reflexes suggests upper motor neuron involvement, absent ankle jerk suggests neuropathy, slow relaxation suggests hypothyroidism); sensation; peripheral pulses; signs of venous disease or oedema; and Chvostek and Trousseau signs if hypocalcaemia is possible.
Laboratory tests
- Basic metabolic panel — sodium, potassium, urea, creatinine, glucose, calcium — plus magnesium and phosphate, which are not in a standard panel and are ordered separately.
- Thyroid-stimulating hormone — hypothyroid myopathy is common and fully treatable.
- Creatine kinase — normal in ordinary cramps; raised in myopathy, statin myotoxicity, hypothyroidism and rhabdomyolysis.
- Liver panel, albumin and full blood count; ferritin if restless legs is in the picture; 25-hydroxyvitamin D and B12 where deficiency is plausible; hemoglobin A1c (HbA1c) if neuropathy is suspected.
Second-line testing is targeted. Nerve conduction studies and EMG are the key test when weakness, wasting or widespread fasciculation is present, because they separate neuropathy, radiculopathy, motor neuron disease, myopathy and electrically silent contracture. Otherwise: arterial duplex for claudication, venous duplex for a deep vein thrombosis (DVT), lumbar magnetic resonance imaging (MRI) for neurogenic claudication, and parathyroid hormone, morning cortisol or muscle biopsy as the picture dictates.
What Actually Helps
In the moment: stretching the cramping muscle and holding it for 20–30 seconds is the standard first step. Calf — knee straight and toes pulled up towards the shin, or leaning forward against a wall with the heel down. Hamstring — knee straight and bending forward at the hip. Foot or toes — toes pulled back and the arch pressed. This is the highest-yield intervention there is. Afterwards, gentle walking, massage and warmth ease the residual soreness. Fighting the cramp by contracting the opposing muscle can trigger a cramp there too.
Prevention measures most often described
- Nightly calf and hamstring stretching — described as three sets of a 10-second hold per muscle, immediately before bed, every night (the two trials above disagree on whether stretching helps).
- Sleep positioning — loose bedding over the feet keeps the ankle from being forced into point; a footboard, a loosely tucked top sheet, or lying prone with the feet over the mattress edge all keep the calf longer.
- Regular gentle activity — walking or stationary cycling, breaking up long unbroken sitting; adequate but not excessive fluid; footwear with some heel support; compression stockings where there is venous insufficiency; less alcohol and evening caffeine.
- Correcting what is actually deficient, treating hypothyroidism, and reviewing the medication list — diuretics and long-acting inhalers above all.
Supplements: an honest summary
Magnesium is no better than placebo for idiopathic cramps in older adults on Cochrane review, inconclusive in pregnancy, and clearly indicated when magnesium is low. People who try it commonly use citrate or glycinate, 200–400 mg elemental at night, for a few weeks; the main side effect is loose stools, and because the kidneys clear magnesium, kidney impairment lets supplemental magnesium build up, so it is avoided or given at lower doses there. Potassium and calcium are corrected when low but offer no benefit at normal levels, and unnecessary potassium carries cardiac risk.
Medicines used for cramps
- Quinine reduces cramp frequency by roughly 28% over two weeks in the Cochrane review by El-Tawil and colleagues (23 trials, 1,586 people; low-quality evidence) — genuine but small. It also causes sometimes fatal thrombocytopenia, haemolytic uraemic syndrome and arrhythmia, which is why the US FDA (in a 2006 advisory against its off-label use) and other regulators warn against using it for cramps at all.
- Diltiazem 30 mg at night has limited positive trial data and a far safer profile; mexiletine has some support in motor neuron disease and is used with cardiac monitoring.
- Gabapentin, baclofen and tizanidine are used pragmatically on weak evidence, and carry sedation and fall risk in older adults.
- Midodrine and slower ultrafiltration for dialysis cramps; botulinum toxin for focal dystonia.
The American Academy of Neurology's 2010 evidence-based review rated quinine derivatives “likely effective” (its Level A) but concluded they “should be avoided for routine use” because of their potential toxicity, leaving them for an individual trial in selected patients once side effects are weighed; it rated vitamin B complex, naftidrofuryl and calcium channel blockers such as diltiazem as “possibly effective” (Level C). The barrier for quinine is its toxicity, not a lack of effect — which is why the unglamorous mechanical measures are usually tried first.
What to Expect Over Time
Idiopathic nocturnal cramps run in clusters over a lifetime rather than disappearing for good, and frequency rises with age. With nightly stretching, sleep positioning and a medication review, most people get from several bad nights a week down to occasional episodes — but "occasional cramps forever" is a more realistic goal than "never again." Preventive measures are usually given four to six weeks before being judged, and a diary helps, because memory exaggerates the bad weeks.
Exercise-associated cramps improve with training matched to race intent and pace reduction at the first twinge, but still recur for years: prior cramping remains the strongest predictor of future cramping. Drug-induced cramps usually settle within days to a few weeks of stopping the culprit. If a statin was blamed but was not responsible — the more common situation — the cramps continue after stopping it, which is itself useful information.
Cramps from a treatable disease follow the disease: hypothyroid cramps resolve over one to three months of adequate replacement, dialysis cramps improve with prescription changes, cirrhosis-related cramps often persist, and pregnancy cramps resolve after delivery. In cramp-fasciculation syndrome the reassurance of a normal EMG is itself part of the treatment, because anxiety amplifies awareness of twitching.
Two closing points matter more than any single remedy. Cramps stable in character over months are far more reassuring than cramps that are changing — spreading to new muscles, arriving with weakness or wasting; the pattern matters, not just the count. And this symptom is genuinely disruptive, yet people are routinely told it is nothing. For persistent, sleep-destroying cramps, the medication list and a basic set of labs are where the common causes show up.
Connections
- All Symptoms
- Numbness and Tingling
- Joint Pain
- Cold Hands and Feet
- Fatigue
- Magnesium
- Potassium
- Calcium
- Restless Legs Syndrome
- Peripheral Neuropathy
- Amyotrophic Lateral Sclerosis
- Peripheral Artery Disease
- Discussed in depth on these pages: Cramp Prevention: A Naturopathic Guide to Eliminating Muscle Cramps
Key Research Papers
- Garrison SR, Korownyk CS, Kolber MR, et al. Magnesium for skeletal muscle cramps. Cochrane Database of Systematic Reviews. 2020;9(9):CD009402. — PubMed PMID: 32956536
- Garrison SR, Dormuth CR, Morrow RL, Carney GA, Khan KM. Nocturnal leg cramps and prescription use that precedes them: a sequence symmetry analysis. Archives of Internal Medicine. 2012;172(2):120-126. — PubMed PMID: 22157068
- Hallegraeff JM, van der Schans CP, de Ruiter R, de Greef MHG. Stretching before sleep reduces the frequency and severity of nocturnal leg cramps in older adults: a randomised trial. Journal of Physiotherapy. 2012;58(1):17-22. — PubMed PMID: 22341378
- Coppin RJ, Wicke DM, Little PS. Managing nocturnal leg cramps — calf-stretching exercises and cessation of quinine treatment: a factorial randomised controlled trial. British Journal of General Practice. 2005;55(512):186-191. — PubMed PMID: 15808033
- El-Tawil S, Al Musa T, Valli H, et al. Quinine for muscle cramps. Cochrane Database of Systematic Reviews. 2015;2015(4):CD005044. — PubMed PMID: 25842375
- 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(8):691-696. — PubMed PMID: 20177124
- Schwellnus MP. Cause of exercise associated muscle cramps (EAMC) — altered neuromuscular control, dehydration or electrolyte depletion? British Journal of Sports Medicine. 2009;43(6):401-408. — PubMed PMID: 18981039
- Schwellnus MP, Drew N, Collins M. Increased running speed and previous cramps rather than dehydration or serum sodium changes predict exercise-associated muscle cramping: a prospective cohort study in 210 Ironman triathletes. British Journal of Sports Medicine. 2011;45(8):650-656. — PubMed PMID: 21148567
- Sulzer NU, Schwellnus MP, Noakes TD. Serum electrolytes in Ironman triathletes with exercise-associated muscle cramping. Medicine and Science in Sports and Exercise. 2005;37(7):1081-1085. — PubMed PMID: 16015122
- Cholesterol Treatment Trialists' Collaboration. Effect of statin therapy on muscle symptoms: an individual participant data meta-analysis of large-scale, randomised, double-blind trials. Lancet. 2022;400(10355):832-845. — PubMed PMID: 36049498