Why legs hurt more at night
Several things make leg symptoms more noticeable at night. Lying still removes the distraction of activity, so you notice discomfort more. Muscles that were loaded during the day can ache once you rest. Restless legs syndrome follows a daily rhythm and is typically worse in the evening. Lying flat changes blood flow and pressure on nerves. And pain from the back or hips can spread down the leg in certain sleeping positions.
Common causes of aching legs at night
- Night cramps: sudden, very painful tightening of the calf or foot that lasts seconds to minutes and may leave soreness afterwards.
- Muscle fatigue and overuse: long periods of standing or walking, a new exercise routine or heavy training.
- Restless legs syndrome: creeping, crawling or aching sensations with an irresistible urge to move, eased by walking.
- Sciatica and nerve irritation: pain, tingling or burning running down the back of the leg; see sciatica stretches.
- Arthritis of the knee or hip, which may ache after a day of activity.
- Varicose veins: heavy, aching legs, often worse after standing.
- Peripheral neuropathy: burning, numbness or pins and needles in the feet, for example with diabetes.
- Growing pains in children aged about 3 to 12, felt in both legs in the evening.
Night leg cramps
Night cramps are very common in older adults and in pregnancy. Their exact cause is often unknown, but they are linked with muscle fatigue, long periods of sitting or standing, dehydration and certain medicines such as diuretics and statins. During a cramp, stretching the muscle is the quickest relief: straighten the leg and pull the toes toward you, or stand and press the heel down. Massage and warmth help afterwards. Our guide to calf strain covers persistent calf pain that is not a cramp.
Restless legs syndrome
Restless legs syndrome causes an uncomfortable feeling in the legs with an overwhelming urge to move them, mainly in the evening and at night, and relief from moving. It can be linked to low iron stores, pregnancy, kidney disease and some medicines, and it often runs in families. Doctors may check ferritin (iron stores) and suggest regular exercise, reducing caffeine and alcohol, a regular sleep routine and, if needed, medicines. Many people with restless legs also have jerking movements during sleep.
Less common but important causes
- Deep vein thrombosis: usually one leg, with swelling, warmth, redness or tenderness in the calf; needs urgent assessment.
- Peripheral arterial disease: calf pain when walking that eases with rest, and later pain in the feet at night that improves when the leg hangs down; more likely in smokers and people with diabetes.
- Spinal stenosis: pain, heaviness or numbness in both legs when walking or standing, relieved by sitting or bending forward.
- Bone problems: constant night pain in one area, especially with swelling or weight loss.
What helps leg pain at night
- Stretch the calves, hamstrings and thighs gently for a few minutes before bed.
- Stay active during the day; regular walking improves cramps, restless legs and circulation.
- Drink enough fluids and limit alcohol and caffeine in the evening.
- Take a warm bath or shower before bed, or use a warm pack on aching muscles.
- Keep bedcovers loose around the feet so the toes are not pointed down all night.
- Use a pillow between or under the knees if your back or hips contribute.
- Ask your doctor or pharmacist whether any of your medicines could be playing a part.
- Quinine is no longer recommended routinely for cramps because of side effects.
When to see a doctor or physical therapist
See a doctor if pain wakes you most nights, keeps getting worse, affects only one leg with swelling, comes with numbness or weakness, or if you have diabetes, circulation problems or a history of blood clots. A clinician can examine the legs, check pulses and nerves, and arrange blood tests or scans when needed. A physical therapist can help with stretching and strengthening programmes for cramps, overuse and back-related leg pain.
Three common situations
- Older adult with calf cramps most nights: nightly calf stretches, more daytime walking and a medicine review usually reduce cramps over a few weeks.
- Pregnant woman with restless, aching legs: very common, especially in the third trimester; gentle exercise, stretching and checking iron levels help, and symptoms typically go after the birth.
- Smoker with calf pain on walking and now at night: this pattern suggests reduced blood flow to the legs and needs a medical check.
Key points to remember
- Cramps, tired muscles and restless legs are the most common causes.
- Stretching, daytime activity and good sleep habits help most people.
- One swollen, warm, painful leg needs urgent assessment.
- Pain that wakes you nightly or keeps getting worse deserves a check-up.
Questions about leg pain at night
These answers are general information and do not replace an examination or individual medical advice.
Why do my legs ache at night when I lie down?
Often because muscles are tired after the day and you notice discomfort more when still. Restless legs, varicose veins, nerve irritation from the back and, less often, circulation problems can also cause it.
Can dehydration cause leg pain at night?
Dehydration may contribute to cramps in some people, although it is rarely the only cause. Drinking enough during the day is sensible.
Does magnesium help night leg cramps?
Studies show little or no benefit of magnesium for typical night cramps in older adults. It may help some pregnant women, but evidence is mixed.
Are growing pains real?
Yes. They affect many children, cause aching in both legs in the evening or night and leave no problems in the morning. Pain in one leg, limping or swelling should be checked.
When is leg pain at night serious?
When one leg is swollen, warm or red, when the foot is cold or discoloured, when pain is getting worse every night, or when there is weakness, numbness, fever or weight loss.
Sources
- NHS · Leg cramps
- NHS · Restless legs syndrome
- NHS · Peripheral arterial disease (PAD)
- NHS · Deep vein thrombosis (DVT)
- NHS · Growing pains
This guide is for general information and does not replace medical advice. How a problem is diagnosed and treated depends on your examination and medical history. If you think you have an emergency, contact your local emergency services.