What Causes Swelling of the Legs and Feet?

Swelling of the legs and feet happens when excess fluid accumulates in the tissues below the knees, and the list of possible causes runs from sitting too long on a flight to serious organ disease. The medical term for this fluid buildup is edema, and it can be driven by problems in the veins, the lymphatic system, the heart, the kidneys, the liver, or even by hormonal shifts during pregnancy. What makes leg swelling tricky is that the same visible symptom can point to very different underlying problems, so understanding the broader landscape of causes matters more than memorizing any single one.

Why Fluid Pools in the Legs in the First Place

Gravity is the starting point. When you are standing or sitting upright, your heart has to push blood down to your feet and then pull it all the way back up. The return trip depends heavily on the veins in your calves, which act as a kind of pump. Every time the calf muscles contract, they squeeze the deep veins and push blood upward; one-way valves inside those veins keep it from sliding back down. This calf muscle pump is considered a major driver of venous return from the legs.1PubMed Central. Reduced calf muscle pump function is a risk factor for venous thromboembolism: a population-based cohort study In humans, the soleus muscle in the calf is unusually large and dominated by slow-twitch fibers compared to other mammals, an adaptation tied to bipedal posture and the constant demand of returning blood against gravity.2ScienceDirect. The soleus muscle in comparative anatomy: Morphological variation and functional adaptation across mammals, with clinical insights

When the calf pump is weak or underused, fluid starts to seep out of capillaries and accumulate in the surrounding tissue. Research has found that roughly two out of five adult women experience measurable fluid pooling when their legs stay in a dependent (hanging-down) position, and that exogenous stimulation of the calf muscle pump can halt and reverse that pooling.3PubMed. Reversal of lower limb edema by calf muscle pump stimulation This is why long periods of sitting, reduced mobility, and general deconditioning are among the most common everyday causes of mild leg swelling. For many people, the fix is as straightforward as moving more and contracting those calf muscles regularly.

Venous Problems

When the one-way valves inside your leg veins stop working properly, blood pools rather than traveling back to the heart. This condition, chronic venous insufficiency, causes a cascade of downstream effects: blood stagnation leads to increased pressure in the veins, fluid leaks into the surrounding tissue, and inflammation sets in. Over time, the skin can change color and texture, and in severe cases venous leg ulcers can develop.4PubMed Central. Chronic venous insufficiency and venous leg ulcers: Aetiology, on the pathophysiology-based treatment Early on, though, the main symptoms are leg heaviness, achiness, visible varicose veins, and swelling that worsens throughout the day and improves overnight when you lie flat.

A more acute venous cause is deep vein thrombosis, where a blood clot forms in one of the deep veins and physically blocks outflow. DVT commonly starts in the veins of the calf and typically presents as a swollen, reddened, and tender leg with pitting edema on the affected side.5ScienceDirect. Swelling of the legs and feet Because DVT usually affects one leg, sudden unilateral swelling with calf pain is a red flag that warrants urgent evaluation. A clot that breaks loose and travels to the lungs can become a pulmonary embolism, which is why clinicians take one-sided leg swelling seriously.

Heart Failure

When the heart cannot pump blood efficiently, the downstream effects ripple through the entire circulatory system. Reduced blood flow triggers the body’s emergency fluid-retention machinery: hormone systems ramp up, telling the kidneys to hold onto sodium and water instead of excreting them. The result is an expanding blood volume that the weakened heart cannot handle, and the extra fluid backs up into the tissues. In the legs, this shows up as bilateral pitting edema, often worst in the ankles and feet.6PubMed Central. Edema formation in congestive heart failure and the underlying mechanisms

Heart-failure-related swelling tends to come with other symptoms: shortness of breath (especially when lying down or exerting yourself), fatigue, and sometimes a noticeable weight gain over just a few days due to fluid retention. The edema is usually symmetrical, worsens as the day goes on, and improves somewhat with elevation. If you press a finger into the swollen area and the indentation lingers for several seconds, that pitting quality is characteristic of fluid-driven edema rather than other types of tissue swelling.

Kidney and Liver Disease

The kidneys regulate how much fluid and sodium your body retains. When they are damaged or failing, they lose the ability to filter and excrete excess fluid, and the result is generalized edema that often shows up first in the legs and around the eyes. Nephrotic syndrome, where the kidneys leak large amounts of protein into the urine, is a classic cause. As blood protein levels drop, the fluid that normally stays inside blood vessels seeps out into surrounding tissues.

Liver disease works through a related but distinct path. A failing liver produces less albumin, the main protein responsible for keeping fluid inside blood vessels. Low albumin means fluid shifts outward into tissues, and the legs and abdomen are the most common sites of accumulation. Advanced liver disease also raises pressure in the portal vein system, contributing to abdominal fluid buildup (ascites) that can worsen leg swelling indirectly by increasing pressure throughout the lower body. Both kidney and liver causes produce bilateral swelling, and distinguishing them from heart failure usually requires blood tests and imaging.

When One Leg Swells and Not the Other

The pattern of swelling is one of the most useful clues for figuring out what is going on. Unilateral swelling, where just one leg is affected, strongly suggests a local problem: a blood clot, an injury, an infection, or a blockage of lymph drainage on that side. Bilateral swelling, where both legs are affected more or less equally, points more toward systemic causes like heart failure, kidney disease, liver disease, or medication side effects.7PubMed Central. ABC of arterial and venous disease. Swollen lower limb-1: general assessment and deep vein thrombosis

This is not an ironclad rule. Chronic venous insufficiency can affect both legs, especially in someone with widespread valve dysfunction. And lymphedema can sometimes appear in just one limb after surgery or radiation treatment on that side. But as a starting framework, the one-leg-versus-two distinction is the first thing clinicians assess when evaluating swollen legs, because it narrows the diagnostic possibilities quickly.

Lymphedema

The lymphatic system runs parallel to the veins and drains excess fluid, proteins, and waste products from the tissues back into the bloodstream. When lymph channels are blocked, damaged, or malformed, the fluid accumulates and the limb swells. About four out of five cases of lymphedema occur in the lower limbs.8Archives of Surgery. Differential Diagnosis, Investigation, and Current Treatment of Lower Limb Lymphedema

Lymphedema comes in two forms. Primary lymphedema results from an inborn problem with the lymphatic channels themselves, where no external cause can be identified. Secondary lymphedema is caused by something external that damages the system: cancer treatment that removes or irradiates lymph nodes, scar tissue from surgery, or tumor growth compressing lymphatic vessels.9PubMed. Lower extremity lymphedema update: pathophysiology, diagnosis, and treatment guidelines In developed countries, the most common trigger is lymph node removal during cancer surgery, particularly for gynecological or pelvic cancers. In tropical regions, parasitic infections are a leading cause.

Lymphedema feels different from the soft, pitting edema of heart failure or venous disease. Early lymphedema pits when pressed, but as it progresses, the tissue becomes firmer and denser because of protein accumulation and fibrosis. The skin may thicken and develop a rough, cobblestoned texture. Unlike venous edema, which improves dramatically overnight, lymphedema tends to be more persistent and does not resolve fully with elevation alone.

Infections and Cellulitis

An acute bacterial skin infection, cellulitis, is one of the more sudden causes of leg swelling. Cellulitis typically involves the deeper layers of the skin and the tissue beneath, and it presents with rapid-onset redness, warmth, swelling, and tenderness. It is the most common reason for skin-related hospitalization, and uncomplicated cases are usually caused by streptococcal or staphylococcal bacteria that enter through a small break in the skin.10PubMed. Cellulitis: A Review of Current Practice Guidelines and Differentiation from Pseudocellulitis

What makes cellulitis relevant to the broader topic of leg swelling is that it and edema feed on each other. Pre-existing swelling from venous insufficiency or lymphedema creates cracks and moisture in the skin, which bacteria exploit. Then the infection causes more swelling and further damages lymphatic drainage, setting up a cycle that can be difficult to break. People with chronic leg edema from any cause have a higher risk of recurrent cellulitis, and each episode can worsen the underlying lymphatic damage.

Pregnancy and Hormonal Shifts

Swelling of the feet, ankles, and legs is one of the most common complaints during pregnancy, particularly in the second and third trimesters. In a study interviewing postpartum women about the lower extremity changes they experienced, more than half reported swelling of the foot, ankle, and leg, along with increased foot width and an unsteady gait.11ScienceDirect. Lower extremity changes experienced during pregnancy

Several things conspire to cause this. Blood volume increases substantially during pregnancy, rising by about 40 to 50 percent to support the growing fetus. Hormonal changes, particularly rising progesterone, relax the walls of blood vessels and slow venous return. And the expanding uterus physically compresses the large veins in the pelvis, making it harder for blood to get back from the legs. Most pregnancy-related swelling is harmless and resolves after delivery, but sudden or severe swelling, especially when accompanied by high blood pressure or protein in the urine, can signal preeclampsia, which requires medical attention.

Hormonal contraceptives and hormone replacement therapy can cause milder versions of the same phenomenon. Estrogen promotes fluid retention, and some people on these medications notice ankle and foot swelling as a side effect. This is usually mild but can be uncomfortable enough to prompt a medication change.

Medications That Cause Leg Swelling

A surprisingly long list of commonly prescribed drugs can cause lower extremity edema as a side effect. Calcium channel blockers, used for high blood pressure, are among the most frequent offenders. These drugs relax the walls of small arteries, which lowers blood pressure but also increases capillary pressure and lets fluid leak out into the tissues. The result is bilateral ankle swelling that may be quite noticeable.

Other medications linked to leg swelling include certain diabetes drugs (particularly thiazolidinediones), nonsteroidal anti-inflammatory drugs like ibuprofen (which cause the kidneys to retain sodium), corticosteroids, and some antidepressants. When leg swelling develops shortly after starting a new medication, the timing is an important diagnostic clue. The swelling typically resolves when the drug is stopped or switched, though this should always be done in consultation with a prescriber rather than on your own.

Less Obvious Triggers

Obesity and Sleep Apnea

Obesity contributes to leg swelling through multiple pathways. Excess abdominal weight compresses the veins that return blood from the legs, mimicking some of the same mechanics as pregnancy. Fat deposits can also impair lymphatic drainage. But one of the more surprising connections involves obstructive sleep apnea. Research has found that pulmonary hypertension associated with obesity and sleep apnea may cause bilateral leg edema even without obvious heart failure. The proposed mechanism is that increased pressure in the pulmonary arteries is transmitted backward through the right side of the heart and ultimately into the venous system of the legs, and that episodes of low oxygen during sleep may cause temporary right heart dysfunction that contributes to fluid retention.12Archives of Internal Medicine. Bilateral Leg Edema, Obesity, Pulmonary Hypertension, and Obstructive Sleep Apnea This means that in some people with bilateral leg swelling and obesity, treating the sleep apnea may improve the edema.

Thyroid Dysfunction

Both overactive and underactive thyroid function can cause leg swelling, though through different routes. Hypothyroidism is the better-known connection: severely low thyroid hormone levels lead to a distinctive non-pitting swelling called myxedema, where mucin deposits accumulate in the skin and subcutaneous tissue. Hyperthyroidism can also produce pretibial edema, as documented in a case where a patient with silent thyroiditis developed bilateral pitting edema of the shins along with palpitations and shortness of breath.13PubMed Central. Pitting type of pretibial edema in a patient with silent thyroiditis successfully treated by angiotensin ii receptor blockade Thyroid-related swelling is easy to overlook because other symptoms (fatigue, weight changes, mood shifts) tend to get more attention. A simple blood test can rule thyroid dysfunction in or out.

Nutritional Deficiency

Severe malnutrition, particularly protein or vitamin deficiency, can cause leg edema. Low protein intake leads to low blood albumin, which reduces the oncotic pressure that keeps fluid inside blood vessels. Thiamine (vitamin B1) deficiency causes wet beriberi, a condition that produces high-output heart failure along with progressive leg edema, breathing difficulty, and muscle weakness.14PubMed Central. Case report: pericardial effusion with constrictive physiology in a patient with wet beriberi While frank beriberi is uncommon in developed countries, it still appears in people with chronic alcoholism, severely restricted diets, or conditions that impair nutrient absorption. Nutritional edema tends to be bilateral and associated with other signs of deficiency like fatigue and weakness.

Compression Stockings and Practical Relief

For many causes of leg swelling, graduated compression stockings are a first-line intervention. These garments apply the most pressure at the ankle and gradually less pressure moving up the leg, which helps push fluid upward and supports the work of the calf muscle pump. Research confirms that even a short period of wearing compression stockings produces measurable reductions in calf circumference and extracellular fluid volume.15PubMed. Acute effect of wearing compression stockings on lower leg swelling and muscle stiffness in healthy young women

Compression works best for venous insufficiency, mild lymphedema, pregnancy-related swelling, and the everyday edema that comes from prolonged sitting or standing. It is less useful, and can sometimes be harmful, in conditions where arterial blood supply to the legs is compromised. If you have peripheral artery disease or diabetes with poor circulation, compression should only be used under medical guidance. For everyone else, over-the-counter graduated stockings in the 15 to 20 mmHg range are generally safe and can make a noticeable difference in daily comfort.

Beyond compression, leg elevation above heart level helps gravity work in your favor. Regular calf exercises, even simple toe raises and ankle pumps, activate the muscle pump described earlier and can prevent fluid from accumulating during long periods of sitting. Reducing sodium intake lowers the amount of fluid your body retains, which helps with edema from cardiac or renal causes. And for swelling tied to a specific medication, the most effective solution is usually working with your doctor to find an alternative drug.

When Swollen Legs Need Urgent Attention

Most leg swelling is gradual, mildly uncomfortable, and related to benign causes. But certain patterns warrant same-day or emergency evaluation. Sudden swelling in one leg, especially with calf pain, warmth, and redness, raises concern for a deep vein thrombosis and needs prompt imaging. New bilateral swelling with shortness of breath could signal worsening heart failure or a pulmonary embolism. Swelling accompanied by fever, rapidly spreading redness, and severe tenderness suggests cellulitis or another infection that may need intravenous antibiotics. And in pregnancy, sudden severe swelling with headache and visual changes can indicate preeclampsia, which is a medical emergency.

For swelling that comes on gradually and has been present for weeks or months, the urgency is lower, but the diagnostic importance remains. Chronic edema that goes untreated can damage the skin, promote infections, and reduce mobility. Even when the cause turns out to be something manageable like venous insufficiency or medication-related fluid retention, identifying and addressing it early prevents the cascading complications that make chronic leg swelling progressively harder to treat.