What Deficiency Causes Weakness in Legs?

Several nutrient deficiencies can cause weakness in the legs, but the most common culprits are low levels of vitamin D, vitamin B12, potassium, magnesium, calcium, and thiamine (vitamin B1). Each one affects your muscles or nerves through a different mechanism, so the type of weakness you experience, where exactly you feel it, and what other symptoms show up can point toward the specific deficiency involved.

Vitamin D Deficiency

Vitamin D plays a direct role in how your muscles contract, particularly the fast-twitch muscle fibers you rely on for power movements like climbing stairs or standing up from a chair. When levels drop low enough, those fibers shrink. The result is a specific pattern of weakness concentrated around the hips and thighs, sometimes called proximal muscle weakness. You might notice a waddling gait, trouble getting up from a seated position, or difficulty walking uphill.

In more advanced cases, this progresses to significant walking difficulty and, in rare situations, loss of the ability to walk independently. Children and adolescents with severe vitamin D deficiency consistently show proximal muscle weakness on examination, and the pattern is similar in adults. Because vitamin D deficiency develops slowly, the weakness tends to creep in over weeks or months rather than hitting suddenly. Many people attribute it to aging or deconditioning before the real cause is identified.

A simple blood test measuring 25-hydroxyvitamin D can confirm whether your levels are low. The Endocrine Society’s 2024 guideline notes that precise thresholds tied to specific health outcomes haven’t been firmly established in clinical trials for otherwise healthy adults, but most clinicians still use a level below 20 ng/mL as a marker of deficiency and below 30 ng/mL as insufficiency.

Vitamin B12 Deficiency

Vitamin B12 is essential for maintaining the protective coating around your nerves, called myelin. Without enough B12, that coating breaks down in a process called demyelination. The signals traveling from your brain to your leg muscles slow down or get scrambled, producing weakness, numbness, and coordination problems.

The hallmark condition is called subacute combined degeneration of the spinal cord, which affects the nerve pathways responsible for both movement and sensation in the legs. Symptoms typically include numbness or tingling in the feet, progressive weakness, and difficulty walking with an unsteady gait. The mechanism involves disrupted chemical reactions that your body needs to maintain and rebuild myelin. Specifically, B12 is required for a process called methylation, which keeps nerve insulation intact.

B12 deficiency is especially common in older adults (whose stomachs produce less of the acid needed to absorb it), people on long-term acid-reducing medications, and those following strict vegan diets. The neurological damage can become permanent if left untreated for too long, which is why unexplained leg weakness combined with numbness or balance problems warrants a blood test for B12 levels.

Low Potassium

Potassium is the electrolyte most directly tied to muscle contraction. Your muscles need the right balance of potassium inside and outside each cell to fire properly. When blood potassium drops, muscles lose their ability to contract with normal force.

The legs are often the first place you notice it. Weakness, pain, and cramps are the classic triad. According to data from the American Academy of Family Physicians, about half of patients with severe low potassium (at or below 2.5 mEq/L) develop noticeable neuromuscular symptoms. At very low levels, the weakness can progress to paralysis of the lower legs. Normal potassium ranges from roughly 3.5 to 5.0 mEq/L, so there’s a meaningful gap between “slightly low” and “dangerously low.”

Common causes include heavy sweating, chronic diarrhea or vomiting, certain blood pressure medications (particularly diuretics), and eating patterns that consistently lack potassium-rich foods like bananas, potatoes, and leafy greens. Unlike some of the vitamin deficiencies on this list, potassium drops can happen fast, sometimes over hours or days rather than months.

Magnesium Deficiency

Magnesium acts as a gatekeeper for how your nerves stimulate your muscles. When magnesium drops too low, the nerves become overexcitable, firing too easily and in disorganized patterns. This shows up as muscle spasms, tremors, cramps, and general weakness, with fatigue layered on top.

What makes magnesium deficiency tricky is that it often drags other minerals down with it. Low magnesium can directly cause low calcium and low potassium levels, creating a cascade where multiple deficiencies compound the weakness. If your doctor finds low calcium or potassium that doesn’t respond to supplementation, magnesium deficiency is frequently the hidden root cause.

Magnesium is found in nuts, seeds, whole grains, and dark leafy greens. Deficiency risk rises with heavy alcohol use, poorly controlled diabetes, and chronic digestive conditions that impair nutrient absorption.

Calcium Deficiency

Calcium’s role in leg weakness is tied to how it controls nerve signaling at the point where nerves meet muscles. When blood calcium falls, the nerves controlling your muscles become hyperexcitable. In mild cases, this means tingling around the mouth and fingertips, muscle twitching, and cramps. As levels drop further, you can develop sustained involuntary muscle contractions (tetany), general weakness, and in severe cases, seizures.

The speed of the drop matters as much as the absolute number. A rapid decline in calcium produces more dramatic symptoms than a slow, gradual decrease, because your body has less time to compensate. Causes range from low vitamin D (which your body needs to absorb calcium) to parathyroid gland problems and certain medications.

Thiamine (Vitamin B1) Deficiency

Severe thiamine deficiency causes a condition called beriberi, and the “dry” form targets the nervous system with a particular focus on the legs. Symptoms include difficulty walking, loss of sensation in the hands and feet, decreased reflexes, coordination problems, and in advanced cases, paralysis of the lower legs.

Thiamine deficiency is rare in people eating a varied diet but occurs more often in chronic heavy drinkers, people with prolonged vomiting, and those on very restrictive diets. Diagnosis involves blood and urine tests for thiamine levels, and symptoms typically improve with supplementation if caught before permanent nerve damage occurs.

How to Tell Which Deficiency You Might Have

The pattern of weakness offers important clues. Difficulty standing from a chair or climbing stairs, centered around the hips and thighs, points toward vitamin D. Numbness and tingling in the feet along with an unsteady walk suggests B12. Sudden-onset weakness with painful cramps raises suspicion for potassium. Muscle spasms and twitching that don’t resolve lean toward magnesium or calcium. Progressive lower-leg weakness with sensory loss fits the thiamine pattern.

In practice, multiple deficiencies often overlap, especially in people with poor dietary intake, digestive conditions, or heavy alcohol use. A basic set of blood tests can check levels of vitamin D, B12, potassium, magnesium, calcium, and thiamine simultaneously. Because several of these deficiencies are fully reversible when caught early but can cause lasting damage if ignored, persistent or worsening leg weakness is worth investigating rather than assuming it will resolve on its own.