Key Takeaways
- Restless legs syndrome is the most common cause of nighttime twitching.
- Even mild iron deficiency can trigger restless legs symptoms.
- Some everyday medications, including antidepressants and antihistamines, may make twitching worse.
- Stress, pregnancy, and kidney disease are recognized risk factors.
- Related sleep problems, like sleep apnea and periodic limb movements, often occur alongside restless legs.
If your legs start twitching, tingling, or feel jumpy when you settle down at bedtime, you’re definitely not alone. This annoying feeling sometimes called “restless legs” can ruin a good night’s sleep and leave you tired or cranky all day.
Sleep experts now recognize several hidden reasons for nighttime leg twitching, ranging from common health issues to everyday habits.
1. Restless Legs Syndrome: The Main Culprit
The top reason people experience leg twitching or a need to move their legs at night is called restless legs syndrome (RLS).
RLS causes an urge to move the legs, paired with weird sensations like crawling, tingling, or throbbing. The symptoms nearly always get worse in the evening or when you’re lying down.
Getting up or shifting position brings relief, but only temporarily. RLS isn’t rare. In fact, up to 1 in 10 people will deal with it at some point.

2. Low Iron Can Make Restless Legs Worse
You don’t need to have full-blown anemia for iron to affect your sleep. Even mild iron deficiency is linked to restless legs, particularly if certain iron measurements (like “ferritin”) are low, even if a basic blood test says you’re “normal”.
Doctors increasingly recommend checking iron levels if you have sleep problems related to leg twitching or RLS. (*)
3. Your Everyday Medicines Could Be to Blame
Certain medications can trigger or worsen restless legs or nighttime twitching. These include: (*)
- Some antidepressants (especially SSRIs and SNRIs)
- Antipsychotic drugs
- Sedating antihistamines (like those for allergy or sleep)
If you notice leg problems after starting a new prescription, talk to your doctor about possible alternatives. Never stop a prescribed medicine without professional advice.
4. Stress and Lifestyle Factors Make Twitching Worse
Stress and anxiety can make muscle twitching and restless legs more noticeable, especially at night.
Drinking caffeine or alcohol late in the day may also ramp up symptoms. Treating underlying sleep issues, such as sleep apnea, can help cut down on nightly episodes.
5. Pregnancy: RLS Is Common for Expecting Mothers
If you’re pregnant particularly in the second or third trimester you’re much more likely to experience restless legs.
Experts believe this is due to higher iron demands and hormone changes during pregnancy. The good news: these symptoms usually disappear after your baby is born.
6. Kidney Issues Play a Role, Especially for People on Dialysis
Leg twitching and RLS are much more common for people with chronic kidney disease, especially those using dialysis. (*)
Iron and mineral imbalances are likely reasons behind this connection. Keeping your kidney health and iron levels on track can help ease symptoms.
7. Other Sleep Problems and Nerve Conditions Can Cause Twitching
Periodic Limb Movements of Sleep (PLMS) are nighttime jerky movements often seen in people with RLS. (*)
These involuntary twitches can disrupt sleep, leave you feeling exhausted, and even affect your blood pressure. Sleep apnea can also go hand-in-hand with RLS and make leg symptoms worse.
Additionally, nerve conditions, like diabetic neuropathy, increase your risk of restless legs. Fixing these underlying health problems may help you sleep better and move less during the night.
When Should You Get Help?
If twitchy legs are making it hard to sleep, don’t ignore the problem. Talk to a healthcare professional about:
- Checking your iron status (especially ferritin)
- Reviewing your medications for possible triggers
- Screening for sleep apnea or other sleep disorders
There’s no one-size-fits-all answer, but solutions exist, often starting with simple changes to your daily routine or getting the right diagnosis.
Feeling comfortable and calm at bedtime is possible and you don’t need a medical degree to start tackling nighttime leg twitching. Recognizing these common causes and getting help if you need it are the first steps to better sleep and brighter mornings.
Up next:






