İhsan Eren® Book a session
Health library

Condition guide

Night leg cramps

Being woken at night by a sudden, hard tightening in your calf can be exhausting. Leg cramps are very common and usually harmless. Most of the time no clear cause is found, but age, some medicines, pregnancy and not drinking enough can raise the risk. In research, regular stretching before bed has helped reduce cramps.

Last updated: 14 October 2026

50–60%Share of adults who report night leg cramps; it rises with age
Seconds – 10 minHow long a cramp lasts; afterwards the muscle can stay sore for up to 24 hours
6 weeksIn a study with stretching every night before bed, cramps became less frequent and less severe
3 times a dayRecommended calf stretching frequency; the last one just before bed

Symptoms

  • A sudden, painful tightening of a leg muscle; the muscle goes hard and it is difficult to move.
  • Most often in the calf, less often in the foot or thigh.
  • Usually starts at night or while resting.
  • Lasts from a few seconds to 10 minutes; afterwards the muscle can stay tender for about a day.

What causes it?

  • Most of the time no clear cause is found.
  • Age: It becomes more common as you get older.
  • Straining the muscles: Especially hard exercise in hot and humid weather.
  • Pregnancy: Usually in the later stages.
  • Medicines: Statins for cholesterol, diuretics for blood pressure.
  • Other: Not drinking enough fluids; liver disease caused by alcohol.

What can I do during a cramp?

  • Stretching or massaging the muscle can ease the pain; a cramp usually passes without treatment.
  • You can straighten your leg and pull your toes up towards you.
  • Paracetamol or ibuprofen can ease the soreness afterwards, but they work too slowly to help during a cramp.

Conditions mistaken for cramps

  • Restless legs: An irresistible urge to move the legs; there is no painful tightening. See the guide.
  • Calf pain when walking: Pain that starts with walking and eases with rest can be a sign of narrowed leg arteries.
  • Numbness, tingling or electric-shock-like pain: Suggests a problem with the nerves. You can look at the diabetic neuropathy guide.
  • Swelling and throbbing pain in one leg: This could be a blood clot; see the warning signs below.

To reduce cramps

1

Stretch before bed

In a study of 80 people over 55, those who stretched their calves and hamstrings every night before bed for 6 weeks had cramps that were less frequent and milder.

2

Stretch during the day too

You can do the calf stretch 3 times a day. If cramps become less frequent, once or twice a day may be enough. Stretching may not stop cramps completely.

3

Check your medicines

If the cramps started after a new medicine, you can talk to your doctor rather than stopping it yourself.

4

Enough fluids

Not drinking enough is linked with cramps; you can make sure you drink enough water, especially in hot weather and when exercising.

If cramps disturb your sleep, the sleep guide may also help.

Exercises at home

Six movements against cramps

Stretch slowly and do not bounce; a mild stretch is enough. If a cramp starts during a stretch, stop and massage the muscle.

Towel stretch

Stretching during a cramp

Straighten your leg and pull your toes up towards you; if you cannot reach, you can use a towel. Rub the tight muscle with your palm. If you can stand up, taking a few steps pressing through your heel may also help it relax.

Until the cramp passes
Wall calf stretch

Wall calf stretch

Stand facing a wall and place your hands on it with your arms stretched out. Step one leg back, keeping the knee straight and the heel on the floor. Lean forward until you feel a stretch in your calf, hold for 2–3 seconds, then stand up straight. Repeat, switching legs.

5 minutes, 3 times a day; the last one just before bed
Bent-knee calf stretch

Bent-knee calf stretch

In the same position, bring your back foot slightly forward and bend the knee. Lower your hips without lifting your heel; feel the stretch in the lower part of the calf.

20–30 seconds each leg, 2–3 times
Seated hamstring stretch

Seated hamstring stretch

Sit on the front edge of a chair. Stretch one leg out in front with the heel on the floor and the toes pointing up. Keeping your back straight, lean forward from the hips until you feel a stretch at the back of your thigh. Hold, then switch legs.

20–30 seconds each leg, before bed
Towel stretch

Towel calf stretch in bed

Sit on the bed with your legs straight. Loop a towel around the front of your foot and hold the ends. Keeping your knee straight, pull the towel towards you until you feel a stretch in your calf.

20–30 seconds each leg, before bed
Brisk walking

Gentle movement before bed

Before bed, you can walk at an easy pace or ride an exercise bike for a few minutes. The benefit has not been proven in research; some people say it helps.

A few minutes

Frequently asked questions

Does magnesium help?

According to a large Cochrane review, magnesium is unlikely to meaningfully reduce cramps in older adults who have cramps without a clear cause. For cramps in pregnancy, the studies conflict and the evidence is very uncertain. You can ask your doctor or pharmacist before taking a supplement.

Should I take quinine or tonic water?

Do not take it on your own. In some countries, quinine can be prescribed under a doctor’s supervision when exercise has not helped; but because it can have serious side effects, such as a drop in blood platelets and heart rhythm problems, it is not recommended for leg cramps in the USA.

Can my medicine cause cramps?

It can. Statins used for cholesterol and diuretics used for blood pressure are among the medicines linked with cramps. If your cramps started after a new medicine, do not stop it yourself; you can talk to your doctor.

Cramp or restless legs?

A cramp is a sudden, painful tightening; the muscle goes hard and you can often see it. In restless legs syndrome, there is an irresistible urge to move the legs, which usually gets worse in the evening and eases with movement, and there is no painful tightening.

When should you see a doctor?

  • If cramps disturb your sleep
  • If you also have numbness or swelling in your legs
  • If a cramp lasts longer than 10 minutes
  • Same day: if you have throbbing pain, swelling, or red or darkened skin in one leg (it could be a blood clot)
  • Urgent: if these symptoms come with breathlessness or chest pain, call 112 straight away

Sources

  1. HSE. Leg cramps. Page last reviewed 1 July 2024.
  2. Allen RE, Kirby KA. Nocturnal leg cramps. American Family Physician. 2012;86(4):350–355.
  3. Hallegraeff JM, van der Schans CP, de Ruiter R, de Greef MH. Stretching before sleep reduces the frequency and severity of nocturnal leg cramps in older adults: a randomised trial. Journal of Physiotherapy. 2012;58(1):17–22.
  4. Garrison SR, Korownyk CS, Kolber MR, et al. Magnesium for skeletal muscle cramps. Cochrane Database of Systematic Reviews. 2020;(9):CD009402.
  5. NHS. DVT (deep vein thrombosis). Page last reviewed 30 April 2026.

More from the health library

Book a session on WhatsApp