Why Do My Legs Feel Weird at Night? Causes & Fixes

That strange, hard-to-describe feeling in your legs at night is most likely restless legs syndrome (RLS), a neurological condition that affects 5% to 10% of adults. The sensations typically start when you’re sitting or lying down in the evening and create an almost irresistible urge to move your legs. While RLS is the most common explanation, nighttime leg discomfort can also stem from nerve damage, nutritional deficiencies, or certain medications.

What Those Sensations Actually Feel Like

People describe nighttime leg weirdness in surprisingly varied ways: creepy-crawly, jittery, pulling, burning, throbbing, tightness, itching, or even a shock-like feeling. The sensations are usually felt deep inside the leg rather than on the skin’s surface, and over half of people with RLS report pain as their primary symptom. What ties all these descriptions together is the timing and the relief pattern. The feelings appear during rest, get worse in the evening, and improve when you move.

That last detail is the hallmark. If getting up to walk around, stretching, or rubbing your legs makes the sensation fade, only for it to return once you settle back into bed, that’s the classic RLS pattern.

What’s Happening in Your Brain

RLS traces back to a part of the brain called the basal ganglia, which uses dopamine to produce smooth, controlled muscle activity. When dopamine signaling is disrupted in this region, the result is involuntary movements and uncomfortable sensations. This is the same brain area involved in Parkinson’s disease, though the two conditions are distinct.

Iron plays a critical but not fully understood role. Low iron levels in the brain appear to contribute to RLS, likely because iron is needed to produce and regulate dopamine. Your blood iron levels can be perfectly normal while your brain still isn’t getting enough, which is why standard blood tests sometimes miss the connection. The International RLS Study Group recommends iron supplementation when ferritin (a protein that stores iron) drops below 75 mcg/L, a threshold significantly higher than what most labs flag as “low.”

Common Triggers That Make It Worse

Several everyday medications can trigger or intensify nighttime leg sensations. Antihistamines, the kind found in many over-the-counter sleep aids and allergy medications, are a well-documented culprit. Common antidepressants, including SSRIs and SNRIs, are also associated with worsening RLS symptoms. Anti-nausea medications that block dopamine can have the same effect. If your leg symptoms started or worsened after beginning a new medication, that connection is worth exploring with whoever prescribed it.

Caffeine, alcohol, and nicotine, particularly in the hours before bed, can all amplify symptoms. So can prolonged sitting, which is why many people first notice the problem during long flights, car rides, or movie nights.

Pregnancy and Hormonal Shifts

About 20% of pregnant women develop RLS, making pregnancy one of the most common triggers. The condition typically worsens during the third trimester, likely due to a combination of shifting iron stores, hormonal changes, and increased blood volume. The good news: roughly 70% of affected women see their symptoms resolve by delivery, and for those who developed RLS for the first time during pregnancy, 90% are symptom-free within a month after giving birth.

Women are 1.5 to 2 times more likely than men to experience RLS overall, a gap that persists well beyond childbearing years and suggests hormonal factors play a lasting role.

When It Might Not Be RLS

Peripheral neuropathy, or nerve damage in the legs, can produce similar nighttime discomfort but has some key differences. Neuropathy symptoms often include numbness, tingling, or a pins-and-needles sensation and don’t necessarily improve with movement. They also don’t follow the same evening-worsening pattern as strictly as RLS does. Neuropathy is especially common in people with diabetes or a history of heavy alcohol use.

Some people have both conditions simultaneously. Research shows that people with peripheral neuropathy and RLS together tend to have more severe symptoms and more disrupted sleep than those with RLS alone. A notable clue: 92% of people with RLS who don’t have neuropathy report a family history of the condition, compared to just 13% of those whose RLS appears alongside nerve damage. If restless legs run in your family, the cause is more likely dopamine-related than nerve-related.

Another possibility is periodic limb movement disorder, where your legs jerk or twitch involuntarily during sleep. You might not be aware of the movements themselves, but they fragment your sleep and can leave your legs feeling strange or fatigued. A sleep study diagnoses this by counting movements per hour: more than 15 per hour in adults is considered significant.

What Actually Helps

Iron is the first thing to check. A simple blood test for ferritin can reveal whether your stores are low enough to contribute to symptoms. Remember that the threshold for RLS treatment (below 75 mcg/L) is well above what most labs consider deficient, so a result your doctor calls “normal” might still be worth addressing.

Compression therapy has surprisingly strong evidence behind it. In a randomized, controlled trial, pneumatic compression devices (inflatable wraps that rhythmically squeeze the legs) reduced RLS severity scores by about 40%, and one-third of participants experienced complete relief. Quality of life improved across the board: daytime function improved 21%, sleep quality 16%, and daytime sleepiness dropped significantly compared to placebo devices. These are the same type of compression boots sometimes sold for athletic recovery.

Regular exercise helps many people, but timing matters. Moderate activity earlier in the day tends to reduce symptoms, while intense exercise close to bedtime can make them worse. Stretching the calves and thighs before bed, massaging your legs, and alternating warm and cool compresses are low-risk strategies that provide enough relief for some people to fall asleep.

Magnesium and Supplements

Magnesium is one of the most commonly recommended natural remedies for RLS, but the evidence is genuinely mixed. One clinical trial found that 250 mg of magnesium oxide daily for two months reduced RLS symptoms and improved sleep quality. However, systematic reviews have concluded that there isn’t enough consistent data to call magnesium an effective treatment, and some researchers have found it essentially useless for this purpose. It’s unlikely to cause harm at moderate doses, but it shouldn’t be your only strategy if symptoms are significantly disrupting your sleep.

Patterns Worth Tracking

If you’re trying to figure out what’s driving your symptoms, keep a simple log for two weeks. Note when symptoms start, how severe they are, what you ate and drank that day, any medications you took, how much you exercised, and when you exercised. Many people discover a clear pattern tied to caffeine intake, meal timing, or a specific medication. That log also becomes extremely useful if you end up seeing a doctor, since RLS is diagnosed based on your description of symptoms rather than a single test.