That crawling, pulling, or buzzing sensation in your legs that forces you to move right when you’re trying to fall asleep is most likely restless legs syndrome (RLS). It affects up to 10% of adults, and its hallmark is an uncomfortable urge to move your limbs that peaks at night, disrupts sleep, and temporarily improves when you get up and walk around.
The good news: once you understand what’s driving it, there are concrete steps you can take to reduce the restlessness and get back to sleeping through the night.
What Restless Body Sensations Actually Feel Like
People describe this differently. Some feel a deep itch inside the muscles that scratching can’t reach. Others report tingling, throbbing, pulling, or a “creepy-crawly” sensation that’s hard to pin down. The feeling is distinct from a cramp or a pins-and-needles numbness. It’s more of an internal unease that creates an overwhelming need to shift, stretch, or walk.
Sleep specialists use four criteria to identify RLS. You feel an urge to move your legs (sometimes arms too) because of uncomfortable sensations. The feeling eases, at least temporarily, when you get up and move. It starts or worsens when you’re lying down or sitting still. And it’s worse in the evening or at night. If all four apply, you’re dealing with textbook restless legs syndrome rather than general insomnia or anxiety-related restlessness.
About 58% of people with RLS also experience periodic limb movements during sleep: involuntary leg jerks or twitches that repeat every 20 to 40 seconds throughout the night. You might not be aware of them, but a bed partner often is. These movements fragment your sleep even after you’ve managed to drift off, which is why you can still feel exhausted the next day.
Why Your Body Gets Restless at Night
The root cause involves dopamine, a brain chemical that helps regulate smooth, controlled movement. In people with RLS, dopamine signaling in the movement-control centers of the brain doesn’t function properly, especially in the evening when dopamine levels naturally dip. That disruption produces the involuntary urge to move.
Iron plays a critical role because the brain needs it to produce and use dopamine effectively. Low iron stores are one of the most common and correctable triggers. Clinical guidelines flag a ferritin level (a blood marker of stored iron) at or below 100 as a threshold worth treating, even if your standard blood count looks normal. Many people with restless legs have ferritin levels that are technically “in range” but too low for the brain to function optimally at night.
Genetics matter too. RLS runs in families, and people with a first-degree relative who has it are three to six times more likely to develop symptoms themselves.
Common Triggers That Make It Worse
Several everyday substances and medications can intensify nighttime restlessness, sometimes dramatically.
- Antihistamines: Over-the-counter sleep aids and allergy medications that cause drowsiness (the ones containing diphenhydramine or doxylamine) are among the most common culprits. They block receptors that interact with the dopamine system, worsening leg restlessness for many people.
- Antidepressants: SSRIs and SNRIs, including widely prescribed medications for depression and anxiety, have been repeatedly linked to triggering or worsening RLS symptoms.
- Caffeine and alcohol: Both can amplify restlessness in the evening, particularly when consumed in the second half of the day.
- Anti-nausea medications: Certain drugs prescribed for nausea block dopamine directly and can trigger severe restlessness.
If you started a new medication around the time your symptoms appeared or worsened, that connection is worth exploring with your prescriber. Switching to an alternative in the same class can sometimes resolve the problem entirely.
Pregnancy and Temporary Restlessness
Between 10% and 34% of pregnant women develop RLS, often in the third trimester. The combination of increased blood volume, shifting iron stores, and hormonal changes creates a perfect storm for nighttime restlessness. Symptoms typically resolve within the first four weeks after delivery, though some women find they persist longer or return in later pregnancies.
What You Can Do Tonight
Weighted blankets have shown promise for reducing leg movements and improving sleep quality. In clinical reports, patients using a weighted blanket over six weeks experienced significant improvement without medication. The steady pressure appears to calm the nervous system and reduce the frequency of involuntary limb movements. A blanket weighing roughly 10% of your body weight is a reasonable starting point.
Other non-drug strategies that help many people:
- Cool the room: A cooler sleeping environment (around 65 to 68°F) seems to reduce symptom intensity for some people.
- Leg massage or stretching before bed: Gentle calf stretches, foam rolling, or a warm bath can temporarily quiet the sensations.
- Moderate exercise earlier in the day: Regular physical activity improves RLS symptoms overall, but intense exercise close to bedtime can backfire.
- Avoid the trigger medications listed above: If you’re taking an antihistamine to help you sleep, it may be making the restlessness worse, not better.
Magnesium and Other Supplements
Magnesium is one of the most commonly recommended natural approaches, but the evidence is mixed. One clinical trial found that 250 mg of magnesium oxide taken daily reduced RLS severity and improved sleep quality, but only after two months of consistent use. No benefit appeared during the first month. A systematic review, on the other hand, concluded there isn’t strong enough evidence to recommend magnesium broadly for RLS, and it’s unclear which patients benefit most.
If you want to try it, magnesium oxide or magnesium glycinate at 250 to 400 mg daily is generally well tolerated. Give it at least eight weeks before deciding whether it’s helping. Vitamin B6 (40 mg daily) showed some benefit in the same trial, though magnesium outperformed it.
The supplement with the strongest evidence behind it is iron, but only if your levels are actually low. A simple blood test for ferritin can tell you whether iron supplementation makes sense for your situation.
When Restlessness Isn’t RLS
Not all nighttime body restlessness is restless legs syndrome. A related condition called akathisia produces a more generalized inner restlessness, a feeling that you can’t sit still or stay comfortable in your own skin. Unlike RLS, akathisia tends to occur throughout the day (not just at night), affects the whole body rather than primarily the legs, and is almost always triggered by a medication, particularly antipsychotics and some antidepressants. If your restlessness doesn’t follow the nighttime pattern and isn’t focused in your legs, akathisia is worth considering.
Anxiety can also produce a restless, wired feeling at bedtime, but it’s typically accompanied by racing thoughts and muscle tension rather than the specific creeping or pulling sensations in the legs that define RLS.
Medical Treatment Options
If lifestyle changes and supplements aren’t enough, prescription treatment is available. The American Academy of Sleep Medicine’s most recent guidelines recommend a specific type of nerve-calming medication (in the same family as gabapentin) as the strongest first-line option. This class of medication works by reducing nerve excitability rather than directly targeting dopamine, which avoids a complication called augmentation where dopamine-based treatments eventually make symptoms worse over time.
Older guidelines favored dopamine-boosting medications, but the field has shifted because those drugs, while effective short-term, can cause symptoms to spread to other body parts or start earlier in the day after months or years of use. If your symptoms are frequent (occurring two or more nights per week) and significantly disrupting your sleep, a sleep specialist can help you find the right treatment without running into that problem.

