Skip to main content

Symptom guide

Leg cramps at night: causes, red flags and when to get it checked

Sudden, painful tightening of the calf or foot muscle at night, lasting seconds to minutes and leaving the muscle sore afterwards, is very common, especially in older adults and in pregnancy. Most nocturnal cramps have no serious cause. Medicines, dehydration and some conditions can contribute, and stretching is the best immediate relief.

Last checked: 2026-10-03

Key facts

At a glance.

  • Common

    Nocturnal leg cramps affect many older adults and pregnant women, and usually have no serious cause.

  • Relief

    Stretching the calf, walking around or massage usually releases the cramp within minutes.

  • Prevention

    Regular calf stretching before bed may help some people, though evidence is modest.

  • Medicines

    Diuretics, statins, some asthma and blood pressure medicines can contribute.

  • Who to see

    GP if frequent, with weakness, or swelling; urgent if one swollen painful calf.

What this symptom usually means

A cramp is an involuntary, sustained contraction of a muscle. At night the foot is often pointed, which shortens the calf, and nerves that control the muscle may fire spontaneously. The mechanism is not fully understood, but fatigue, nerve excitability and reduced fluid or salt balance have all been implicated.

Possible causes, from most to least common

  • No clear cause (idiopathic), particularly in older adults.

  • Pregnancy, especially the second and third trimesters.

  • Dehydration, strenuous exercise earlier in the day, standing for long periods and sleeping with toes pointed.

  • Medicines: diuretics, statins, calcium channel blockers, salbutamol, some chemotherapy and contraceptive pills.

  • Alcohol use and low magnesium, potassium or calcium.

  • Peripheral arterial disease, venous disease and nerve compression in the spine (lumbar stenosis).

  • Underactive thyroid, kidney disease, liver disease and diabetes.

  • Motor neurone disease and other neuromuscular conditions, which are rare and have progressive weakness.

Features that point to something more serious

Cramps with persistent weakness, muscle wasting, swelling or redness of a calf, skin changes or leg ulcers, calf pain on walking that eases with rest (claudication), numbness, cramps affecting many muscles and unexplained weight loss need assessment.

Red flags: when to seek help

  • Call 999 or go to A&E: a swollen, painful calf with breathlessness or chest pain, or a cold, pale painful leg.

  • Same-day GP: one swollen, red or painful calf that does not settle after a cramp (possible clot).

  • GP within weeks: frequent cramps, cramps with weakness or muscle wasting.

  • Routine: occasional night cramps that settle quickly.

What a doctor will ask and examine

The doctor asks how often, how long, which muscles, medicines, alcohol, fluid intake, exercise, pregnancy and other illnesses. They examine the legs for swelling, pulses, skin changes, muscle bulk and strength, and reflexes.

Tests that are commonly used and why

  • Usually none for occasional cramps with a normal examination.

  • Blood tests: electrolytes (potassium, calcium, magnesium), kidney, liver, thyroid, glucose, creatine kinase.

  • Ankle-brachial index or arterial Doppler: if circulation is poor.

  • Nerve conduction studies and EMG: if neuromuscular disease is suspected.

  • Review of medicines that might trigger cramps.

Self-care and the usual route

During a cramp, straighten the leg and pull the toes toward the shin, stand and walk, or massage the muscle. Stretch the calves gently before bed, stay hydrated, and avoid heavy alcohol in the evening. Keep bedding loose so toes are not pointed. Quinine is no longer routinely recommended because of side effects, and magnesium supplements have limited evidence.

The NHS route is a GP for review of medicines and blood tests. Private physiotherapy and GP review are available, with specialist assessment if neuromuscular disease is suspected.

Frequently asked

Questions people ask.

Quick, plain-English answers to the questions we hear most.

  • Why do I get leg cramps at night?

    Often no clear cause. Contributing factors include age, pregnancy, dehydration, medicines and foot posture during sleep.

  • What stops a cramp quickly?

    Straightening the leg, flexing the foot toward the shin, standing and walking, or gentle massage.

  • Does magnesium help?

    Evidence is limited and mixed. It may help in pregnancy for some, but it is not a proven treatment for most people.

  • Is quinine safe?

    It is no longer routinely recommended because of the risk of serious side effects.

  • Can statins cause cramps?

    Statins can cause muscle aches and cramps in some people. Do not stop them without discussing with your doctor.

  • Could it be a blood clot?

    A clot causes persistent calf swelling, pain and redness, not brief cramps. If these persist, seek urgent assessment.

  • Do stretches help?

    Calf stretching before bed may reduce cramps in some people, though evidence is modest.

  • When should I see a doctor?

    If cramps are frequent, accompanied by weakness, swelling, skin changes or begin after a new medicine.

Where this comes from

Sources and checking.

This guide is for information, not medical advice.

Your GP or consultant knows your history and can tell you which parts apply to you. If your symptoms are severe, rapidly worsening, or come with red-flag features, seek urgent medical care. Figures and availability change, so treat them as a guide and confirm with the provider.

Published 2026-10-03, next review 2027-10-03.

  • NHS: Leg cramps (nhs.uk/conditions/leg-cramps/)

  • NICE CKS: Leg cramps (cks.nice.org.uk, topic page)

  • NHS: Deep vein thrombosis (nhs.uk/conditions/deep-vein-thrombosis-dvt/)