Skip to main content

Muscles and joints

Muscle cramps at night: causes, what helps and when to see a GP

Muscle cramps at night are sudden, painful tightenings of a muscle, most often in the calf, that can wake you from sleep. They are common and usually harmless, but they can be exhausting and sometimes have a cause worth finding. This guide covers what is going on, what you can try yourself, what a GP can do and when to get checked.

Last checked: 2026-10-10

Key facts

At a glance.

  • Common and usually harmless

    The NHS says leg cramps are common, usually harmless and only last a short time, and that most people have them at night or when resting.

  • Short but sore

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

  • Calf muscle most often

    The NHS says cramps can affect the calf muscle below the knee at the back of the leg, and less often the muscles in the feet or thighs.

  • Stretching is the main self-help step

    The NHS says regular calf-stretching exercises may help reduce cramps but may not completely stop them.

  • Medicines can be involved

    The NHS lists certain medicines, for example statins and diuretics, among possible causes of leg cramps.

  • When to see a GP

    The NHS advises seeing a GP if cramps disturb your sleep, if you also have numbness or swelling in your legs, or if cramps last longer than 10 minutes.

What night cramps are

A muscle cramp is an involuntary, sudden tightening of a muscle that causes sharp pain and can make it hard to move. The NHS explains that leg cramps happen when a muscle in the leg tightens and causes a sudden pain, and that they can happen at any time, although most people have them at night or when resting.

Typically you are woken by the calf knotting up, the foot pulling downwards and a hard, tight muscle that you can feel under your hand. Most cramps ease within a few minutes, but the aching can linger. Because they interrupt sleep, even short cramps can leave you tired during the day, which is why people often search for ways to stop them.

This guide is about ordinary night-time cramps. Cramps are different from restless legs, in which there is an urge to move the legs, and from twitching, which is a brief flicker of a muscle. If you are unsure which you have, a GP can help to tell them apart.

What you can do during and after a cramp

The NHS says stretching and massaging the muscle may ease the pain during a cramp, although most cramps go away without you doing anything. Standing up and putting your weight on the leg with the cramp may also help.

Paracetamol or ibuprofen can ease muscle soreness after a cramp, but the NHS notes they will not help while it is happening because they take too long to work.

  • Stretch the calf by gently pulling the toes and foot upwards towards the shin.

  • Massage the tight muscle with firm, slow strokes.

  • Stand up and put weight on the affected leg if you can do so safely.

  • Use paracetamol or ibuprofen for aching afterwards if they are suitable for you.

Preventing night cramps

The NHS says regular calf-stretching exercises may help to reduce cramps, but may not completely stop them from happening. Its suggested routine is to stand facing a wall with arms outstretched so that the hands just touch it, keep the feet flat on the floor and lean forward, pressing the hands against the wall until the calf muscles stretch. Hold for 2 or 3 seconds, stand up straight again and repeat a few times for 5 minutes, 3 times a day, the last time just before bed. If the number of cramps reduces, you might only need to do the exercise once or twice a day.

The NHS also lists not drinking enough fluids and putting too much strain on muscles during exercise, which can be worse in hot or humid weather, among the causes. Keeping well hydrated through the day and warming up and cooling down around exercise are sensible steps that fit with those causes.

Possible causes and risk factors

The NHS says the reason for some cramps is unknown. When a cause is found, it can include the following.

  • Ageing.

  • Putting too much strain on muscles during exercise, which can be worse in hot or humid weather.

  • Pregnancy, usually in the later stage.

  • Certain medicines, for example statins used to lower cholesterol and diuretics used for high blood pressure.

  • Not drinking enough fluids (dehydration).

  • Liver disease because of drinking too much alcohol.

When to see a GP

The NHS recommends seeing a GP if your leg cramps are disturbing your sleep, if you also have numbness or swelling in your legs, or if cramps last longer than 10 minutes. These features suggest that more than a simple muscle problem may be going on, or that the cramps are affecting your health enough to warrant a review.

It is also worth mentioning any new medicine you started around the time the cramps began. Do not stop a prescribed medicine such as a statin or a water tablet without speaking to the prescriber, since the reason you take it still matters.

What a GP may do

The NHS says a GP will examine you to try to find the reason for your leg cramps and will suggest a treatment depending on the cause. This might be stretching exercises or, if exercise has not helped, quinine tablets. The NHS notes that quinine is not suitable for everyone and that the GP will discuss potential risks and side effects with you.

NICE Clinical Knowledge Summaries, the guidance used by GPs, describes most night-time leg cramps as idiopathic, meaning no underlying cause is found, and says investigations are usually not needed unless the cramp has atypical features or an underlying cause is suspected. Its management advice starts with reassurance that such cramps are common and can resolve on their own, followed by self-care such as stretching and massaging the muscle, and painkillers if the muscle is tender afterwards.

NICE says quinine is generally not recommended for idiopathic leg cramps because of its poor balance of benefit to risk, although a trial may be considered in certain circumstances if self-care measures fail, cramps are frequent and quality of life is affected. It also says a specialist referral should be considered if the diagnosis is in doubt or treatment in primary care fails and symptoms are affecting quality of life.

The same guidance lists conditions that can mimic leg cramps, including claudication, restless legs syndrome, Baker's cyst, deep vein thrombosis and dystonia, which is one reason a GP examines the leg rather than assuming it is simple cramp. The NHS notes that restless legs syndrome, in which there is a strong urge to move the legs usually at night, is a different condition with its own treatment.

Approaches to night cramps
ApproachWhat it involvesNotes
Calf stretchingWall stretch several times a day, last session before bedThe NHS says it may reduce cramps but may not stop them completely
Hydration and exercise habitsDrinking enough fluids; avoiding excess strain on musclesDehydration and strain are among causes the NHS lists
Medicine reviewA GP considers whether a medicine could be contributingStatins and diuretics are named by the NHS; do not stop them without advice
Quinine tabletsA GP may suggest these if exercise has not helpedNICE says it is generally not recommended for idiopathic cramps because of its poor benefit-to-risk ratio; risks are discussed

NHS care or private care

Night cramps are normally dealt with in primary care on the NHS, by a GP or sometimes a pharmacist or physiotherapist. Most people do not need a specialist. If a specialist opinion is needed, for example for nerve or circulation problems, the GP can arrange it. Some people see a private physiotherapist for stretching advice; this is a reasonable choice if you want hands-on guidance, as long as any new leg symptoms are also mentioned to your GP.

Frequently asked

Questions people ask.

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

  • Why do I get cramps in my calves at night?

    The NHS says leg cramps are common and most people have them at night or when resting. Causes include ageing, strain from exercise, pregnancy, some medicines, dehydration and liver disease linked to alcohol, and sometimes no cause is found.

  • How long does a night cramp last?

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

  • What helps a cramp straight away?

    The NHS says stretching and massaging the muscle may ease the pain, and standing up and putting weight on the leg may also help. Painkillers will not work quickly enough during the cramp.

  • Can stretching before bed stop cramps?

    The NHS says regular calf stretching may help reduce cramps but may not completely stop them. Its routine is repeated for 5 minutes, 3 times a day, the last time just before bed.

  • Can my tablets cause cramps?

    They can. The NHS names statins and medicines for high blood pressure such as diuretics. Do not stop a medicine on your own; ask the GP or pharmacist.

  • Are night cramps a sign of something serious?

    Usually not. The NHS describes leg cramps as usually harmless. See a GP if you also have numbness or swelling in the legs, if cramps disturb your sleep or last more than 10 minutes.

  • Is quinine safe?

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

  • Do night cramps happen in pregnancy?

    The NHS lists pregnancy, usually in the later stage, among possible causes of leg cramps. Mention them to your midwife or GP.

  • Should I take painkillers for them?

    The NHS says paracetamol or ibuprofen can help ease muscle soreness after a cramp. Use them as the packet advises and check suitability with a pharmacist if you have other conditions.

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-10, next review 2027-10-10.