⚠ 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

  1. What a Cramp Actually Feels Like
  2. Nocturnal Leg Cramps
  3. Exercise-Associated Muscle Cramping
  4. Dehydration and Electrolytes: The Mixed Evidence
  5. Medications That Cause Cramps
  6. Medical Conditions Behind Persistent Cramps
  7. Neurological Conditions That Mimic Cramp
  8. Red Flags: When to Get Help Urgently
  9. How Cramps Are Evaluated
  10. What Actually Helps
  11. What to Expect Over Time
  12. Connections
  13. Key Research Papers
  14. 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.

Back to Table of Contents

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.

Back to Table of Contents

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.

Back to Table of Contents

Dehydration and Electrolytes: The Mixed Evidence

Frank, measurable derangements absolutely cause cramps and spasm — but these are lab abnormalities, not marginal dietary shortfalls:

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.

Back to Table of Contents

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.

Back to Table of Contents

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.

Back to Table of Contents

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.

Back to Table of Contents

Red Flags: When to Get Help Urgently

Cramping itself is rarely an emergency. These combinations are.

Emergency department now

A prompt appointment — days, not months

Back to Table of Contents

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

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.

Back to Table of Contents

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

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

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.

Back to Table of Contents

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.

Back to Table of Contents

Connections

Key Research Papers

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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

Back to Table of Contents