Doctors Note Logo

Published on: 7/14/2026

What are the causes of leg twitching when asleep?

Leg twitching during sleep is often caused by conditions such as restless legs syndrome (RLS) or nocturnal myoclonus (periodic limb movement disorder). These conditions trigger involuntary leg movements or uncomfortable sensations that can disrupt sleep quality and leave you feeling tired the next day.

Because nighttime leg twitching can stem from several different underlying causes—ranging from nerve issues and mineral deficiencies to sleep disorders—identifying the specific reason behind your symptoms is the key to finding relief. A free, instant, online symptom check can help you pinpoint likely causes and guide your next steps with confidence.

Reviewed for medical accuracy: 07/14/2026

answer background

Explanation

Leg twitching while asleep is often linked to two main conditions: restless legs syndrome (RLS) and nocturnal myoclonus.

Restless Legs Syndrome (RLS):

  • RLS is a condition where you feel an uncontrollable urge to move your legs, usually because of uncomfortable sensations. These sensations often occur in the evening or nighttime hours when you are sitting or lying down.
  • The need to move can make it hard to fall asleep or stay asleep.

Nocturnal Myoclonus:

  • This condition involves sudden, involuntary jerking movements of the legs during sleep. These jerks can happen repeatedly throughout the night, potentially disrupting sleep.

Both conditions can affect sleep quality and overall well-being. If you or someone you know is experiencing these symptoms, you can start by using a free symptom checker to better understand what might be causing your leg twitching and get guidance on next steps.

(References)

  • Lugaresi E, Cirignotta F, Coccagna G, & Montagna P. (1986). Nocturnal myoclonus and restless legs syndrome. Advances in neurology, 3946114.

  • Milligan SA, & Chesson AL. (2002). Restless legs syndrome in the older adult: diagnosis and .... Drugs & aging, 12390051.

  • van der Veen S, Caviness JN, Dreissen YEM, Ganos C, Ibrahim A, Koelman JHTM, et al. (2022). Myoclonus and other jerky movement disorders. Clinical neurophysiology practice, 36324989.

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.