Doctors Note Logo

Published on: 2/6/2026

The "Jumpy Leg" Nightmare: Why You Can’t Stop Moving Your Legs at Night (and the B12 Fix)

Restless legs at night often reflect Restless Legs Syndrome, commonly driven by low iron stores and sometimes vitamin B12 deficiency, with pregnancy and certain medications or conditions also contributing. Ask your clinician for ferritin and B12 testing before supplementing, and review meds plus sleep habits to reduce symptoms. There are several factors to consider; see below for how iron and B12 affect the brain, when the B12 fix helps, and the red flags that should guide your next steps.

answer background

Explanation

The "Jumpy Leg" Nightmare: Why You Can't Stop Moving Your Legs at Night (and the B12 Fix)

If your legs feel restless, twitchy, or impossible to keep still when you lie down at night, you're not alone. Many people describe it as a crawling, pulling, or aching sensation that only eases when they move. This frustrating problem can ruin sleep, affect mood, and leave you exhausted the next day.

What you may be experiencing is Restless Legs Syndrome (RLS)—a common but often misunderstood condition. Below, we'll walk through RLS causes, the role of iron deficiency, why pregnancy legs are especially vulnerable, and where vitamin B12 may fit into the solution.


What Is Restless Legs Syndrome (RLS)?

Restless Legs Syndrome is a neurological condition marked by an urge to move the legs, usually in the evening or at night. Movement brings temporary relief, but symptoms often return when you rest again.

Common features include:

  • An uncomfortable urge to move the legs
  • Symptoms that worsen at night or during rest
  • Temporary relief with movement (walking, stretching, shaking the legs)
  • Poor sleep or difficulty falling asleep

RLS can range from mild and occasional to severe and nightly. While it's not usually dangerous, it can seriously affect quality of life if left unaddressed.


RLS Causes: What's Really Behind the Jumpy Legs?

There isn't one single cause of RLS. Instead, it's often linked to problems with how the brain handles certain nutrients and chemicals.

1. Iron Deficiency (One of the Most Important RLS Causes)

Iron plays a key role in brain signaling, especially in dopamine pathways that help control movement. Low iron levels—even without anemia—are strongly linked to RLS.

Iron deficiency may happen due to:

  • Heavy menstrual periods
  • Poor iron absorption
  • Digestive conditions
  • Chronic blood loss
  • Increased needs during pregnancy

Many people with RLS are surprised to learn their iron stores (measured by ferritin) are low, even when routine blood tests look "normal."


2. Vitamin B12 Deficiency and the "B12 Fix"

Vitamin B12 is essential for healthy nerves. When levels are low, nerve signals can misfire, leading to sensations like tingling, burning, or restlessness in the legs.

A B12 deficiency may be caused by:

  • Limited intake of animal-based foods
  • Absorption issues (such as with certain stomach or intestinal conditions)
  • Long-term use of acid-reducing medications
  • Age-related changes in digestion

For some people, correcting a B12 deficiency significantly improves leg symptoms. This is what many refer to as the "B12 fix"—not a cure-all, but an important piece of the puzzle when deficiency is present.


3. Pregnancy Legs: Why RLS Is Common During Pregnancy

Restless legs are especially common in pregnancy, particularly in the second and third trimesters. This is often called "pregnancy legs."

Reasons include:

  • Increased iron demands from the growing baby
  • Changes in circulation
  • Hormonal shifts affecting nerve signaling
  • Pressure on nerves and blood vessels

The good news: pregnancy-related RLS often improves or resolves after delivery. Still, symptoms during pregnancy should be discussed with a healthcare provider to ensure iron and B12 levels are adequate and safe to treat.


4. Genetics and Family History

RLS often runs in families. If a parent or sibling has it, your risk may be higher—especially if symptoms began before age 40.


5. Other Contributing Factors

Certain conditions and habits can make RLS worse:

  • Chronic kidney disease
  • Diabetes-related nerve damage
  • Parkinson's disease
  • Sleep deprivation
  • Excess caffeine or alcohol
  • Some medications (including certain antidepressants and antihistamines)

How Iron and B12 Affect the Brain and Legs

To understand why iron deficiency and B12 deficiency matter so much, it helps to know what they do:

  • Iron supports dopamine production and signaling in the brain
  • Vitamin B12 helps maintain nerve insulation and proper signal transmission

When either is low, the brain may misinterpret sensory signals from the legs, leading to restlessness and discomfort—especially at night, when dopamine levels naturally dip.


Signs You Might Have Low Iron or B12

Symptoms vary, but common clues include:

Possible Iron Deficiency Signs

  • Fatigue or low energy
  • Pale skin
  • Shortness of breath with exertion
  • Cold hands or feet
  • Worsening RLS symptoms at night

Possible B12 Deficiency Signs

  • Tingling or numbness in hands or feet
  • Balance problems
  • Brain fog or memory issues
  • Mood changes
  • Burning or crawling leg sensations

Only blood tests can confirm deficiencies, so guessing or self-treating is not recommended.


What You Can Do About Jumpy Legs at Night

1. Get Proper Testing

If you have ongoing leg restlessness, especially with poor sleep, it's reasonable to ask a doctor about:

  • Iron studies (including ferritin)
  • Vitamin B12 levels
  • Other possible contributors based on your history

Before your appointment, you can use a Medically approved LLM Symptom Checker Chat Bot to help organize your symptoms and prepare the right questions to discuss with your healthcare provider.


2. Treat Deficiencies Carefully

If iron deficiency or B12 deficiency is confirmed:

  • Treatment may involve dietary changes, supplements, or injections
  • Doses should be guided by a healthcare professional
  • Over-supplementing can be harmful, especially with iron

Improvement may take weeks, not days—patience is important.


3. Support Better Sleep Habits

These steps don't cure RLS, but they often reduce severity:

  • Keep a regular sleep schedule
  • Limit caffeine, especially after noon
  • Stretch or gently massage legs before bed
  • Use warm baths or heating pads (if safe for you)

4. Review Medications and Health Conditions

Some medications worsen RLS symptoms. A doctor can help determine whether adjustments are possible or if another condition is contributing.


When to Speak to a Doctor

While RLS itself is usually not life-threatening, some underlying causes can be serious if left untreated.

You should speak to a doctor promptly if:

  • Symptoms are severe or rapidly worsening
  • You have numbness, weakness, or loss of coordination
  • You're pregnant and symptoms are interfering with sleep
  • You suspect iron deficiency, B12 deficiency, or another medical condition
  • Sleep disruption is affecting daily functioning or mental health

Any symptom that could signal nerve damage, significant anemia, or another serious condition deserves professional evaluation.


The Bottom Line

The "jumpy leg" nightmare is real—and for many people, it has a physical explanation. RLS causes often include iron deficiency, vitamin B12 deficiency, and special situations like pregnancy legs. Addressing these factors can make a meaningful difference in comfort and sleep.

You don't need to panic, but you also shouldn't ignore persistent symptoms. Start with awareness, consider a trusted symptom check, and most importantly, talk with a doctor to rule out anything serious and build a treatment plan that's safe and effective for you.

(References)

  • * Ahmadi M, Raeisi A, Rezakhani M, Mirbagheri E. Vitamin B12 deficiency and restless legs syndrome: A case-control study. J Neurol Sci. 2017 Sep 15;380:159-162. doi: 10.1016/j.jns.2017.07.036. Epub 2017 Jul 27. PMID: 28848149.

  • * Haghdoost M, Ahmadi M, Raeisi A, Mirbagheri E. Restless legs syndrome is associated with vitamin B12 deficiency. Neurol Sci. 2021 Aug;42(8):3265-3270. doi: 10.1007/s10072-021-05187-8. Epub 2021 Mar 18. PMID: 34293526.

  • * Schrader M, Boek A, Klinge M, Omlor W, Spyrantis A, Leube D, Becker J, Reess J, Walter M, Kassubek J, Pinkhardt EH. Restless legs syndrome: an update on pathophysiology and emerging treatments. J Neural Transm (Vienna). 2022 Jul;129(7):835-853. doi: 10.1007/s00702-022-02500-z. Epub 2022 May 16. PMID: 35571658.

  • * García-Borreguero D, Carlander B, Clarenbach P, Garcia-Malo C, Granados J, Högl B, Lesage S, Montplaisir J, Muntean C, O'Keefe M, Ondo W, Paus S, Stiasny-Kolster K, Trenkwalder C, Schormair B, Winkelmann J. Update in the treatment of restless legs syndrome/Willis-Ekbom disease: a review. Sleep Med. 2021 Dec;88:179-191. doi: 10.1016/j.sleep.2021.09.029. Epub 2021 Oct 2. PMID: 34685141.

  • * Winkelman JW. Restless Legs Syndrome and Nutrition. Sleep Med Clin. 2016 Jun;11(2):227-32. doi: 10.1016/j.jsmc.2016.02.007. Epub 2016 Apr 2. PMID: 27040445.

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.