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.
iBelow: 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
- Stretch the muscle. For a calf cramp, straighten your leg and pull your toes up towards your shin.
- Stand up and put your weight on the affected leg.
- Massage the tight muscle firmly.
- 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 £40.
Subscribe £23.99One-off £39.99
View productHow to prevent leg cramps at night
The NHS calf stretch
- Stand facing a wall and put your hands on it.
- Step one foot back, keeping both heels flat on the floor.
- Lean forward until you feel the stretch in the back calf. Hold for a few seconds.
- 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. Taking magnesium with heart medicines? See magnesium and heart medication.
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
iLeg 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.
iIf 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
- Our comparison of magnesium glycinate, citrate and threonate.
- Does magnesium help you sleep? Our evidence-led UK guide.
- If your calves or thighs flicker rather than cramp, see muscle twitching in the legs.
- If the pain is in your heel and arch when you first get out of bed, it may be plantar fasciitis rather than cramp.
- Morning stiffness at the back of the heel is a different problem: see Achilles tendonitis symptoms.
- A quick kick or jolt as you drift off, with no pain, is more likely a hypnic jerk than a cramp.
- If you have seen magnesium sprays sold for night cramps, our guide to magnesium spray explains what the evidence shows.
- If it’s an urge to move rather than a painful knot, read restless legs at night: causes and what helps.
- If you try magnesium, our guide on magnesium before bed covers timing, food and medicine gaps.
- Cramps alongside bone pain or weak thigh muscles are worth checking with your GP; see low vitamin D symptoms.
- If you decide to try magnesium, our magnesium supplement buying guide explains which forms absorb well.
- Which type of magnesium to take, from glycinate to citrate.
- If you like to massage tight calves before bed, our guide to CBD balm covers how to use one and patch testing.
- If you try magnesium for cramps, read magnesium side effects first, as diarrhoea is the usual sign of too much.
- Night cramps are common in later life; our guide to magnesium for older adults explains what magnesium can and can’t do.
- Statins and tiredness: what the NHS says.
- Total Relief Magnesium Cream: what’s in it and does it work?
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 £40. 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
- NHS. Leg cramps.
- Garrison SR et al (2020). Magnesium for skeletal muscle cramps. Cochrane Database of Systematic Reviews.
- NHS. Vitamins and minerals: magnesium.
- MHRA. Quinine: not to be used routinely for nocturnal leg cramps. Drug Safety Update, June 2010.
- 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.

































