sofidexFor patientsAre you a clinician? Clinical site

Health Library  ›  Questions  ›  How do I stop leg cramps?

Question · Muscle cramps

How do I stop leg cramps?

Gently stretch the cramped muscle: for a calf cramp, straighten your knee and slowly pull your toes toward your shin. Gentle massage, walking, or warmth may also help.

QuestionReviewed 2026-11-27sofidex editorial standards

Usually settles
Within a few minutes
For recurring night cramps
Regular gentle calf stretching may help
Avoid
Forceful stretching and routine quinine
Magnesium
Does not reliably prevent ordinary cramps without a deficiency

What to do during a cramp

Stop your activity safely and gently stretch the affected muscle. For a calf cramp, straighten your knee and slowly pull your toes toward your shin. If you can balance safely, standing with your foot flat and leaning forward may also help.

Try gentle massage, walking, or warmth to relax the muscle. If it remains sore afterward, a wrapped cold pack may ease discomfort. Do not stretch forcefully, as this may injure the muscle.

How to reduce recurring cramps

Regular calf stretching may help some people with recurring night cramps. Gentle calf and hamstring stretches before bed may help, but not everyone benefits; avoid bouncing or stretching to the point of pain.

Increase exercise gradually, wear suitable footwear, and recover after demanding activity. Drink enough to replace fluid lost through heat, exercise, vomiting, or diarrhoea.

Medicines and supplements

Electrolyte drinks and supplements are not automatically needed for ordinary cramps. Magnesium does not reliably prevent ordinary cramps unless there is a deficiency, and quinine should not be used routinely because it can cause serious side effects.

Ask a healthcare professional before taking mineral supplements, especially if you have a medical condition or use other medicines. If cramps began after starting or changing a medicine, do not stop it yourself; ask the prescriber to review it.

When to get help. Arrange an appointment if cramps are frequent, worsening, regularly disturb sleep, do not improve, or occur with numbness, weakness, weight loss, or difficulty walking. Seek same-day advice for a newly swollen, warm, discoloured and painful leg; get emergency help if this occurs with chest pain, faintness or breathlessness, or if you develop sudden severe limb pain with cold or numb skin, dark brown urine, confusion or collapse in heat, or signs of a stroke.

Sources

  1. 1NHS. Leg cramps
  2. 2Allen RE, Kirby KA. Nocturnal Leg Cramps . American Family Physician . 2012;86(4):350–355
  3. 3Garrison SR, Korownyk CS, Kolber MR, et al. Magnesium for skeletal muscle cramps . Cochrane Database of Systematic Reviews . 2020;9:CD009402
  4. 4American Academy of Neurology. Assessment: Symptomatic treatment for muscle cramps . Neurology . 2010;74(8):691–696
  5. 5US Food and Drug Administration. FDA Drug Safety Communication: Qualaquin should not be used for night-time leg cramps

Health information, not medical advice. Nothing here replaces talking to your own doctor about your own situation.