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 broad spectrum CBD, peppermint, eucalyptus and juniper. It is a cosmetic for massage, not a supplement.

Add CBD Balm to bag See ingredients and reviews

Broad spectrum with 0% THC, every batch third-party lab tested, made in the UK. For adults only. We don’t recommend our products during pregnancy or breastfeeding. 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?

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.

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.

When to see a GP

The NHS advises seeing a GP if cramps disturb your sleep, last longer than 10 minutes, or come with numbness or swelling in your legs. A GP will look for a cause and may suggest stretching. If that doesn’t help, they may discuss quinine tablets, which aren’t suitable for everyone. Get urgent help if one calf is swollen, red, warm and painful, as this can be a sign of a blood clot.

Related guides

Sources 3

  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.

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.

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

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