Back to Blog
Sleep Health9 min read

Restless Legs at Night: Why It Happens and What Helps

You settle into bed and your legs will not settle with you. There is a creeping, crawling, pulling sensation deep in the calves, and the only thing that eases it is moving. So you shift, stretch, get up, walk around, and the moment you lie down it starts again. This is restless legs syndrome, and it is one of the more underrated reasons people cannot fall asleep.

It is a real neurological condition, not restlessness or a bad habit. And in many cases the underlying trigger is fixable, which makes it worth understanding rather than enduring.

What Restless Legs Actually Feels Like

The clinical picture is specific, which helps separate it from ordinary fidgeting or cramps. Four features define it:

  • An urge to move the legs, usually with an uncomfortable sensation described as crawling, pulling, aching, or itching deep inside the limb.
  • The urge starts or worsens during rest or inactivity.
  • Movement relieves it, at least while you keep moving.
  • Symptoms are worse in the evening and at night.

That evening pattern is the key. The discomfort peaks right when you are trying to wind down, which is why it wrecks sleep onset rather than showing up during a busy day. People often describe it as maddening precisely because they are exhausted and physically ready for bed, yet their legs refuse to cooperate.

Why It Happens: Dopamine and Iron

Two mechanisms sit at the center of restless legs.

The first is dopamine. Restless legs is closely tied to how the brain uses dopamine, the signaling chemical involved in movement control. Dopamine activity follows a daily rhythm, dipping in the evening, which lines up neatly with when symptoms strike. This is also why the condition can worsen with certain medications that block dopamine, including some anti-nausea drugs and older antihistamines found in over-the-counter sleep aids.

The second is iron. The brain needs iron to make and use dopamine properly. Here is the catch that trips up a lot of people: you can have normal iron in a standard blood count and still have low iron in the brain, and low brain iron is one of the most consistent findings in restless legs. This is why doctors check ferritin, a marker of iron stores, rather than just hemoglobin. A ferritin below about 50 to 75 is often treated in this context even if it is technically "normal" on the lab report.

The two mechanisms connect. Low iron means less raw material for dopamine, and the evening dopamine dip then pushes an already marginal system into symptoms.

Common Triggers and Contributors

Several things reliably make restless legs worse:

  • Low iron stores, from diet, blood loss, heavy periods, or pregnancy.
  • Pregnancy, especially the third trimester, when it is common and usually resolves after delivery.
  • Kidney disease and diabetes, which affect nerves and mineral balance.
  • Caffeine, alcohol, and nicotine, all of which tend to aggravate symptoms. Timing your last coffee matters here, see the caffeine cutoff guide.
  • Certain medications, including some antidepressants, antihistamines, and anti-nausea drugs.
  • A family history, since restless legs often runs in families and has a genetic component that tends to show up earlier in life.

Magnesium status is sometimes involved too, particularly where deficiency overlaps with muscle symptoms, covered in the magnesium for sleep guide.

What Actually Helps

Start with the fixable causes before anything else. Most people can make real progress here without ever needing a prescription.

  • Get iron checked. Ask specifically for a ferritin test, not just a standard count. If it is low, supplementing under guidance can substantially reduce symptoms. Do not megadose iron on your own; too much is harmful and can build up.
  • Cut evening triggers. Reduce or stop caffeine, alcohol, and nicotine, especially in the second half of the day. Alcohol in particular is a common hidden aggravator.
  • Move before bed. Gentle activity like walking or stretching can ease symptoms. Regular moderate exercise helps over time, though intense exercise late at night can backfire and wind you up.
  • Warm or cool the legs. A warm bath, a heating pad, or for some people a cool compress can quiet the sensation enough to fall asleep. Massage sometimes helps too.
  • Review your medications. If symptoms started or worsened after a new drug, mention it to your prescriber. Do not stop anything on your own.
  • Support your overall sleep. A consistent routine and good sleep hygiene reduce the sleep loss that makes symptoms feel worse, since being overtired seems to amplify the urge.

For moderate to severe cases that do not respond to these steps, prescription options exist, including certain drugs originally developed for nerve pain and, in some cases, dopamine-related medications. Those belong in a doctor's hands, partly because dopamine drugs can cause a phenomenon called augmentation, where symptoms eventually get worse and spread rather than better. That is a real risk and a reason not to self-medicate your way toward those drugs.

Restless Legs Versus Leg Cramps and Twitches

It is easy to confuse restless legs with other nighttime leg problems, but they are different, and the distinction guides what to do about them.

  • Leg cramps are sudden, painful muscle contractions. Restless legs is an urge to move, not a cramp, and it is more of an ache than a spasm.
  • Periodic limb movements are repetitive jerks that happen during sleep, often noticed by a bed partner rather than the person. Many people with restless legs also have these, but they are not the same thing and can happen on their own.
  • Simple twitches as you drift off (hypnic jerks) are brief, one-off, and completely normal.

The distinguishing feature of restless legs remains that urge to move that eases with movement and worsens at rest in the evening. If movement helps, it is probably restless legs. If it is a sharp involuntary cramp, it is probably not.

The Knock-On Effect on Sleep and Daytime Life

Restless legs is easy to underrate because it looks like a minor annoyance from the outside. In practice it can hollow out your sleep. The urge to move delays sleep onset, sometimes for hours, and the periodic limb movements that often accompany it fragment sleep once you do drift off, pulling you out of deep stages without fully waking you.

The result is a familiar kind of exhaustion: you were in bed the whole night, yet you feel as if you barely slept. Over weeks this builds into a sleep debt that spills into the day as poor concentration, low mood, and irritability. That daytime toll is part of why restless legs is worth treating properly rather than white-knuckling through it, since the sleep loss it causes can itself worsen mood and, through the appetite and stress effects of short sleep, general health.

There is also a self-reinforcing edge to it. Being overtired seems to intensify the symptoms the following night, so a run of bad nights tends to feed itself. Breaking that with the fixable triggers, especially iron and evening stimulants, is how you get out of the cycle.

A Simple Starting Plan

If you suspect restless legs, work through this order before anything more aggressive:

  • Ask your doctor for a ferritin test and treat low iron under guidance.
  • Remove caffeine, alcohol, and nicotine from the second half of your day for two to three weeks and watch what changes.
  • Add gentle evening movement, a short walk or light stretching, and a warm bath before bed.
  • Fix your sleep timing so you are not compounding the problem with sleep loss.
  • Track which nights are worse and what preceded them, since the pattern often reveals a trigger you can remove.

Most people who do this see a meaningful drop in how often and how badly symptoms strike, and it clarifies whether you need medical treatment on top. Give each change a couple of weeks before judging it, since the day-to-day severity varies enough that a single good or bad night tells you little on its own.

One more habit that helps some people: mental distraction. Because the urge to move is partly driven by attention to the sensation, engaging the mind, a puzzle, a conversation, a task that requires focus, can genuinely blunt it in the evening. It is not a cure, but paired with the trigger changes it can make the wind-down hours more bearable while the iron and lifestyle fixes take effect.

When to See a Doctor

See a doctor if:

  • Symptoms happen most nights and disrupt your sleep.
  • Movement urges are spreading to your arms or getting worse over time.
  • You are pregnant and symptoms are severe.
  • Over-the-counter steps and trigger changes are not enough.

Ask specifically about a ferritin test, since low iron stores are one of the most treatable causes and easy to miss on a routine blood panel. Restless legs can also point to underlying conditions worth ruling out, including kidney problems and iron deficiency with a cause of its own, so it is not something to simply push through night after night.

It is also worth mentioning any bed-partner observations. A partner who reports that your legs jerk repeatedly through the night is describing periodic limb movements, which often travel with restless legs and can fragment sleep even when you are not consciously aware of the urge. That detail helps a doctor see the full picture, since the daytime tiredness may be coming from movements you never wake up to notice.

The Takeaway

Restless legs is a real neurological condition driven mainly by evening dips in dopamine and by low iron in the brain, not by nerves or fidgeting. The single most useful move is getting ferritin checked, because correcting low iron stores helps a large share of people. Cut evening caffeine, alcohol, and nicotine, keep a steady sleep routine, and see a doctor if symptoms are frequent, worsening, or resistant to the basics.

Struggling with sleep? Find your sleep type.

Take our free 2-minute quiz and get a personalized plan.

Take the Sleep Quiz