Doctors Note Logo

Published on: 7/14/2026

What factors contribute to twitching of legs during sleep?

Leg twitching during sleep is most often caused by restless legs syndrome (RLS) and periodic limb movement disorder (PLMD). Both conditions are linked to neurological factors, involve involuntary muscle movements, and become more common with age. Other contributing factors may include iron deficiency, certain medications, stress, and underlying nerve issues.

Because nighttime leg twitching can stem from several different causes—some easily managed, others requiring medical attention—it's important to identify what's driving your symptoms before deciding on next steps. A free, instant, online symptom check can help you quickly narrow down possible causes based on your specific situation and guide you toward the right care, whether that's a lifestyle change, a supplement, or a conversation with your doctor.

Reviewed for medical accuracy: 07/14/2026

answer background

Explanation

Leg twitching during sleep is often associated with conditions like restless legs syndrome (RLS) and periodic limb movements (PLM). These conditions can cause uncomfortable feelings in the legs, leading to an urge to move them.

Restless Legs Syndrome (RLS)

  • Symptoms: RLS causes a strong desire to move the legs, usually due to uncomfortable sensations. This often happens at night.
  • Causes: The exact cause isn't entirely understood, but it may be linked to how the brain processes certain chemicals.

Periodic Limb Movements (PLM)

  • Symptoms: PLM involves repetitive spasms or jerking of the legs during sleep.
  • Causes: PLM can occur on its own or with RLS. Like RLS, it may be related to brain activity.

Both RLS and PLM are more common in older adults and can disrupt sleep, leading to tiredness during the day. If you're experiencing these symptoms and want to better understand what might be causing your leg twitching, you can check your symptoms with our free AI-powered tool to help identify potential causes and next steps for managing your condition.

(References)

  • O'Regan D, & Anderson KN. (2020). Restless legs syndrome and periodic limb movements .... British journal of hospital medicine (London, England : 2005), 32003620.

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

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

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.