🦵
Leg Cramps — Nocturnal & Exercise-induced Diagnosis & management of muscle cramps in primary care | Adults
Progress 0 / 9
The full reasoning pathway — nocturnal leg cramps are usually benign and idiopathic, but exclude secondary causes and the mimics (claudication, neuropathy, DVT). Treat, advise, and safety-net.StartDecisionInvestigateActionReferStop / Admit
PresentationLeg cramps
Timing (nocturnal), frequency, exercise relationship, drugs, hydration. Examine pulses, neuro, calves.
Step 1 · Safety — mimic / secondary causeMimic or secondary cause?
Exertional calf pain relieved by rest → claudication (vascular). Unilateral swelling/tenderness → DVT. Persistent severe cramps + systemic features.
YES
Stop · EscalateInvestigate / escalate
Claudication → vascular assessment (ABPI). Suspected DVT → urgent pathway.
NO
AssessBy pattern
History + examination localise the cause.
Step 3 · common causes
Idiopathic nocturnal
Commonest
Stretching exercises, hydration; reassure. Quinine only if severe and other measures fail (caution).
Metabolic / drugs
Secondary
Electrolyte disturbance, dehydration, diuretics, statins, CKD, thyroid; correct cause.
Neuromuscular
Other
Peripheral neuropathy, radiculopathy, MND (if weakness/fasciculation).
Step 6 · ReferEscalation
Vascular claudication; neurology if neuromuscular features; correct metabolic causes and review drugs.
Step 8 · self-management & modifiable factors
Step 8 · Self-management & modifiable factorsFirst-line for idiopathic cramps
Regular calf and hamstring stretching (before bed), good hydration, gentle activity; passive stretch/massage during an attack. Review contributing drugs (diuretics, statins, β2-agonists) and correct electrolyte/thyroid abnormalities. Reserve quinine for severe, frequent cramps unresponsive to other measures (narrow therapeutic margin, review benefit at 4 weeks).
Step 9 · review & safety-net
Step 9 · Review & safety-netReassess & spot the mimics
Urgent if exertional calf pain consistently stops walking and eases with rest (claudication → ABPI), or unilateral calf swelling/tenderness (?DVT). Review persistent or worsening cramps for an electrolyte/endocrine/CKD cause, or neuromuscular features (weakness, fasciculation → neurology). Re-evaluate quinine benefit/toxicity periodically.
⚠️ Distinguish cramp from claudication: exertional calf pain that consistently stops the patient and resolves with rest is vascular and needs an ABPI, not stretching advice.
1
Safety

Red flags — exclude serious pathology first

Most leg cramps are benign and idiopathic, but several serious conditions can present similarly. Exclude before treating symptomatically.
Calf pain + swelling + recent travel/immobility → same-day DVT assessment (Wells score + D-dimer/USS). Do not diagnose as cramp
Leg cramps + claudication distance <200m + absent pulses → urgent vascular review (critical ischaemia if rest pain)
Rest pain + pallor + cold limb → 999 (acute limb ischaemia — 6 hours to save limb)
Cramps + progressive weakness + fasciculations → urgent neurology referral (MND, peripheral neuropathy)
Cramps + severe hypokalaemia symptoms (K <2.5 + arrhythmia/paralysis) → 999 or same-day electrolyte correction
Cramps in pregnancy + calf tenderness → same-day DVT assessment (pregnancy is high-risk state)
DVT affects 1–2 per 1000 adults/year and is commonly mistaken for cramp. Missing acute limb ischaemia causes amputation within 6–12 hours. MND presents with cramps and fasciculations before weakness in 25% of cases. Hypokalaemia from diuretics or eating disorders causes life-threatening arrhythmias at K <2.5 mmol/L.
2
Diagnose

Confirm diagnosis — characterise the cramps

True muscle cramp = sudden, painful, involuntary contraction of a muscle, lasting seconds to minutes, relieved by stretching. Distinguish from mimics.
True cramp features
Sudden onset, calf or foot most common, visible/palpable muscle tightening, lasts <10 min, relieved by stretching, tender for hours after
Nocturnal cramps
During sleep or on waking. Very common (60% of adults >50 yrs). Frequency >3/week = clinically significant
Exercise-induced
During or immediately after exercise. Ask about hydration, electrolyte intake, training volume
Not cramps: Restless legs
Urge to move, worse at rest, evening predominance, no muscle hardening → different condition, different treatment
Not cramps: Peripheral neuropathy
Burning, tingling, "dead" sensation, stocking distribution → check HbA1c, B12, alcohol history
Not cramps: Claudication
Pain on walking, reliably reproducible, relieved by standing still (not sitting) → Wells claudication criteria
Restless legs syndrome (RLS) affects 5–10% of adults and is commonly misdiagnosed as cramps — treatment is entirely different (dopamine agonists for RLS vs stretching/electrolytes for cramps). Distinguishing cramp from claudication is critical — treating "cramps" without investigating claudication delays revascularisation.
3
Diagnose

Classify — idiopathic vs secondary cause

Most cramps are idiopathic (no identifiable cause). Screen for secondary causes — many are treatable.
Idiopathic
No systemic disease, no medication cause, normal examination and bloods. Most nocturnal cramps in adults >50 yrs. Benign but distressing
Electrolyte disturbance
Hypomagnesaemia (most common, especially diuretic use), hypokalaemia, hypocalcaemia, hyponatraemia — check with bloods
Medication-induced
Diuretics (thiazide/loop), statins, beta-agonists, nifedipine, clonazepam withdrawal, alcohol, dialysis. Review Rx chart
Systemic disease
CKD (uraemia), hypothyroidism, diabetes (peripheral neuropathy component), cirrhosis, peripheral vascular disease
Dehydration/overexertion
Athletes, hot weather, excessive sweating without electrolyte replacement
Pregnancy
Common in 2nd/3rd trimester — low magnesium, mechanical compression. Manage conservatively; avoid quinine
Hypomagnesaemia is the most common treatable cause and is found in 40–60% of patients on long-term diuretics — yet is rarely checked. Statin-induced myopathy (including cramps) affects 5–10% of statin users and is dose-dependent. Identifying secondary causes avoids unnecessary long-term treatment with quinine.
4
Diagnose

Targeted examination

Examination guides whether cramps are idiopathic or secondary to vascular, neurological, or systemic disease.
Peripheral pulses
Palpate femoral, popliteal, dorsalis pedis, posterior tibial. Absent/reduced → vascular disease (ABPI if available). ABI <0.9 = PAD
Lower limb neurology
Sensation (light touch, vibration — 128Hz tuning fork), reflexes (ankle jerk absent in neuropathy), power. Wasting/fasciculations → MND/motor neuropathy
Calf assessment
Calf swelling, tenderness, warmth, Homan's sign (poor sensitivity) → if positive, Wells score for DVT
Muscle bulk
Wasting suggests systemic disease, MND, or prolonged immobility
Thyroid
Goitre, slow relaxing reflexes, dry skin, bradycardia → hypothyroidism
Fluid status
Skin turgor, mucous membranes → dehydration. Oedema → CKD, cardiac failure, liver disease
ABPI <0.9 in a patient presenting with leg cramps changes the diagnosis to PAD and the management pathway entirely. Ankle jerk absence with normal vibration sensation localises neuropathy. Slow-relaxing reflexes are 97% specific for hypothyroidism. A normal examination supports idiopathic cramps and avoids unnecessary investigation.
5
Diagnose

Investigations

First presentation with significant cramps warrants targeted bloods. Not all patients need investigation — individualise.
First-line Bloods
U&E (K, Na, Cr — renal disease, electrolyte disturbance), magnesium (most commonly low), calcium, glucose/HbA1c, TFTs, FBC
CK Creatine kinase
If statin use or if significant post-exertional pain. CK >10x ULN = statin myopathy — stop statin
Vitamin D
If widespread musculoskeletal symptoms, elderly, housebound, or BMI >30
B12/folate
If neuropathy features (tingling, numbness, reduced reflexes), alcohol use, metformin use
ABPI
If claudication suspected, absent/reduced peripheral pulses, or cardiovascular risk factors. ABI <0.9 = PAD
Not routinely needed
MRI/nerve conduction if no clinical evidence of neurological disease. D-dimer only in low pre-test probability DVT
Magnesium is not included in standard U&E — must be specifically requested. Normal serum magnesium does not exclude total body depletion (intracellular), but checking it is the best available proxy. Statin myopathy with CK >10x ULN requires statin cessation regardless of cardiovascular benefit — rechallenge at lower dose after 4–6 weeks.
6
Refer

Referral criteria

999
Acute cold/pale/pulseless leg (acute limb ischaemia) | Severe hypokalaemia with cardiac arrhythmia
Same-day
Suspected DVT (Wells ≥2 or high clinical suspicion) | Rest pain with absent peripheral pulses
Urgent vascular
ABPI <0.9 with claudication symptoms | Claudication distance <100m restricting daily life | Non-healing leg ulcer
Urgent neurology
Progressive weakness + cramps + fasciculations (MND) | Rapidly progressive neuropathy
Routine
Confirmed PAD for vascular assessment and exercise programme | Refractory cramps despite treatment
Primary care
Idiopathic cramps, electrolyte-related cramps, medication-induced, pregnancy-related — manage in primary care
PAD with ABPI <0.9 benefits from supervised exercise (equivalent to angioplasty for claudication — NEJM 2015) and cardiovascular risk reduction. Urgent vascular referral for critical ischaemia (rest pain, tissue loss) — revascularisation must happen within 6 hours to save the limb.
7
Treat

Treatment ladder — stepwise approach

Treat underlying causes first. For idiopathic/nocturnal cramps, escalate through non-pharmacological to pharmacological.
Step 1Treat underlying cause — correct electrolytes (Mg, K), review/stop causative medications, treat hypothyroidism/diabetes/CKD
Step 2Stretching exercises — calf stretches 3x daily and before bed (most evidence for nocturnal cramps). Dorsiflexion during cramp provides immediate relief. Physiotherapy referral if needed
Step 3Magnesium glycinate/citrate 300–400 mg oral OD (better absorbed than magnesium oxide). Trial for 4–6 weeks. Especially effective if serum Mg low or on diuretics. Caution CKD (dose-reduce, check eGFR)
Step 4Quinine sulfate 200–300 mg at night. Caution: MHRA warning — only if cramps cause regular sleep disturbance AND Step 1–3 have failed. 4-week trial; review at 3 months. Contraindicated: pregnancy, haemolytic anaemia, optic neuritis. Not for routine use
Step 5Vitamin B complex / Vit E 400IU — limited evidence but safe profile. Consider in refractory cases before specialist referral
AvoidQuinine in pregnancy | Routine use without trialling Steps 1–3 first | Prolonged quinine without 3-monthly review
Calf stretching reduces nocturnal cramp frequency by 58% (BMJ 2012, Hallegraeff et al). Quinine reduces cramp frequency by ~27% (Cochrane 2015) but has narrow therapeutic index — causes cinchonism (tinnitus, dizziness, visual disturbances) and rare thrombocytopenia. MHRA 2010 restricted quinine to prescription-only due to fatalities. Magnesium is the preferred pharmacological option for most patients.
8
Lifestyle

Non-pharmacological interventions — first-line

Calf stretching 3 times daily and before bed. Stand facing wall, knee straight, heel on floor, hold 30 seconds each leg. Reduces frequency by up to 58%
Hydration 2 litres water daily. Increase in hot weather or during exercise. Avoid alcohol excess (dehydrating and directly myotoxic)
Footwear Supportive footwear with heel support. Avoid flat shoes/barefoot in recurrent sufferers
Bedding adjustments Untuck bed sheets at foot of bed (tight sheets plantar-flex ankles, triggering cramps). Elevate foot of bed slightly
Exercise warm-down Gentle stretching after exercise. Gradual cool-down prevents exercise-induced cramps. Avoid sudden increased training load
Dietary electrolytes Potassium (bananas, avocado, potato), magnesium (nuts, dark chocolate, leafy greens), calcium (dairy, broccoli) — especially if dietary intake poor
Avoid aggravants Reduce caffeine and alcohol. Both deplete magnesium and cause dehydration
Loose bedding reduces cramp frequency by reducing nocturnal ankle plantar-flexion — a simple, free intervention. Exercise-induced cramps are strongly associated with electrolyte depletion through sweat — sodium and magnesium losses are greatest. Dietary improvement in electrolytes is more physiological than supplementation and avoids medication side effects.
9
Safety

Follow-up & safety-netting

4–6 weeks
Review: Are cramps improving? Check magnesium/electrolyte results. Assess adherence to stretching programme. Escalate treatment if no benefit
3 months
If on quinine: mandatory review — is it still effective? Dose-lowest effective. Stop if not clearly beneficial. Check for cinchonism (tinnitus, visual disturbance)
Annual
Review medication (quinine, statins, diuretics). Repeat electrolytes if on diuretics or CKD. Reassess for new cardiovascular/neurological symptoms
999 safety-net
Sudden cold, pale, pulseless, painful leg → 999 (acute limb ischaemia). Cardiac arrhythmia symptoms with muscle weakness → 999
Same-day
New calf swelling + redness (DVT) | Progressive leg weakness or fasciculations | Tinnitus/visual changes on quinine
Quinine monitoring
Check FBC at 3 months (thrombocytopenia). Instruct patient: stop immediately if tinnitus, visual disturbance, or unusual bruising/bleeding
Quinine-induced thrombocytopenia can occur even after months of treatment and can be severe (platelet count <10). Visual toxicity (irreversible retinal damage) occurs at high cumulative doses. Regular review allows early detection. Cramps improving over months as underlying causes are addressed means medication can often be stopped — avoid indefinite quinine prescribing.
Educational use only. Based on NICE CKS Leg Cramps (2023), MHRA Drug Safety Update on Quinine (2010, 2017), Cochrane Review: Quinine for Muscle Cramps (2015), BMJ Stretching RCT (Hallegraeff 2012). Adapt to individual patient context.