Skip to main content

Symptom guide

Muscle cramps and spasms: causes, red flags and what helps

A cramp is a sudden, painful tightening of a muscle that usually passes in seconds to minutes. Leg cramps at night are the classic example, and they are usually harmless, though a few causes, from medicines to liver or circulation problems, are worth knowing about.

Last checked: 2026-10-03

Key facts

At a glance.

  • Duration

    The NHS says leg cramps can last from a few seconds to 10 minutes, and the muscle may feel sore for up to 24 hours afterwards.

  • Where and when

    The NHS says they most often affect the calf, less often the feet or thighs, and that most people have them at night or when resting.

  • Common triggers

    The NHS lists ageing, strain during exercise (worse in hot or humid weather), later pregnancy, some medicines such as statins and diuretics, dehydration and liver disease from heavy drinking.

  • Stretching helps

    The NHS says regular calf stretches may reduce cramps, though they may not stop them completely, and that stretching and massaging may ease a cramp as it happens.

  • See a GP if

    The NHS says to see a GP if cramps disturb your sleep, come with numbness or swelling in the legs, or last longer than 10 minutes.

What a cramp is and what it is not

The NHS describes a leg cramp as a muscle in the leg tightening and causing a sudden pain that can make it hard to move. After it passes the muscle may be tender. Spasm is a similar word for an involuntary tightening, and some people use it to describe a fleeting twitch rather than a sustained cramp.

Cramp needs distinguishing from other leg complaints that mimic it. The NHS restless legs page says conditions that can cause similar symptoms include leg cramps and peripheral neuropathy, while NICE CKS lists nocturnal leg cramps, peripheral neuropathy, akathisia and intermittent claudication in the differential of restless legs. The practical difference is that in restless legs there is an urge to move the legs with uncomfortable sensations, worse in the evening and eased by movement, whereas in a cramp the muscle is hard and painful.

Causes, most common first

Many cramps have no identifiable cause. The NHS says the reason for some is unknown. Where there is a cause, the commonest are listed below.

Causes of muscle cramps
CauseHow it shows upSource note
AgeingNight-time calf cramps become more frequentListed by the NHS
Overuse or strain during exerciseCramps during or after exertion, worse in hot or humid weatherListed by the NHS
PregnancyUsually in the later stagesListed by the NHS
MedicinesCramps starting after a new prescriptionNHS names statins and diuretics; speak to a doctor before stopping a medicine
DehydrationCramps with thirst, dark urine, dizzinessNHS lists not drinking enough fluids; its dehydration page lists thirst, headache, dark yellow strong-smelling pee and tiredness
Alcohol-related liver diseaseCramps in people who drink heavilyThe NHS lists liver disease because of drinking too much alcohol
Circulation or nerve problemsCalf pain on walking that eases with rest, or tingling and numbness in the legsNICE CKS lists intermittent claudication and peripheral neuropathy among conditions that mimic leg cramps and restless legs
Restless legs and nerve conditions that mimic crampUrge to move the legs in the evening, tingling or numbnessNHS says leg cramps and peripheral neuropathy can resemble restless legs syndrome

Red flags: when cramps need checking

The NHS says to see a GP if leg cramps are disturbing your sleep, if you also have numbness or swelling in your legs, or if cramps last longer than 10 minutes. The combination of swelling in one leg with pain, redness and heat is a different problem: the NHS says a blood clot in the leg can cause pain, redness and swelling in one leg, usually the calf, and can lead to a pulmonary embolism, for which sudden breathing difficulty, chest pain and coughing blood are warnings that need urgent help.

Two further points are worth raising with a GP: cramps that began soon after starting a new medicine, since the NHS lists statins and diuretics among possible causes, and any muscle weakness, which is not typical of simple cramp.

  • Cramps lasting longer than 10 minutes, or happening most nights and disturbing sleep.

  • Numbness or swelling in the legs.

  • One calf that is swollen, red, hot and painful, particularly after travel or immobility.

  • Weakness or muscle wasting.

  • Cramps beginning soon after a new medicine.

  • Sudden breathlessness, chest pain or coughing blood, which are emergencies.

What the GP asks and examines

The NHS says a GP will examine you to find the reason for your leg cramps and suggest treatment depending on the cause. Typical questions: when the cramps occur, how long they last, which muscles, how often, whether the legs feel restless, numb or swollen, what you drink and eat, alcohol intake, exercise, pregnancy, and every medicine you take, including statins and water tablets.

Examination includes the legs for swelling, circulation and tenderness, muscle strength and sensation. Blood tests for kidney function, salts, thyroid and ferritin are considered when the history points to a cause, as CKS suggests for restless legs, where serum ferritin checks for iron deficiency.

Easing a cramp and preventing the next one

During a cramp the NHS suggests stretching and massaging the muscle, and standing up and putting weight on the cramping leg, although most cramps go away without anything being done. Paracetamol or ibuprofen can ease soreness afterwards but they take too long to help while the cramp is happening.

To prevent them the NHS recommends regular calf-stretching exercises: stand facing a wall at arm's length with feet flat, lean forward pressing the hands against the wall until the calves stretch, hold for 2 or 3 seconds, and repeat for about 5 minutes, 3 times a day, with the last session just before bed. If cramps reduce, once or twice a day may be enough. Staying well hydrated and checking whether a medicine is contributing are sensible additions; the NHS says to speak to your GP before stopping a prescribed medicine.

Medical treatment

The NHS says treatment from a GP depends on the cause. It may be stretching exercises, or quinine tablets if exercise has not helped. Quinine is not suitable for everyone, and the GP will discuss potential risks and side effects. Treating an underlying cause, such as dehydration, a medicine side effect or iron deficiency, can resolve the cramps.

If the pattern is restless legs rather than cramp, the NHS suggests daytime exercise, regular sleep times, a warm bath or heat pads, walking and stretching during symptoms, avoiding caffeine after midday and alcohol for at least 2 hours before bed. CKS adds that iron supplementation is recommended where ferritin or transferrin saturation is low.

Who to see

A GP is the right contact when cramps are frequent, long-lasting, disturb sleep or come with other symptoms. A pharmacist can advise on painkillers for soreness. In pregnancy, midwives can advise on cramps, which the NHS lists as common in later stages.

Frequently asked

Questions people ask.

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

  • Why do I get leg cramps at night?

    The NHS says most people have them at night or when resting, and causes include ageing, strain on muscles during exercise, pregnancy, certain medicines, dehydration and heavy drinking. For some people no cause is found.

  • How long do cramps last?

    The NHS says from a few seconds to 10 minutes, with soreness for up to 24 hours afterwards. Cramps longer than 10 minutes are a reason to see a GP.

  • Do painkillers help during a cramp?

    No. The NHS says paracetamol or ibuprofen can help soreness afterwards but take too long to work while the cramp is happening. Stretching and massage are better.

  • Can my tablets cause cramps?

    Yes. The NHS gives cholesterol-lowering statins and blood pressure diuretics as examples. Do not stop a medicine without speaking to your GP.

  • What stretch should I do?

    The NHS describes a wall calf stretch: lean forward with hands on the wall and feet flat until the calves stretch, hold 2 or 3 seconds, repeat for about 5 minutes, 3 times a day, the last just before bed.

  • What is quinine and is it safe?

    The NHS says a GP may suggest quinine tablets if exercise has not helped, but it is not suitable for everyone and the GP will discuss risks and side effects.

  • How are cramps different from restless legs?

    Restless legs involve a strong urge to move the legs with tingling, throbbing or itching, usually worse at night when resting. Cramp is a sudden muscle tightening and pain. The NHS says leg cramps can cause symptoms similar to restless legs syndrome.

  • Could one swollen painful calf be a clot?

    It could. The NHS says a blood clot in the leg can cause pain, redness and swelling in one leg, usually the calf. Seek urgent advice, and call 999 if there is sudden breathlessness or chest pain.

  • Are cramps common in pregnancy?

    The NHS lists pregnancy, usually the later stages, as a cause of leg cramps. Raise them with a midwife or GP.

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.