Night Leg Cramps in Adults, Older People and Pregnancy: Why the Calf Locks, What Stops It and Where Muscle Relaxants Fit
🌙 It usually starts in the small hours. You turn over, point your toes under the blanket, and the calf suddenly knots into a hard, painful lump that will not let go. A night leg cramp is one of the most common reasons adults wake up in pain, and in most people it is harmless, even if it does not feel that way. 🔍 The trouble is that the same complaint can hide something else: restless legs, poor circulation, nerve damage, a thyroid problem, or a medicine that is quietly causing the cramps. This guide explains why cramps hit at night, who gets them most (older adults and pregnant women in particular), how to stop one in seconds, which bedtime habits prevent them, why quinine fell out of favour, and where muscle relaxants such as baclofen, methocarbamol and tizanidine really fit, which is a smaller place than many people expect.
🦵 What a night leg cramp actually is
⚡ A nocturnal leg cramp is a sudden, involuntary and painful tightening of a muscle, most often the calf, sometimes the sole of the foot or the thigh. The muscle contracts hard on its own and stays contracted until it is stretched or the episode burns out. You can often feel or even see the knot under the skin, and the toes may curl or point. When it releases, the muscle can stay sore and tender for hours or into the next day, which is why many people feel as if they pulled something.
📖 Doctors separate these ordinary cramps from spasticity, the constant stiffness after a stroke, spinal injury or multiple sclerosis. Spasticity is a different problem with different treatment, and it is explained in our guide to spasticity and why tight muscles are not a cramp. Night cramps come in episodes, mostly at rest, and the muscle is normal between them.
👥 Who gets them most
📈 Almost everyone has a cramp now and then, but frequent night cramps cluster in certain groups. Age is the strongest factor: muscles and tendons shorten, activity drops, and more medicines enter the daily routine. Pregnancy is the second big group, followed by people with diabetes, kidney disease, liver cirrhosis, circulation problems, nerve damage and an underactive thyroid. In many otherwise healthy adults no cause is ever found, and doctors call these idiopathic cramps.
🧠 Why the calf locks at night
🔬 The exact mechanism is still debated, but the leading idea is that cramps start in the nerve endings that drive the muscle, not in the muscle fibres themselves. When the nerve becomes overexcitable, it fires in bursts and the muscle cannot relax. Lying in bed with the foot pointed down, the calf sits in its shortest position for hours, and a short, tired muscle seems to be the easiest one to set off.
🏃 Several things make the nerve more irritable: a day of long standing or unusual exercise, dehydration, alcohol, low levels of some minerals, and certain medicines. Sitting for long periods with knees bent also shortens the calf. This is why cramps often appear after a long walk, a flight, gardening, or a day of standing on a hard floor.
🔎 Cramp or something else?
🩺 Several night-time leg problems are confused with cramps, and they matter because the treatments are completely different. A muscle relaxant will not help restless legs, and stretching will not open a narrowed artery.
| 🔎 Problem | 📋 How it feels | 🧭 Key clue |
|---|---|---|
| Night leg cramp | Sudden hard knot, sharp pain, seconds to minutes | Stretching the muscle ends it |
| Restless legs syndrome | Crawling, pulling urge to move, no hard knot | Moving relieves it, returns when still |
| Claudication (poor circulation) | Aching calf on walking | Stops after a few minutes of rest |
| Peripheral neuropathy | Burning, tingling, numbness in feet | Constant, often both feet, worse at night |
| Deep vein thrombosis | Lasting ache, one calf swollen, warm, red | Does not go away with stretching |
| Spinal stenosis | Heavy, numb legs on standing or walking | Better when sitting or bending forward |
🐾 Restless legs: the most common mix-up
🛏️ Restless legs syndrome is not a muscle cramp at all. It is an urge to move the legs, with an unpleasant creeping or pulling feeling, that comes on when sitting or lying still and eases while walking. There is no hard, visible knot and no sharp pain. Low iron stores are a common cause, and some antihistamines and antidepressants make it worse. When it needs medicine, a dopamine agonist such as Mirapex (Pramipexole) at a small dose two to three hours before bed, or gabapentin, is used. We cover the long-term problems with these drugs in restless legs on pramipexole: iron first and the lowest night dose.
🫀 Claudication and poor circulation
🚶 In peripheral arterial disease, narrowed arteries cannot deliver enough blood to working muscles. The classic sign is calf pain that comes on after walking a predictable distance and disappears after a few minutes of standing still. It is a daytime, effort problem, not a sleep problem, although advanced disease can cause pain in the foot at night that improves when the leg hangs over the side of the bed. That night pain is a warning sign that needs prompt review. Smokers, people with diabetes and those with high cholesterol are most at risk.
💊 Treatment starts with stopping smoking, a structured walking programme, a statin and usually an antiplatelet medicine. For people whose walking distance stays short, cilostazol can increase how far they walk before the pain starts. Pletal (Cilostazol) is usually taken as 100 mg twice daily, 30 minutes before or two hours after breakfast and the evening meal, and it must not be used in heart failure. It does not treat ordinary night cramps.
⚡ Nerve pain and neuropathy
🦶 Damaged nerves in the feet and legs, most often from diabetes, alcohol, low vitamin B12 or some chemotherapy drugs, can cause both true cramps and burning, electric or tingling pain. When the main complaint is burning or numb feet rather than a hard knot, the problem is the nerve and the treatment is a nerve pain medicine. Gabapentin, such as Neurontin (Gabapentin), is usually started low at night and raised slowly; it causes drowsiness and dizziness, and the dose must be reduced when kidney function is low. For more, see diabetic neuropathy: more than tingling.
🏥 Medical conditions linked to cramps
🧪 Frequent cramps are sometimes the first visible clue to another condition. A short list of conditions explains a large share of cramps that are not idiopathic, and many of them are easy to check with a blood test.
📖 If tiredness and feeling cold come with the cramps, the thyroid is worth checking; our guide to hypothyroidism symptoms and treatment explains the tests. Once the thyroid is treated with levothyroxine, such as Synthroid (Levothyroxine), cramps often settle over the following weeks.
💊 Medicines that can trigger cramps
📋 A medicine review is one of the most useful steps for anyone whose cramps began or worsened in recent months. Look at what was started or increased in the weeks before the cramps began; that timing is often the best clue. Never stop a prescribed medicine on your own, but do bring the list to your doctor or pharmacist.
🚨 Stopping a cramp in the moment
🧘 The fastest way to end a calf cramp is to stretch the cramping muscle against its pull, which sends a signal back to the spinal cord that switches off the firing. Most cramps release within a minute once the stretch is held.
⚠️ Older adults should take care when getting out of bed in the dark with a cramp. Falls at night are a bigger danger than the cramp itself, so sit on the edge of the bed first, switch on a light and hold something steady before standing to stretch.
🛏️ Bedtime habits that prevent cramps
🌙 Small changes to how the legs rest at night can cut the number of cramps. The main aim is to stop the calf lying in its shortest position for hours.
🧘 A calf stretching routine
💪 Stretching is the first treatment most guidelines recommend because it is cheap, safe and suits everyone. Trials have given mixed results, but a short daily routine before bed helped older adults in at least one controlled study, and it carries no risk of side effects or interactions.
🧂 Magnesium, potassium and other supplements
🧪 Magnesium is the most popular home remedy for cramps, but the evidence is weak. A large review of trials found that magnesium is unlikely to help typical cramps in older adults, while results in pregnancy are mixed. It is still worth correcting a proven low level, especially in people on diuretics or with a history of diarrhoea. Potassium tablets should only be taken when a blood test shows a low level, because too much potassium is dangerous, especially with kidney disease or with some blood pressure tablets.
⚠️ Quinine: why doctors moved away from it
📜 For decades quinine was the standard tablet for night cramps, and it does reduce their number modestly. The problem is the rare but serious harm: severe drops in blood platelets, kidney damage, dangerous heart rhythms and serious allergic reactions, some of them fatal. Several regulators warn against using it for ordinary cramps, and others allow it only for cramps that badly disturb sleep after everything else has failed, with a trial of about four weeks and a stop if there is no clear benefit.
⚠️ Quinine is not for:
🔹 Pregnancy, where it is contraindicated.
🔹 People with heart rhythm problems or on medicines that prolong the QT interval.
🔹 Anyone with a past reaction to quinine, including tonic water reactions, or with low platelets.
🔹 Long-term use without regular review. Stop it at once and seek help if bruising, bleeding, rash, fever or ringing in the ears appear.
💊 Where muscle relaxants fit
🤔 It seems logical that a muscle relaxant would prevent a muscle cramp, but for ordinary idiopathic night cramps the evidence for baclofen, methocarbamol and tizanidine is limited, and their side effects (drowsiness, dizziness, falls) weigh more heavily at night and in older people. Where they do have a place is in specific groups: cramps in liver cirrhosis, cramps alongside spasticity or nerve disease, and, under specialist advice, frequent severe cramps where the cause cannot be removed.
💊 Baclofen: doses, side effects and who should avoid it
🧬 Baclofen calms the nerve signals in the spinal cord that keep muscles contracted. When a doctor uses it for cramps, the dose is kept low, for example 5 mg once to three times a day, and raised slowly only if needed. Much higher doses are used for spasticity, but they are rarely needed or wise for cramps. Taking the main dose in the evening covers the night while limiting daytime drowsiness.
| 🚫 Situation | 📝 Why it matters |
|---|---|
| Reduced kidney function or dialysis | Baclofen is cleared by the kidneys and can build up, causing confusion, deep drowsiness and even coma; it is generally avoided in kidney failure |
| Older age | More drowsiness, confusion, dizziness and falls; start with the smallest dose |
| Epilepsy or past seizures | May lower the seizure threshold |
| Alcohol, sleeping tablets, opioids | Added sedation and slowed breathing |
| Sudden stopping after regular use | Withdrawal can cause hallucinations, fever and seizures; reduce over one to two weeks |
| Pregnancy | Not used for ordinary pregnancy cramps |
💡 Common side effects are drowsiness, weakness, dizziness, nausea and low mood in some people. A muscle that is weaker by day is a sign the dose is too high, especially in someone who needs leg strength to walk safely.
⚖️ Methocarbamol and tizanidine compared
📋 Both are sometimes suggested for cramps, mostly because they are familiar muscle relaxants. Neither is a first choice for idiopathic night cramps, and both cause drowsiness. They differ mainly in safety concerns.
💊 Methocarbamol
📋 Used short term for painful muscle spasm after a strain
😴 Drowsiness, dizziness, blurred vision
🟤 Urine may turn brown, black or green, which is harmless
👴 Listed among medicines best avoided in older adults because of falls
💊 Tizanidine
📋 Licensed for spasticity, started at 2 mg
📉 Can lower blood pressure and cause fainting
🧪 Liver blood tests are checked during longer use
🚫 Must not be taken with ciprofloxacin or fluvoxamine
🎯 When the cause can be treated
🔍 The most reliable way to reduce cramps is to find and treat what drives them. A single targeted change often works better than any general cramp tablet.
| 🔎 Found cause | ✅ Main step | 💊 Medicine example |
|---|---|---|
| Underactive thyroid | Replace thyroid hormone | Synthroid (Levothyroxine) |
| Diuretic with low minerals | Review dose or switch, correct levels | Prescriber decision |
| Restless legs, not cramps | Iron check, then small night dose | Mirapex (Pramipexole) |
| Nerve pain from neuropathy | Sugar control, nerve pain medicine | Neurontin (Gabapentin) |
| Claudication | Stop smoking, walking programme, statin | Pletal (Cilostazol) |
| Cirrhosis cramps | Liver team review, minerals, albumin | Lioresal (Baclofen) at low dose |
👴 Night cramps in older adults
🧓 Older adults have the most cramps and the most to lose from treatment side effects. Kidney function falls with age, so drugs cleared by the kidneys, baclofen included, build up more easily, and sedating medicines raise the risk of confusion and falls at night. Lists of medicines that are potentially inappropriate in older people include most muscle relaxants for exactly this reason. Older adults also take more of the tablets that cause cramps, such as diuretics and statins, so a medicine review is especially useful.
🧭 What this means in practice:
🔹 Start with stretching, positioning and a medicine review before any new tablet.
🔹 Ask for a kidney blood test (eGFR) before baclofen, and for the smallest dose if it is used.
🔹 Avoid combining a muscle relaxant with sleeping tablets, strong painkillers or alcohol.
🔹 Keep a night light on the route to the bathroom and get up slowly during a cramp.
🤰 Night cramps in pregnancy
👶 Leg cramps are very common in pregnancy and usually appear or worsen from the middle of pregnancy onward. The growing weight, changes in circulation and fluid, and shifts in minerals all play a part, and the cramps normally fade after the birth. Stretching before bed, regular gentle walking, staying well hydrated and lying on the left side with a pillow between the knees help many women.
Uncommon
Start to appear, often at night
Most frequent
Usually settle within weeks
💊 Magnesium has been tried in pregnancy with mixed results; some midwives suggest it, and it is generally considered safe at usual supplement doses, but any supplement should be agreed with the midwife or doctor first. Quinine is contraindicated, and muscle relaxants are not used for ordinary pregnancy cramps.
🫀 Cramps in cirrhosis and on dialysis
🟡 In liver cirrhosis, muscle cramps are common and can wreck sleep and quality of life. Small trials found that low-dose baclofen and, separately, methocarbamol reduced cramp frequency in cirrhosis, and liver teams sometimes use them after checking minerals and kidney function. Correcting low sodium, zinc or magnesium and reviewing diuretic doses comes first. Anyone with cirrhosis should only take muscle relaxants under their liver team, because confusion from a sedative can look like, or trigger, liver-related confusion.
💉 On dialysis, cramps usually strike during or just after a session, when fluid is removed quickly. The fix is mostly in the dialysis prescription: the target dry weight, the rate of fluid removal and the sodium in the fluid, plus limiting weight gain between sessions. Baclofen is generally avoided in dialysis patients because it accumulates. More on fluid balance in kidney failure in fluid overload: the real face of kidney failure.
🧭 A simple decision path
🧪 What a doctor may check
🩺 For occasional cramps no tests are needed. For frequent cramps, a short examination and a few blood tests rule out the common treatable causes. The doctor will look at the legs, the pulses in the feet, reflexes and sensation, and ask about medicines, alcohol, exercise and sleep.
- 📌 Blood sugar or HbA1c for diabetes
- 📌 Kidney function, sodium and potassium
- 📌 Calcium and magnesium
- 📌 Thyroid function (TSH)
- 📌 Liver tests when alcohol or liver disease is possible
- 📌 Creatine kinase when a statin is taken and muscles ache
- 📌 Ankle pulse pressures if claudication is suspected; nerve tests if there is weakness or wasting
📖 If leg pain comes mainly on standing and walking and eases when you sit or bend forward, the cause may be in the spine rather than the calf; see lumbar spinal stenosis: leg pain when walking that eases when sitting. Matching the pattern of pain to its cause saves months of the wrong treatment.
🗿 Myths about night leg cramps
🚨 When to see a doctor
⛔ Get medical help the same day if:
🔹 One calf is swollen, warm, red or painful for hours, especially after a flight, surgery, or in pregnancy.
🔹 Leg pain comes with chest pain or breathlessness; call emergency services.
🔹 Muscle pain comes with weakness and dark urine, particularly on a statin.
🔹 The foot is cold, pale or painful at rest, or a sore on the foot is not healing.
🔹 Cramps come with muscle twitching, weakness or wasting, or spread to the arms and body.
🔹 Cramps are frequent, wreck your sleep, or started after a new medicine.
❓ Frequently asked questions
Why do I get leg cramps at night?
Usually because the calf rests in a short, pointed-foot position for hours and its nerve becomes overexcitable. Age, tiredness, dehydration, some medicines and conditions such as diabetes or thyroid problems add to it.
How do I stop a leg cramp quickly?
Pull the toes toward the shin with the knee straight, or stand and press the heel into the floor. Hold for 30 to 60 seconds, then massage and walk a few steps.
Does magnesium help night leg cramps?
In older adults, trials suggest it is unlikely to help typical cramps. Results in pregnancy are mixed. It is worth correcting a proven low level.
Is quinine still used for leg cramps?
Rarely. It has modest benefit but can cause serious blood, kidney, heart and allergic reactions. Some regulators advise against it; others allow a short trial only for severe cramps after other measures fail.
Can baclofen help with leg cramps?
Evidence for ordinary cramps is limited. Small trials found benefit for cramps in liver cirrhosis at low doses. It is avoided in kidney failure and used carefully in older adults.
Are night leg cramps a sign of something serious?
Usually not. See a doctor if cramps are frequent, began after a new medicine, or come with swelling, weakness, muscle twitching, numbness or pain on walking.
How can I tell a cramp from restless legs?
A cramp is a sudden hard, painful knot that stretching releases. Restless legs is an urge to move with a crawling feeling that walking relieves, without a hard knot.
What helps leg cramps in pregnancy?
Stretching before bed, gentle walking, good hydration and sleeping on the side with a pillow between the knees. Ask the midwife before supplements. Quinine must not be used.
Which medicines can cause leg cramps?
Diuretics, long-acting asthma inhalers, statins, raloxifene, oestrogen tablets and teriparatide are among the most common. Do not stop them yourself; ask the prescriber.
Why does my calf hurt the day after a cramp?
A strong cramp strains the muscle fibres, leaving soreness that can last hours to a day. Warmth, gentle stretching and walking ease it.
📑 Sources and editorial
- 📘 Clinical guidance on the assessment and treatment of nocturnal leg cramps in primary care
- 🧠 Neurology practice reviews on the treatment of muscle cramps
- 🧪 Systematic reviews of magnesium for muscle cramps and of interventions for leg cramps in pregnancy
- ⚠️ Regulatory safety communications on quinine for leg cramps
- 👴 Published lists of potentially inappropriate medicines in older adults
- 🟡 Hepatology reviews and small trials of muscle cramps in liver cirrhosis
- 💊 Product information for baclofen, methocarbamol, tizanidine, gabapentin, pramipexole, cilostazol and levothyroxine
- 📖 Related reading: spasticity and the baclofen rules, restless legs on pramipexole, diabetic neuropathy, hypothyroidism, lumbar spinal stenosis, fluid overload in kidney failure
- 🛒 Related products: Lioresal (Baclofen), Baclof (Baclofen), Robaxin (Methocarbamol), Zanaflex (Tizanidine), Neurontin (Gabapentin), Mirapex (Pramipexole), Pletal (Cilostazol), Synthroid (Levothyroxine)
- 🩺 RXshop Editorial Team — reviewed by Emily Chen, MD — Internal medicine
Medical Disclaimer: The information in this article is for educational and informational purposes only and is not a substitute for professional medical advice, diagnosis, or treatment. Always seek guidance from a qualified healthcare provider with any questions you may have regarding a medical condition, and before starting, stopping or changing any medication.