Doctors Note Logo

Published on: 7/14/2026

What causes my leg to twitch when I try to sleep?

Leg twitching at night is often caused by certain medications, involuntary rhythmic movements as you drift off to sleep, or alcohol use that disrupts normal sleep patterns. Other common triggers include stress, caffeine, dehydration, and underlying conditions like Restless Legs Syndrome (RLS) or Periodic Limb Movement Disorder (PLMD).

Because nighttime leg twitching can stem from many different causes—some harmless, others worth addressing—it's smart to get a clearer picture of what's driving your symptoms. Take a free, instant, online symptom check to better understand what may be going on and confidently plan your next steps.

Reviewed for medical accuracy: 07/14/2026

answer background

Explanation

When your leg twitches at night, it might be due to different reasons. Some medicines can make your legs restless. This means your legs might feel like they need to move, especially when you try to sleep. Another reason could be rhythmic movements that happen as you fall asleep. These are like little kicks or twitches that happen without you trying. Finally, drinking alcohol can also change how your legs move when you're asleep.

Possible Causes:

  1. Medication: Some medicines may cause restless legs. This can make it hard to keep your legs still at night.
  2. Rhythmic Movements: As you fall asleep, your feet might move on their own. This is normal for some people.
  3. Alcohol Use: Drinking alcohol can affect your sleep and cause your legs to move more when you're asleep.

If you are experiencing these symptoms often and they are bothering you, you can check your symptoms with our free AI-powered tool to better understand what might be causing the problem and help determine if you should talk to a healthcare provider.

(References)

  • Page RL 2nd, Ruscin JM, Bainbridge JL, & Brieke AA. (2008). Restless legs syndrome induced by escitalopram. Pharmacotherapy, 18225972.

  • Wichniak A, Tracik F, Geisler P, Ebersbach G, Morrissey SP, & Zulley J. (2001). Rhythmic feet movements while falling asleep. Movement disorders : official journal of the Movement Disorder Society, 11748754.

  • Aldrich MS, & Shipley JE. (1993). Alcohol use and periodic limb movements of sleep. Alcoholism, clinical and experimental research, 8452202.

Thinking about asking ChatGPT?Ask me instead

Tell your friends about us.

We would love to help them too.

smily Shiba-inu looking

For First Time Users

What is Ubie’s Doctor’s Note?

We provide a database of explanations from real doctors on a range of medical topics. Get started by exploring our library of questions and topics you want to learn more about.

Was this page helpful?

Purpose and positioning of servicesUbie Doctor's Note is a service for informational purposes. The provision of information by physicians, medical professionals, etc. is not a medical treatment. If medical treatment is required, please consult your doctor or medical institution. We strive to provide reliable and accurate information, but we do not guarantee the completeness of the content. If you find any errors in the information, please contact us.