Medical Encyclopedia › C › Calf cramp
A calf cramp is a sudden, involuntary and painful tightening of the calf muscles that usually lasts seconds to a few minutes. It often occurs at night or after exertion and is harmless in the vast majority of cases. Stretching the calf helps straight away. If cramps become frequent, medicines and possible underlying conditions should be checked.
At a glance
- Sudden hard, painful calf muscle – usually seconds to a few minutes, often at night
- Stretching helps straight away: pull your toes towards you or stand up and press the heel firmly to the floor
- Soreness like after exercise can last until the next day, sometimes one to two days
- Common triggers: overuse, fluid loss and medicines such as diuretics
- A swollen, red or warm calf is not an ordinary cramp – get it checked (thrombosis)
Overview
Calf cramps are very common and become more frequent with age. Many people know them from waking at night with a hard, painful calf muscle. They are also common in pregnancy and in athletes. After a strong cramp, the muscle can stay sore for hours or until the next day, similar to muscle soreness after exercise.
Causes and risk factors
Usually no specific cause is found. Contributing factors are overuse, sitting or standing for long periods, lack of stretching and fluid loss (dehydration), for example from heavy sweating. Cramps can also be triggered by medicines, such as water tablets (diuretics). Possible underlying conditions include disturbances of electrolytes such as low potassium (hypokalaemia) or low calcium, diabetic polyneuropathy, kidney failure, an underactive thyroid and liver cirrhosis.
Telling it apart
Not every calf pain is a cramp. Persistent pain with swelling and tension may indicate deep vein thrombosis. Pain that comes on after walking a certain distance and disappears at rest suggests a circulation problem (peripheral arterial disease). An urge to move with tingling at rest, without a hard muscle, fits restless legs syndrome better.
Diagnosis
With occasional cramps, no tests are usually needed. If they are frequent, very severe or affect several muscles, the doctor asks about medicines, fluid intake and other illnesses and examines muscles, nerves and circulation. A blood test checks electrolytes, blood sugar, kidney and thyroid function, among others.
Treatment and prevention
During a cramp, stretching the calf helps: straighten the leg and pull the toes towards you, or stand up and press the heel firmly to the floor. Gentle massage and warmth relax the muscle. To prevent cramps, regular calf stretches, for example before bed, and drinking enough are recommended. Magnesium is widely taken, but studies show little benefit for ordinary night-time cramps in older adults. A proven deficiency is corrected. Quinine is effective but can have rare, serious side effects and is considered only after careful medical assessment. If medicines trigger the cramps, a change can be considered.
Frequently asked questions
What stops a calf cramp immediately?
Stretch the muscle: pull your toes and foot towards you, or stand up and press the heel to the floor. Gentle massage and warmth help afterwards.
Does magnesium help with leg cramps?
Yes, if there is a proven deficiency. For ordinary night-time cramps in older adults, studies show little benefit. In pregnancy the evidence is unclear.
Which deficiency causes calf cramps?
Low potassium, magnesium or calcium can trigger cramps but are rarely the cause. Overuse, fluid loss or medicines play a role more often.
Why does my calf still hurt two days after a cramp?
A strong cramp strains the muscle fibres in a similar way to hard exercise. An aching or tender calf can therefore last for one to two days and then settles on its own; warmth, gentle movement and light stretching help. If the pain gets worse rather than better, the calf is swollen, red or warm, or the pain lasts longer than a few days, see a doctor to rule out a blood clot or muscle injury.
Read more: Magnesium · Diuretics · Oedema · German version
Related terms
- Magnesium
- Dehydration
- Electrolytes
- Hypokalaemia
- Diuretic
- Restless legs syndrome
- Diabetic polyneuropathy
- Muscle cramps
Test your knowledge: questions on muscles, movement and more – from beginner to exam level.
Go to the Medical QuizSources
- Garrison SR et al.: Magnesium for skeletal muscle cramps (Cochrane Database of Systematic Reviews, 2020)
- El-Tawil S et al.: Quinine for muscle cramps (Cochrane Database of Systematic Reviews, 2015)
- S1 guideline Crampi/muscle cramp (German Society of Neurology, DGN; AWMF)
- NHS: Leg cramps. nhs.uk (accessed November 2026)
This entry is for general information only and does not replace medical advice. Last updated: November 2026.