The JournalSleep

How to stop restless legs at night: what helps now, and the test worth asking for

Our editorial approach
Gold line drawing of legs in bed under a crescent moon, one knee pulled up, with small marks showing restlessness.

It starts when you finally lie still. A crawling, fizzing urge in your legs that eases the moment you move, and comes back the moment you stop. For some people it reaches the arms too.

Here’s what to do when it starts tonight, and the blood test that’s worth asking your GP for.

Get up and move: walk, stretch your calves or massage your legs, then go back to bed when the urge settles. Cut caffeine after midday and alcohol before bed. Ask your GP for a ferritin test, because low iron is a common, treatable cause, even when your result is called normal.

How do you stop restless legs immediately?

Get up and move. Movement is the one thing that reliably eases the urge, at least while you keep moving. Then make it easier to settle again:

  1. Get up and walk

    A few minutes around the house is enough. Lying still tends to keep it going.

  2. Stretch or massage your calves

    Hold a calf stretch against a wall, or rub your calves and feet firmly.

  3. Try heat, or cold

    A warm (not hot) bath or a heat pad before bed helps some people. Others find a cool flannel works better.

  4. Give your mind something to do

    Read a few pages or do a puzzle in dim light. Distraction can take the edge off the urge.

  5. Go back to bed once the urge has eased

    Give it a few minutes after the buzzing stops, then lie down again.

Restless legs tonight, 5 things to try: get up and walk, stretch or massage your calves, try a warm bath or a cool flannel, distract your mind, and go back to bed once the urge has eased.
Based on the NHS’s advice for restless legs syndrome.

What is restless legs syndrome?

It’s a common condition of the nervous system, not a problem with your leg muscles. Doctors recognise it by four things together:

  • a strong urge to move your legs, usually with an unpleasant feeling such as crawling, tingling or throbbing
  • it starts or gets worse when you sit or lie still
  • moving eases it, at least while you keep moving
  • it’s worse in the evening and at night

That last one is why bedtime is often the hardest part. Many people also get small, jerking leg movements once they’re asleep, which can wake them or their partner.

What makes restless legs worse?

Caffeine and alcohol late in the day, and some common medicines. The NHS suggests:

  • no tea, coffee or energy drinks after midday
  • no alcohol in the 2 hours before bed
  • no big meals or hard exercise late in the evening
  • getting help to stop smoking

Medicines matter too. Antihistamines can make restless legs worse, and that includes some pharmacy sleep aids. When we read their leaflets for our guide to sleep aids you can buy without a prescription, Nytol One-A-Night listed diphenhydramine and Sominex listed promethazine: both antihistamines. Some antidepressants, anti-sickness medicines and antipsychotics can make it worse too. If you take any of these, don’t stop them on your own. Ask your GP or pharmacist whether there’s an alternative.

What causes restless legs?

Often there’s no single cause, and it tends to run in families. The best explanation so far involves iron and dopamine in the brain. Dopamine is a chemical messenger that helps control movement, and the brain needs iron to make it. In restless legs, the brain itself seems to be short of iron, even when blood levels are normal, which is one reason iron treatment can help. Why it builds at night isn’t fully understood: researchers think daily swings in brain iron and dopamine play a part.

It’s also more likely with iron deficiency, kidney disease, nerve damage in the legs (peripheral neuropathy) and pregnancy. It isn’t the same as cramp: cramp is a painful, tight muscle, while restless legs is an urge to move that eases when you do. In an Italian study of 642 women, about 1 in 4 had restless legs during pregnancy, mostly in the last three months, and it usually faded around the birth.

Should I get my iron checked?

Yes. Ask your GP for a ferritin test, which measures your iron stores. If restless legs keep coming back, it’s the test most worth having.

The detail that matters is the number. A ferritin of 15 or 20 is often reported as normal. For restless legs, that’s low. The American Academy of Sleep Medicine’s 2024 guideline recommends iron treatment when ferritin is 75 or below, and NHS Wales advice for GPs uses the same cut-off. So if your result comes back “normal”, ask what the number was.

Don’t take iron tablets without a test first. Too much iron is harmful, and the test tells your GP whether you need it.

Ask for the number: a ferritin of 15 to 20 micrograms per litre is often called normal, but for restless legs, guidelines suggest your GP considers iron at 75 or below. Don’t take iron without a test.
From the American Academy of Sleep Medicine’s 2024 guideline and NHS Wales primary care advice. Ferritin in micrograms per litre.

Does magnesium help restless legs?

It might, but nobody has shown it yet. A 2019 review found eight studies. Only one compared magnesium with a dummy pill, and it found no clear difference, though it may have been too small to tell. The reviewers couldn’t say either way.

Magnesium is low-risk for most healthy adults, so trying it isn’t unreasonable, unless you have kidney problems or take other medicines, when it’s worth asking a pharmacist first. Our magnesium guide covers the forms and amounts. But iron is the supplement with the evidence for restless legs, and only once a blood test says you need it.

Does exercise help restless legs?

Regular exercise during the day seems to. In a 2006 US trial, adults with restless legs did treadmill walking and leg strength exercises three times a week. By six weeks their symptoms were clearly milder than a group who didn’t exercise. The trial was small, with 28 people starting it, but the NHS recommends daytime exercise too.

Timing matters. Hard exercise late in the evening can make it worse.

When should I see a GP, and what can they do?

See a GP if restless legs stop you sleeping, affect your mood, or haven’t improved with the steps above. They can:

  • check your ferritin, kidneys and other blood tests
  • look at your other medicines
  • prescribe iron if your stores are low
  • offer a medicine if symptoms are frequent or severe

Treatment has changed in the last few years. Gabapentin and pregabalin are now often tried first, though they aren’t licensed for restless legs in the UK. Older medicines such as ropinirole and pramipexole still work, but over months or years they can make restless legs worse, so doctors use them with more care. In pregnancy, most medicines are avoided and the steps above come first.

What should I do tonight?

Put a heat pad or a book by the bed, so it’s there if your legs start. Once they’ve settled, our guide to falling asleep fast covers the rest of the night.

Restless legs: common questions

How do you stop restless legs immediately?

Get up and move. Walk for a few minutes, stretch or massage your calves, then go back to bed once the urge settles. A warm bath or a cool flannel helps some people.

Can low iron cause restless legs?

Yes. Low iron stores are a common, treatable cause. Guidelines suggest your GP considers iron when ferritin is 75 or below, which is higher than many results reported as normal, so ask for the number.

Does magnesium help restless legs?

It hasn’t been shown either way. A 2019 review found only one placebo-controlled trial, which showed no clear difference but may have been too small.

Can antihistamines make restless legs worse?

Yes, including pharmacy sleep aids that contain an antihistamine, such as Nytol One-A-Night and Sominex. Some antidepressants and anti-sickness medicines can too. Don’t stop a prescribed medicine without asking your GP.

Do restless legs in pregnancy go away?

Usually. They’re most common in the last three months and tend to fade around the birth. Most medicines are avoided in pregnancy, so the self-help steps come first.

Why are restless legs worse at night?

It’s part of the condition. Symptoms start or get worse when you sit or lie still, and in the evening and at night. Why isn’t fully understood, but researchers think daily swings in brain iron and dopamine play a part.

When should I see a GP about restless legs?

If they stop you sleeping, affect your mood, or haven’t improved with self-help. Your GP can check your iron and other bloods and look at your medicines.

Sources

  1. NHS: Restless legs syndrome.
  2. Winkelman and colleagues: Treatment of restless legs syndrome and periodic limb movement disorder, an American Academy of Sleep Medicine clinical practice guideline. Journal of Clinical Sleep Medicine, 2024.
  3. NHS Wales: Restless leg syndrome, primary care advice and guidance.
  4. NHS Highland: Restless leg syndrome guidelines.
  5. Marshall and colleagues: Magnesium supplementation for the treatment of restless legs syndrome and periodic limb movement disorder, a systematic review. Sleep Medicine Reviews, 2019.
  6. Aukerman and colleagues: Exercise and restless legs syndrome, a randomized controlled trial. Journal of the American Board of Family Medicine, 2006.
  7. Manconi and colleagues: Restless legs syndrome and pregnancy. Neurology, 2004.
  8. Garcia-Malo and colleagues: Circadian pattern in restless legs syndrome, implications for treatment posology. Seminars in Neurology, 2024.
  9. Tang and colleagues: Circadian rhythm in restless legs syndrome. Frontiers in Neurology, 2023.
  10. HCPLive: AASM updates clinical guidelines for restless legs syndrome (interview with John Winkelman). 2024.

Keep reading

The serelo newsletter

Something worth opening.

Thoughtful reads and useful ideas on switching off, sleep and recovery. Make a little room for us in your inbox.