Free shipping on orders over £45

Leg Cramps at Night: How to Stop Them, Causes and Does Magnesium Help? (UK)

Leg cramps at night are common and usually harmless. To stop one, stretch and massage the muscle, or stand up and put your weight on that leg.

A woman on an exercise mat stretching her leg and reaching for her toes

Last updated: October 2026

Leg cramps at night are common and usually harmless. To stop one, stretch and massage the muscle, or stand up and put your weight on that leg. To prevent them, the NHS recommends calf stretches three times a day, the last just before bed. Ageing, exercise, pregnancy, dehydration and some medicines can all cause them.

Below: how to stop a leg cramp fast, the NHS stretch routine, causes, whether magnesium helps, cramps in pregnancy, and when to see a GP.

How to stop a leg cramp fast

  1. Stretch the muscle. For a calf cramp, straighten your leg and pull your toes up towards your shin.
  2. Stand up and put your weight on the affected leg.
  3. Massage the tight muscle firmly.
  4. Walk around for a minute once it eases.

A cramp can last from a few seconds to 10 minutes, and the muscle may feel sore for up to 24 hours. Paracetamol or ibuprofen can ease the soreness afterwards, but they work too slowly to help during the cramp itself.

How much water should you drink a day? Our guide gives the NHS guidance and simple signs you are getting enough.

Our pick

CBD Balm Muscle & Joint Support

CBD Balm is a cooling balm with 600mg of CBD, peppermint, eucalyptus and juniper. It is a cosmetic for massage, not a supplement.

Add CBD Balm to bag See ingredients and reviews

20mg of CBD per 2ml serving, made in the UK, with CBD batch reports on our lab testing page. Our balm’s product description mentions wintergreen oil, so ask a pharmacist before using it if you’re allergic to aspirin or take a blood thinner. For adults only. We don’t recommend our products during pregnancy or breastfeeding.

Subscribe and save 25% on your first order, then 20%. New to Evopure? Join our emails for 20% off a one-off first order. Free UK delivery over £45.

Subscribe £29.99One-off £39.99

View product

How to prevent leg cramps at night

The NHS calf stretch

  1. Stand facing a wall and put your hands on it.
  2. Step one foot back, keeping both heels flat on the floor.
  3. Lean forward until you feel the stretch in the back calf. Hold for a few seconds.
  4. Repeat for about 5 minutes, 3 times a day, with the last session just before bed.

Stretching may reduce cramps but might not stop them completely. If they become less frequent, you may only need to stretch once or twice a day.

Other habits that help

  • Drink enough fluids through the day, especially after exercise or in hot weather. See electrolytes.
  • Keep bedcovers loose around your feet so your toes aren’t pointed all night.
  • Warm up and cool down properly when you exercise. See muscle recovery.
  • Go easy on alcohol.

What causes leg cramps at night?

Why do I get leg cramps at night?

You get leg cramps at night partly because your muscles rest in a shortened position: lying with your toes pointed tightens the calf. The NHS says most people get cramps at night or when resting, and they become more common with age. Muscle tiredness after exercise, later pregnancy, dehydration and medicines such as statins and diuretics add to it.

Why do leg cramps hurt so bad?

Leg cramps hurt so badly because the whole muscle tightens hard on its own and won’t let go, often forming a knot you can feel. Experts think the signal starts in over-excited nerves rather than in the muscle itself. The NHS says a cramp lasts from seconds to 10 minutes, and the muscle can stay sore for up to 24 hours.

The NHS lists these causes. Often no clear cause is found:

Cause Notes
Ageing Cramps become more common as you get older
Exercise Muscle strain, especially in hot or humid weather
Pregnancy Particularly in the later stages
Medicines Such as statins and diuretics. Don’t stop a medicine without talking to your GP
Dehydration Not drinking enough
Heavy drinking Liver disease from alcohol
Unknown Often no clear cause is found

Does magnesium help leg cramps?

Magnesium is a popular choice for night cramps, but the evidence is weak. A Cochrane review found magnesium is unlikely to make a meaningful difference to cramps in older adults, and results in pregnancy were mixed. Magnesium does contribute to normal muscle function, so it makes sense if your diet is low in it, but stretching should come first. Keep supplements to 400mg a day or less. See magnesium for cramps and foods high in magnesium.

Many people also like to massage tight calves with a balm before bed. Our CBD Balm, Muscle and Joint Support is made for massage, and our Magnesium Glycinate Sleep Complex is an evening magnesium drink.

The FSA’s 10mg a day figure for CBD is precautionary advice rather than a legal limit, set while longer-term safety research continues. At Evopure we think it is a very cautious figure, and many adults use more. If you go above it, increase slowly, and check with your GP or pharmacist first if you take any medication.

The FSA advises healthy adults to take no more than 10mg of CBD a day: about 0.2ml of the 500mg (0.1ml of the 1,000mg) gives 10mg. Adults only. If you take any regular medicines, check with your GP or pharmacist first.

Leg cramps in pregnancy

Leg cramps are common later in pregnancy. The same stretches help. Speak to your midwife or GP before taking any supplement while pregnant. We don’t recommend our products during pregnancy or breastfeeding.

Cramps or restless legs?

Leg cramp Restless legs
Sudden, painful tightening of a muscle An urge to move your legs, with crawling or tingling feelings
The muscle feels hard No hard muscle
Eases with stretching Eases briefly with moving, then returns

See restless legs.

Severe leg cramps at night: when to see a GP

See a GP about severe leg cramps at night if they disturb your sleep, last longer than 10 minutes, or come with numbness or swelling in your legs, the NHS says. It’s also worth going if they started after a new medicine, such as a statin or diuretic, or come with muscle weakness. A GP looks for a cause first and suggests stretching.

If stretching hasn’t helped, a GP may discuss quinine tablets, which aren’t suitable for everyone; see how to get rid of leg cramps for the MHRA safety advice.

Get urgent help (GP or 111) if one calf is swollen, red, warm and painful, as this can be a sign of a blood clot. Call 999 if you also have chest pain or feel breathless.

Related guides

Next step

Do the NHS calf stretch every night before bed, then massage your calves with CBD Balm, a cooling balm with peppermint, eucalyptus and juniper (20mg of CBD per 2ml serving, 600mg per tub). It’s a cosmetic massage balm, not a treatment for cramps.

Add CBD Balm to bag See ingredients and reviews

Prefer an evening drink? Magnesium Glycinate Sleep Complex gives 290mg of magnesium (77% NRV) per 4.75g serving. Magnesium contributes to normal muscle function, but it isn’t proven to prevent cramps.

Subscribe and save 25% on your first order, then 20%. New to Evopure? Join our emails for 20% off a one-off first order. Free UK delivery over £45. Our balm’s product description mentions wintergreen oil, so ask a pharmacist before using it if you’re allergic to aspirin or take a blood thinner. If you take any regular medicines, check with your GP or pharmacist first. We don’t recommend our products during pregnancy or breastfeeding.

Sources 5

  1. NHS. Leg cramps.
  2. Garrison SR et al (2020). Magnesium for skeletal muscle cramps. Cochrane Database of Systematic Reviews.
  3. NHS. Vitamins and minerals: magnesium.
  4. MHRA. Quinine: not to be used routinely for nocturnal leg cramps. Drug Safety Update, June 2010.
  5. Rabbitt L et al (2016). A review of nocturnal leg cramps in older people. Age and Ageing.

This guide is general information, not medical advice. Evopure makes the CBD Balm and Magnesium Glycinate Sleep Complex.

Written by

Co-founder, Evopure

Martin co-founded Evopure and writes about sleep, stress and recovery. Our articles are general information, not medical advice.

Questions, answered

Stretch the muscle by pulling your toes towards your shin, stand up and put weight on the leg, and massage it.

Ageing, exercise, later pregnancy, dehydration, heavy drinking and some medicines such as statins and diuretics. Often no cause is found.

The evidence is weak. A Cochrane review found it's unlikely to help most older adults. Daily calf stretches are the first thing to try.

Low magnesium, potassium or calcium are sometimes linked, but most night cramps aren't caused by a deficiency. A GP can check if you're worried.

The whole muscle tightens hard and won't relax, often into a knot you can feel. The NHS says the muscle can stay sore for up to 24 hours afterwards.

See a GP if they disturb your sleep, last over 10 minutes, or come with numbness or swelling. Get urgent help for a hot, red, swollen calf.

Shop the article

Mentioned in this article

New here? Join our emails for 20% off your first order.

Here's your 20% off.

WELCOME20
Shop
Evopure
★ 4.7  ·  500,000+ customers  ·  UK made