Why do my legs ache at night guide showing nighttime leg pain, muscle cramps, circulation, nerve pain, and restless legs

Why Do My Legs Ache at Night? 13 Critical Causes

Last updated: October 7, 2026

Written and edited by: Adel Galal, Founder and Editor of NextFitLife

Medical review status: This article has not been medically reviewed by a doctor, vascular specialist, neurologist, physiotherapist, or other licensed healthcare professional.

Why do my legs ache at night is a common question, and the answer can range from tired muscles and ordinary leg cramps to restless legs syndrome, nerve pain, arthritis, medication effects, or circulation problems?

Most nighttime leg aches are not emergencies, especially when they follow a busy day and improve with gentle movement or stretching. However, the exact pattern matters. Pain in both legs differs from sudden pain and swelling in one leg, while burning feet suggest a different cause from a calf that suddenly tightens into a hard knot.

The useful question is therefore not only โ€œWhy do my legs hurt?โ€ but also where the pain is, what it feels like, when it starts, and what makes it better.

This article is for general information and education. It does not replace medical advice, diagnosis, or treatment.

Get urgent medical help if one leg becomes suddenly swollen, warm, red or darker than usual, and painful, especially after surgery, illness, long travel, or reduced movement.

Call emergency services for leg symptoms with sudden chest pain, severe shortness of breath, coughing blood, fainting, or a very fast heartbeat. A blood clot can travel to the lungs.

Also seek urgent assessment if a foot suddenly becomes very cold, pale, blue, numb, severely painful, or weak.

Table of Contents

  1. Quick Answer
  2. 13 Common Causes
    1. Muscle overuse
    2. Night leg cramps
    3. Restless legs syndrome
    4. Peripheral neuropathy
    5. Peripheral artery disease
    6. Vein problems
    7. Arthritis
    8. Sciatica
    9. Dehydration
    10. Iron deficiency
    11. Medication effects
    12. Pregnancy
    13. Blood clot
  3. Pain Pattern Guide
  4. Safe Home Relief
  5. Tests Doctors May Use
  6. Warning Signs
  7. Frequently Asked Questions

Why Do My Legs Ache at Night? Quick Answer

If you keep asking why do my legs ache at night, begin by noticing the type of discomfort.

A hard, sudden knot in the calf points more toward a nocturnal leg cramp. An urge to move the legs that becomes worse while resting and improves when you walk suggests restless legs syndrome.

Burning, tingling, electric, or numb pain can suggest peripheral neuropathy. Pain that appears while walking and improves after several minutes of rest can point toward peripheral artery disease.

Sudden pain with swelling, warmth, or colour change in one leg is different and requires prompt assessment for a possible blood clot.

13 Reasons Your Legs May Ache at Night

1. Muscle Overuse During the Day

Muscles can ache after a day with more activity than usual.

This may happen after:

  • A long walk
  • Running
  • Climbing stairs
  • Standing for many hours
  • Starting a new exercise routine
  • Heavy lifting

The ache may become more noticeable after you lie down because distractions disappear and the muscles begin to cool and stiffen.

Overuse pain is usually linked to activity and improves over the next day or two.

2. Nocturnal Leg Cramps

Nocturnal leg cramps are sudden involuntary contractions of a muscle, most often in the calf.

The muscle can feel:

  • Hard
  • Tight
  • Knotted
  • Very painful

A cramp can last from a few seconds to several minutes. The muscle may remain sore afterward.

NHS guidance notes that leg cramps are common and often happen at night or while resting.

Possible triggers include muscle strain, dehydration, pregnancy, ageing, and some medicines.

3. Restless Legs Syndrome

Restless legs syndrome, also called RLS, causes a strong urge to move the legs.

People may describe:

  • Aching
  • Crawling
  • Tingling
  • Throbbing
  • Itching
  • An uncomfortable feeling deep in the legs

The key pattern is that symptoms become worse when resting, especially in the evening or at night, and movement brings temporary relief.

RLS can be associated with iron deficiency, pregnancy, kidney disease, and some medicines.

4. Peripheral Neuropathy

Peripheral neuropathy means damage to nerves outside the brain and spinal cord.

It can cause:

  • Burning pain
  • Sharp pain
  • Shooting pain
  • Tingling
  • Numbness
  • Sensitivity to light touch

Symptoms often begin in the feet.

Diabetes is the most common cause of peripheral neuropathy in the UK, although vitamin B12 deficiency, alcohol, infections, medicines, and nerve injury can also cause it.

5. Peripheral Artery Disease

Peripheral artery disease, or PAD, happens when arteries supplying the legs become narrowed.

The classic symptom is aching or cramping during walking that improves after a few minutes of rest.

However, severe circulation disease can cause pain even while resting, including at night.

Other clues include:

  • A cold foot
  • Slow healing wounds
  • Colour changes
  • Loss of leg hair
  • Weakness
  • Slow growing toenails

Severe burning pain in the foot or leg at rest can indicate critically reduced blood flow and needs prompt medical assessment.

6. Vein Problems

Veins carry blood back toward the heart.

When the valves inside leg veins do not work well, blood can pool in the lower legs.

This may lead to:

  • Aching
  • Heaviness
  • Swelling
  • Throbbing
  • Itching
  • Visible varicose veins

Symptoms may be worse after standing for a long time.

7. Arthritis

Arthritis in the hip, knee, ankle, or foot can cause pain that becomes more noticeable at night.

Osteoarthritis often causes:

  • Joint pain
  • Stiffness
  • Reduced movement
  • Swelling
  • Grinding or clicking

Joint pain is usually more focused around a joint than a typical muscle cramp.

8. Sciatica or Nerve Compression

Sciatica occurs when the sciatic nerve is irritated or compressed.

Pain may travel from the lower back or buttock into:

  • The thigh
  • The calf
  • The foot

The pain may feel burning, shooting, or electric.

Tingling and numbness can also occur.

Certain sleeping positions may make nerve pain more noticeable.

9. Dehydration and Heavy Exercise

Not drinking enough fluid can contribute to muscle cramps in some people, particularly after heat exposure or heavy exercise.

Signs of dehydration can include:

  • Thirst
  • Dark urine
  • Dry mouth
  • Dizziness
  • Reduced urination

However, repeated nighttime cramps should not automatically be blamed on dehydration.

10. Iron Deficiency

Iron deficiency is particularly important when nighttime discomfort behaves like restless legs syndrome.

Low iron can be associated with RLS even before severe anaemia develops.

Other iron deficiency symptoms can include:

  • Fatigue
  • Weakness
  • Shortness of breath
  • Pale skin
  • Headaches

Do not take high dose iron simply because your legs ache. Blood testing can show whether iron replacement is appropriate.

11. Medicines

Some medicines can contribute to leg cramps or muscle pain.

Examples can include certain:

  • Statins
  • Diuretics
  • Asthma medicines
  • Hormonal medicines
  • Antidepressants

Some medicines can also make restless legs symptoms worse.

Do not stop prescribed medicine on your own. Ask the prescriber or pharmacist whether your symptoms could be related.

12. Pregnancy

Night leg cramps are common during pregnancy, especially later in pregnancy.

Changes in circulation, muscle load, sleep position, and other factors may contribute.

However, pregnancy also increases the risk of DVT.

One swollen, painful, warm leg during pregnancy needs prompt medical assessment rather than being assumed to be an ordinary cramp.

13. Deep Vein Thrombosis

Deep vein thrombosis, or DVT, is a blood clot in a deep vein, usually in the leg.

Possible signs include:

  • Pain or tenderness
  • Swelling in one leg
  • Warm skin
  • Red or darker skin

DVT can also occur without obvious symptoms.

A clot can travel to the lungs and cause a pulmonary embolism, which can be life threatening.

Night Leg Pain Pattern Guide

Pain Pattern Possible Cause Helpful Clue
Sudden hard calf cramp Nocturnal leg cramp Muscle feels tight or knotted
Urge to move both legs Restless legs syndrome Worse at rest and better with movement
Burning or tingling feet Peripheral neuropathy Numbness may also occur
Pain during walking Peripheral artery disease Improves after several minutes of rest
Heavy aching legs after standing Venous disease May come with swelling or varicose veins
Shooting pain from back Sciatica Pain follows a nerve path
One swollen warm leg Possible DVT Needs prompt medical assessment

Night Leg Cramps Versus Restless Legs Syndrome

These conditions are often confused.

Night Leg Cramps

A cramp causes an actual muscle contraction.

The muscle becomes hard and sharply painful.

Stretching the muscle often helps.

Restless Legs Syndrome

RLS causes an uncomfortable urge to move rather than a hard muscle knot.

The discomfort becomes worse when sitting or lying still and improves temporarily when you move.

Why Are My Legs Aching Only When I Lie Down?

Several problems become more noticeable during rest.

RLS is triggered by sitting or lying still.

Nerve pain may feel stronger when there are fewer daytime distractions.

Arthritis can become stiff after activity stops, while severe PAD can cause pain during rest because blood flow is not enough even when the muscles are inactive.

This pattern is worth discussing with a healthcare professional if it keeps happening.

Why Do My Calves Ache at Night?

Calf discomfort is commonly caused by:

  • Muscle cramps
  • Exercise strain
  • Long periods of standing
  • Vein problems
  • PAD
  • Nerve pain

Sudden calf pain with swelling, warmth, or colour change in one leg needs prompt assessment for DVT.

Why Do Both Legs Ache at Night?

Problems affecting both legs can include:

  • Muscle fatigue
  • Restless legs syndrome
  • Peripheral neuropathy
  • Arthritis
  • Medication effects
  • Systemic health conditions

DVT more often affects one leg, although medical assessment should not depend on that rule alone.

Why Do My Legs Ache After Standing All Day?

Long hours of standing can fatigue the muscles and increase pressure in the leg veins.

You may notice:

  • Heaviness
  • A dull ache
  • Mild swelling around the ankles
  • Relief after rest

Compression stockings help some people with diagnosed venous problems, but they should not be used blindly when significant arterial disease may be present.

Can Poor Circulation Cause Leg Pain at Night?

Yes.

Severe PAD can cause rest pain, often in the foot or leg.

NHS guidance describes critical limb ischaemia as severe burning pain that continues even while resting.

Other warning signs include:

  • A cold or numb foot
  • Pale or blue skin
  • Wounds that do not heal
  • Black skin or tissue

These symptoms need prompt medical assessment.

Can Diabetes Cause Aching Legs at Night?

Yes.

Diabetes can damage peripheral nerves over time.

Diabetic neuropathy may cause:

  • Burning
  • Tingling
  • Shooting pain
  • Numbness
  • Sensitivity in the feet

If you have diabetes, examine your feet regularly because numbness can make cuts or ulcers difficult to notice.

Read our How to Keep Diabetes Under Control Guide for broader diabetes care information.

Can Low Magnesium Cause Night Leg Pain?

Magnesium is involved in normal muscle and nerve function.

Severe magnesium deficiency can contribute to muscle cramps.

However, common nighttime cramps do not automatically mean you are deficient in magnesium.

Evidence for routine magnesium supplements for ordinary nocturnal leg cramps is mixed.

Do not assume that more magnesium is always the answer.

Our Benefits of Magnesium and Zinc Guide explains when supplements may and may not be useful.

Can Low Potassium Cause Leg Cramps?

Very low potassium can affect muscles and may cause weakness or cramping.

However, repeated night cramps have many possible causes.

Potassium should not be supplemented heavily without a reason because both low and high blood potassium can be dangerous.

Can Calcium Deficiency Cause Leg Cramps?

Significant low blood calcium can cause muscle cramps and spasms.

It often causes other symptoms too, including tingling around the mouth or fingers.

Ordinary nighttime leg cramps alone do not prove calcium deficiency.

Read our Normal Calcium Levels UK Guide if you are interpreting a calcium blood result.

Can Vitamin B12 Deficiency Cause Leg Pain?

Vitamin B12 deficiency can damage nerves when it becomes significant.

Symptoms can include:

  • Tingling
  • Numbness
  • Weakness
  • Balance problems

Blood testing can help identify B12 deficiency when the symptoms fit.

Does Iron Deficiency Cause Restless Legs?

Iron deficiency is an established association with restless legs syndrome.

A clinician may check blood tests such as ferritin if RLS is suspected.

Iron treatment should match the test result and medical situation rather than being started blindly.

Can Varicose Veins Make Legs Ache at Night?

Yes.

Varicose veins can cause:

  • Aching
  • Heaviness
  • Throbbing
  • Itching
  • Swelling

Symptoms are often worse after long periods of standing.

Could the Pain Come From My Back?

Yes.

Nerves that leave the lower spine travel into the legs.

A compressed or irritated nerve can therefore cause pain far from the back itself.

Clues include:

  • Shooting pain
  • Burning
  • Tingling
  • Numbness
  • Pain from the buttock down one leg

What Can I Do When a Leg Cramp Wakes Me Up?

For an ordinary muscle cramp, gentle movement can help.

You can try:

  1. Straighten the affected leg.
  2. Pull your toes gently toward your shin.
  3. Massage the cramped muscle.
  4. Stand and place weight on the leg if safe.
  5. Walk slowly for a short time.
  6. Try gentle warmth after the cramp eases.

NHS guidance recommends stretching and massaging the muscle during a cramp.

Can Stretching Before Bed Prevent Leg Cramps?

Regular calf stretching may reduce the frequency of cramps for some people, although it does not prevent every episode.

A simple calf stretch is:

  1. Face a wall.
  2. Place your hands on the wall.
  3. Keep the affected heel flat.
  4. Lean forward gently.
  5. Feel the stretch in your calf.

Do not force a painful stretch.

Should I Drink More Water?

If you are dehydrated, replacing fluids is sensible.

However, drinking excessive water will not fix night pain caused by neuropathy, arthritis, PAD, restless legs, or DVT.

Use hydration as one part of the picture rather than a universal cure.

Does a Banana Before Bed Stop Leg Cramps?

There is no strong evidence that eating a banana before bed prevents ordinary nighttime leg cramps in everyone.

Bananas contain potassium, but most night cramps are not proven to come from potassium deficiency.

A balanced diet is more useful than relying on a single food.

Should I Take Magnesium for Night Leg Cramps?

Not automatically.

Magnesium can help when a true deficiency exists, but evidence for routine supplementation in people with ordinary night cramps is inconsistent.

Magnesium supplements can also cause diarrhoea and interact with some medicines.

Should I Take Quinine?

Do not start quinine on your own.

NHS guidance notes that quinine may sometimes be considered when persistent cramps do not improve with other measures, but it is not suitable for everyone and has important risks.

It should only be used after medical assessment.

Should I Use Painkillers?

Paracetamol or an anti inflammatory medicine may help residual muscle soreness after a cramp if they are safe for you.

They work too slowly to stop a sudden muscle cramp itself.

Anti inflammatory medicines are not suitable for everyone, including some people with kidney disease, ulcers, cardiovascular disease, or certain medicines.

When Should I Book a Medical Appointment?

Arrange an assessment if:

  • The pain happens frequently
  • It repeatedly wakes you from sleep
  • The cause is unclear
  • You have numbness
  • You have persistent swelling
  • You have muscle weakness
  • You have burning feet
  • You develop skin changes
  • You have wounds that are slow to heal
  • The pain starts when walking
  • You have symptoms of restless legs syndrome

When Is Night Leg Pain Urgent?

Get prompt or emergency assessment for:

  • Sudden swelling in one leg
  • One leg becoming hot and painful
  • Sudden severe leg pain
  • A cold, pale, blue, or numb foot
  • New severe weakness
  • Loss of bladder or bowel control with back and leg symptoms
  • Chest pain with leg swelling
  • Sudden shortness of breath
  • Coughing blood
  • Fainting

How Doctors Investigate Night Leg Pain

The investigation depends on the pattern.

A clinician may ask:

  • Where the pain is
  • Whether one or both legs are affected
  • What the pain feels like
  • Whether movement helps
  • Whether walking triggers it
  • Whether there is swelling
  • What medicines you take
  • Whether you have diabetes
  • Whether you smoke

Possible tests may include:

  • Blood tests
  • Iron studies
  • Vitamin B12
  • Kidney function
  • Electrolytes
  • Blood glucose or HbA1c
  • Thyroid tests
  • Ultrasound when DVT is suspected
  • Ankle brachial pressure testing for PAD
  • Nerve conduction tests in selected cases

A 7 Night Leg Pain Diary

A short diary can make patterns much easier to explain to a clinician.

Each Evening Record

  • How active you were
  • How long you stood or sat
  • Your fluid intake
  • Any new medicines

When Pain Starts Record

  • The time
  • One leg or both
  • Calf, thigh, knee, foot, or whole leg
  • Ache, cramp, burn, tingle, or shooting pain
  • Whether movement helps
  • Whether there is swelling

The Next Morning Record

  • Whether soreness remains
  • Any weakness
  • Any colour change
  • Any numbness

Common Myths About Night Leg Pain

Myth 1: Every Night Cramp Means Low Magnesium

False.

Night cramps have many possible causes and are often idiopathic, meaning no clear cause is found.

Myth 2: Aching Legs Are Just Part of Ageing

False.

Some conditions become more common with age, but recurring pain still deserves attention.

Myth 3: Poor Circulation Always Causes Cold Legs

False.

PAD can present with exercise pain, weakness, wounds, skin changes, or rest pain.

Myth 4: Restless Legs Is the Same as Leg Cramps

False.

RLS causes an urge to move and discomfort at rest, while cramps involve a sudden painful muscle contraction.

Myth 5: DVT Always Causes Obvious Swelling

False.

Some DVTs cause few or no obvious symptoms.

Myth 6: Supplements Are the Best First Treatment

False.

Magnesium, potassium, calcium, iron, or B vitamins should match a genuine need rather than being taken blindly.

Conclusion

If you keep wondering why do my legs ache at night, the pattern of the pain often gives the best clue.

A sudden tight calf suggests a muscle cramp. An urge to move while resting points toward restless legs syndrome. Burning or tingling can suggest nerve pain, while aching during walking may indicate peripheral artery disease.

Simple measures such as gentle stretching, regular movement, adequate hydration, and reviewing daytime activity may help ordinary muscle related pain.

However, repeated nighttime pain deserves assessment when it interferes with sleep or comes with numbness, weakness, swelling, skin changes, wounds, or circulation symptoms.

Your next step is to note where the pain occurs, what it feels like, what triggers it, and what relieves it. If one leg suddenly becomes swollen, hot, painful, or discoloured, seek prompt medical care rather than treating it as an ordinary night cramp.

References and Sources

  1. NHS. Leg Cramps.
    https://www.nhs.uk/conditions/leg-cramps/
  2. NHS. Restless Legs Syndrome.
    https://www.nhs.uk/conditions/restless-legs-syndrome/
  3. NHS. Peripheral Neuropathy.
    https://www.nhs.uk/conditions/peripheral-neuropathy/
  4. NHS. Peripheral Arterial Disease.
    https://www.nhs.uk/conditions/peripheral-arterial-disease-pad/
  5. Centers for Disease Control and Prevention. About Venous Thromboembolism.
    https://www.cdc.gov/blood-clots/about/
  6. American Heart Association. Symptoms of Peripheral Artery Disease.
    https://www.heart.org/en/health-topics/peripheral-artery-disease/symptoms-of-pad
  7. Mayo Clinic. Restless Legs Syndrome: Symptoms and Causes.
    https://www.mayoclinic.org/diseases-conditions/restless-legs-syndrome/symptoms-causes/syc-20377168

Internal Links + Hub

About the Author

Adel Galal is the founder and editor of NextFitLife. He writes practical consumer health, fitness, nutrition, healthy ageing, and wellness content using information from recognized medical, public health, and academic sources.

I am not a doctor, vascular specialist, neurologist, physiotherapist, pharmacist, or other licensed healthcare professional. This content does not replace professional medical advice. What I share comes from real life experience, extensive research, and consultation with healthcare providers. Always consult qualified medical professionals for diagnosis and treatment of any health condition.

Learn more about NextFitLife, the author, and the site's editorial approach on the About Us page.

Frequently Asked Questions

Why do my legs ache at night?

Nighttime leg aches can come from muscle overuse, ordinary leg cramps, restless legs syndrome, nerve problems, arthritis, vein problems, peripheral artery disease, medicines, pregnancy, or other conditions. The location and type of pain help narrow down the cause.

Why do my legs hurt more when I lie down?

Restless legs syndrome becomes worse during rest, while nerve pain, arthritis, and severe circulation problems may also become more noticeable after lying down.

What causes aching calves at night?

Common causes include nocturnal leg cramps, muscle fatigue, prolonged standing, varicose veins, peripheral artery disease, and nerve problems.

How do I know if nighttime leg pain is restless legs syndrome?

Restless legs syndrome causes a strong urge to move the legs with uncomfortable sensations that become worse during rest, especially at night, and improve temporarily with movement.

How can I tell a leg cramp from restless legs?

A leg cramp causes a sudden painful muscle contraction and hard knot. Restless legs syndrome mainly causes an urge to move and uncomfortable sensations without the same sustained muscle contraction.

Can poor circulation cause leg pain at night?

Yes. Severe peripheral artery disease can cause pain even while resting. A cold foot, wounds that do not heal, skin colour changes, or severe burning rest pain need medical assessment.

Can diabetes make my legs ache at night?

Yes. Diabetes can damage peripheral nerves and cause burning, tingling, shooting pain, numbness, or sensitivity, often beginning in the feet.

Can low iron cause aching legs at night?

Iron deficiency can contribute to restless legs syndrome. Testing may be useful when the symptoms fit, rather than taking iron without knowing your level.

Does magnesium stop nighttime leg cramps?

Magnesium may help when deficiency is present, but ordinary night cramps do not automatically mean magnesium is low, and routine supplementation does not help everyone.

What helps a nighttime calf cramp immediately?

Gently straighten the leg, pull the toes toward the shin, massage the cramped muscle, and stand or walk carefully if safe.

When should night leg pain worry me?

Seek medical advice if the pain repeatedly wakes you, becomes severe, or occurs with numbness, weakness, persistent swelling, skin changes, slow healing wounds, or pain when walking.

What are signs of a blood clot in the leg?

Possible signs of DVT include swelling, pain or tenderness, warmth, and redness or discoloration, usually affecting one leg. Prompt medical assessment is important.

When is nighttime leg pain an emergency?

Seek emergency help for leg symptoms with sudden chest pain, severe shortness of breath, coughing blood, fainting, or for a suddenly cold, pale, blue, numb, or severely painful foot.

Scroll to Top