Night leg cramps are sudden, painful contractions, usually in the calf or foot. They wake you from sleep and leave the muscle sore the next day.
What a cramp is
A cramp is a muscle that contracts and does not relax. The cause is often unclear, but fatigue, dehydration and certain medicines contribute.
Most cramps are harmless, though they are disruptive.
Stretching
A gentle calf stretch before bed reduces cramps for many people. When a cramp starts, pull the toes toward you and straighten the knee slowly.
Forcing the stretch too hard can cause soreness.
Hydration and electrolytes
Dehydration and low salt can contribute, especially in hot weather or after exercise. Water and normal meals usually suffice; supplements are rarely necessary.
Our guide to walking and leg cramps covers a different movement problem at night.
Warmth
Cold muscles cramp more easily. Warm socks, a warm bath or a hot water bottle before bed helps some people.
Keep the room comfortable rather than cold.
Medication review
Diuretics, statins and some asthma medicines are associated with cramps. A review can identify a contributor, but never stop a medicine alone.
Bring the full list to the appointment.
Exercise and fatigue
Very hard exercise or standing all day can trigger cramps at night. Gentle stretching and gradual training reduce the risk.
Build intensity slowly rather than in bursts.
Sleep position
Pointing the toes stretches the calf and can provoke a cramp. Sleeping with the feet slightly flexed and the bedding loose helps.
A pillow under the calves changes the angle for some people.
Pregnancy and age
Cramps are more common in pregnancy and later life. In pregnancy, stretching and warmth are the first steps, and persistent cramps should be discussed at check-ups.
Do not start supplements without advice.
When to seek help
Cramps with swelling, redness, warmth or a hard painful calf need urgent assessment to rule out a clot. Frequent cramps, weakness or numbness also need review.
Do not massage a suspected clot.
Magnesium and salt
Supplements are widely marketed for cramps, but trials show little consistent benefit. Food sources are safer, and salt tablets are rarely needed.
Ask before adding anything, especially with heart or kidney problems.
Calf strength
Weak calves tire more easily and cramp more often. Heel raises and gentle resistance work build tolerance over weeks.
Progress slowly and stretch afterwards.
Footwear
Very flat or very high shoes change calf load. Supportive shoes for long days reduce fatigue that shows up at night.
Warm socks at bedtime are a simple addition.
If cramps are frequent and severe, a blood test can check for low iron, thyroid problems or electrolyte issues. Most results are normal, but the check is quick and rules out treatable causes. Keep a note of when cramps happen and what you did that day, because that pattern often points to the fix. Persistent cramps deserve a review.
NHS leg cramps guidance covers the general guidance.
The takeaway
Stretch the calves daily, stay hydrated, keep the legs warm and review medicines that may contribute. Sudden swelling or a hot calf needs urgent care.
Most cramps respond to simple, steady habits.
Frequently asked questions
What causes night leg cramps?
Often the cause is unclear. Fatigue, dehydration and some medicines contribute, and most cramps are harmless.
What should I do during a cramp?
Pull the toes toward you and straighten the knee slowly. Gentle stretching is better than forcing it.
Do I need supplements?
Rarely. Water and normal meals usually suffice; ask before starting magnesium or salt tablets.
When is a cramp urgent?
Swelling, redness, warmth or a hard painful calf needs urgent assessment to rule out a clot.
Read next
Teeth Grinding at Night: Protecting Jaw and Sleep
Grinding happens after you fall asleep, so daytime habits matter most.