Leg Cramps at Night: Why They Happen and What Helps

Leg cramps at night are common, and a simple bedtime stretch may help.

Close-up of hands massaging a client’s leg, a simple way to relax the muscle after leg cramps at night
Photo by Gustavo Fring.

NIGHT CRAMPS · RECOVERY AND HABITS

A hard knot seizes your calf in the dark, and suddenly you are awake and hopping across the bedroom floor. Leg cramps at night are startling, painful and, for most adults, surprisingly common.

They are usually harmless, but they can chip away at the sleep that your training and recovery depend on. This guide explains who gets them, what may trigger them, how to stop one quickly, which popular remedies have evidence behind them and when a cramp deserves a call to your doctor.

How common leg cramps at night are

Cleveland Clinic says up to 60 percent of adults get nighttime leg cramps and that nearly every adult aged 50 or older will have one at some point. Among people over 60, a third have one at least once every two months. About three in four reported cases happen at night. The cramp usually strikes the calf, foot or thigh and lasts from several seconds to several minutes.

Age seems to play a part. Mayo Clinic says the risk rises as you get older, and pregnancy raises it as well. Cleveland Clinic also lists being female as a risk factor and notes that tendons shorten with age.

What may be behind night cramps

Most of the time, no clear cause turns up. Mayo Clinic says tired muscles and nerve problems are the likely contributors. A few everyday patterns seem to raise the odds:

  • Muscle fatigue, which may follow an unusually long hike or a hard leg session
  • Long periods of sitting, or standing and working on concrete
  • Too little physical activity
  • Dehydration

Some medicines are linked with cramps as well. Mayo Clinic names birth control pills and medicines for blood pressure and high cholesterol, along with a possible but unconfirmed link to drugs that increase urination. Cleveland Clinic’s longer list includes statins, naproxen and gabapentin. Never stop a prescription on your own. Instead, ask your doctor or pharmacist whether it could be playing a role.

Health conditions can sit behind cramps too, including kidney failure, diabetic nerve damage, thyroid disorders and peripheral artery disease, although these typically bring other symptoms as well. Restless legs syndrome is often confused with cramps, but it is different. It usually does not hurt. It brings a crawling sensation and an urge to move, and moving relieves it.

How to stop a cramp right now

When the muscle locks up, work through these steps in whatever order your leg will let you:

  1. Stretch it. Straighten your leg and pull your foot up toward your face. If you can stand, Mayo Clinic suggests putting your weight on the affected leg and bending the knee slightly.
  2. Keep moving. Walk around or shake the leg. Pressing your feet into the floor can help too.
  3. Rub it. Gentle massage can help a cramped muscle relax.
  4. Add heat or cold. Try a warm towel, a heating pad or a warm bath or shower. Some people prefer to massage the muscle with ice.
  5. Treat the soreness. If the muscle still aches, an over-the-counter pain reliever may help. Follow the label, and raise the leg once the cramp has eased.

Can stretching before bed prevent leg cramps at night?

It may, and it is cheap and low-risk. In a 2012 randomized trial in the Journal of Physiotherapy, 80 adults over 55 stretched their calves and hamstrings just before sleep for six weeks. Compared with a group that did no specific stretching, they had fewer cramps (a mean difference of 1.2 per night) and milder ones (1.3 centimeters on a 10-centimeter pain scale). Nobody dropped out of the study.

The evidence is not uniform, however. A review in American Family Physician also describes a trial of 191 people over 60, all taking quinine, in which stretching three times a day for 12 weeks did not reduce cramps compared with sham exercise. So treat bedtime stretching as worth a fair trial rather than a guaranteed fix.

A simple routine borrows from the research and from clinic advice. For the calves, Cleveland Clinic describes standing about 3 feet from a wall, leaning toward it and holding for a count of five, repeating for at least five minutes three times a day. Even a shorter version before bed may be a useful place to start. For the backs of your thighs, try one of these gentle hamstring stretches. Mayo Clinic also suggests a few minutes on a stationary bike before bed, if you have one.

Supplements and medicines: what the evidence says

Many people reach for a bottle first. The research offers little support for most of the options, and one carries serious risks.

OptionWhat the evidence showsBottom line
MagnesiumA 2020 Cochrane review, summarized here, judged it unlikely to help cramps with no known cause and found it probably makes little or no difference in older adults. Stomach upset affected 11 to 37 percent of users.Probably not worth trying for typical night cramps
QuinineIt reduced cramps in reviews but carries risks including low platelet counts, hypersensitivity reactions and heart rhythm problems. The FDA has not approved it for leg cramps.Not recommended
B-complex vitaminsOne 12-week trial of 28 older adults in Taiwan reported remission in 86 percent of those treated, but its reporting had gaps.Unproven
DiltiazemOne crossover trial of 13 patients found fewer cramps, with no change in intensity.Too little evidence to rely on
Vitamin E, verapamil, pain relieversA 2014 review found no evidence that they prevent cramps.Not useful for prevention

Habits that may lower your odds

Most of the advice below comes from clinical experience rather than trials, but it is low-risk and easy to test for yourself.

  • Drink steadily through the day. Mayo Clinic advises plenty of fluids while limiting alcohol and caffeine. Our guides to hydration around exercise and alcohol and recovery go into more detail.
  • Loosen the covers. Untuck the sheets and blankets at the foot of the bed so your feet are not pinned down.
  • Try a new position. If you sleep on your back, Cleveland Clinic suggests keeping your toes pointing up.
  • Wear supportive shoes. Both Mayo Clinic and Cleveland Clinic recommend well-supported footwear during the day.
  • Condition your legs gradually. Daytime leg exercise is part of the prevention advice, and calf raises are a simple place to begin. Build up slowly rather than jumping into a big new volume of walking or lifting.

When to call your doctor

Make an appointment if cramps leave you tired during the day, or if you notice muscle weakness or muscle loss along with them. Also get checked if they are very painful, frequent or long-lasting, repeatedly wake you or come with leg swelling, numbness or skin changes.

Seek care right away if severe cramping will not stop, if a cramp lasts longer than 10 minutes or becomes unbearable, or if cramps follow exposure to a toxin such as pesticides, industrial chemicals or heavy metals. One calf that stays painful, warm or swollen after a cramp should be looked at promptly as well.

Bring a list of your medicines to the appointment, along with notes on when your cramps happen. And if you have heart disease, diabetes or kidney disease, or you are pregnant or recovering from surgery, talk with your doctor before changing your exercise or starting any supplement.

BEDTIME LEG ROUTINE

A five-minute wind-down for your legs

  1. Walk or pedal easily for a few minutes.
  2. Do a wall calf stretch on each leg.
  3. Stretch each hamstring gently.
  4. Untuck the covers at the foot of the bed.
  5. Keep a warm towel or heating pad within easy reach, and jot down any cramps, including what you did that day.

Give the routine a few weeks before you judge it. In the 2012 trial, participants stretched every night for six weeks.

This article is for general information and is not a substitute for personal medical advice.

Are you a fitness or wellness professional with a member journey to share?

Share This Article