Calf cramp

Medical Encyclopedia › C › Calf cramp

Musculoskeletal Systemalso: leg cramp, nocturnal leg cramps, charley horse

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.

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.

Related terms

Test your knowledge: questions on muscles, movement and more – from beginner to exam level.

Go to the Medical Quiz

Sources

  • 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)

This entry is for general information only and does not replace medical advice. Last updated: November 2026.