Swelling in the legs and ankles happens when fluid builds up in the tissues, a condition doctors call edema. The most common root causes are problems with blood flow back to the heart, heart or kidney failure, liver disease, vein weakness, medication side effects, and prolonged standing or sitting. Identifying the cause matters because treatment depends entirely on what is driving the fluid retention.
What Causes Swelling In Legs And Ankles?
Swelling occurs when fluid moves out of blood vessels and collects in surrounding tissue faster than the lymphatic system can drain it. Several different systems in the body control this balance. When any one of them fails, fluid pools in the lowest parts of the body — usually the feet, ankles, and lower legs.
The causes fall into a few broad categories:
- Venous problems — weakened veins or blood clots that prevent blood from returning to the heart efficiently
- Heart failure — the heart cannot pump strongly enough, so fluid backs up
- Kidney disease — the kidneys lose their ability to remove excess sodium and water
- Liver disease — reduced production of a key blood protein called albumin allows fluid to leak into tissues
- Medications — some drugs cause the body to retain fluid as a side effect
- Lymphatic obstruction — damage or blockage in the lymph vessels that normally drain excess fluid
Some causes are temporary and harmless. Others are signs of serious disease. A doctor can usually narrow down the cause with a physical exam, blood tests, and imaging.
How Do You Tell Whether Swelling Is Serious?
Swelling in one leg only is more concerning than swelling in both. One-sided swelling often points to a deep vein clot, which requires urgent medical evaluation. Swelling in both legs is more commonly linked to a body-wide condition such as heart, kidney, or liver disease.
Other signs that warrant prompt medical attention:
- Swelling that comes on suddenly rather than gradually
- Pain, redness, or warmth in the swollen area
- Shortness of breath or chest pain alongside the swelling
- Swelling that does not improve with elevation and rest
- Pitting — when pressing a finger into the swollen area leaves an indentation that persists
Pitting edema is a specific physical finding. When you press a fingertip into the swollen skin and it leaves a dent that stays for several seconds, that is pitting edema. It suggests the tissue is holding excess fluid under pressure. Non-pitting edema feels firm and does not hold an indentation. The distinction helps doctors narrow down the cause.
What Role Do Veins Play In Leg And Ankle Swelling?
Veins in the legs have one job: push blood upward against gravity back to the heart. They rely on one-way valves and the squeezing action of calf muscles to do this. When the valves weaken or the vein walls lose elasticity, blood pools in the lower legs and fluid leaks into surrounding tissue.
This is called chronic venous insufficiency. It is one of the most common causes of leg swelling in adults. Risk factors include a history of blood clots, obesity, pregnancy, prolonged standing, and aging. Some research suggests it affects a substantial share of adults over 50, though estimates vary widely depending on how it is defined and measured.
A related condition is deep vein thrombosis (DVT) — a blood clot in a deep vein, usually in the calf or thigh. DVT causes sudden swelling, often with pain and warmth. It is a medical emergency because the clot can travel to the lungs. If you have sudden one-sided leg swelling, seek medical care immediately.
Can Heart, Kidney, or Liver Problems Cause Swelling?
Yes. These three organs all play central roles in regulating fluid balance, and when any of them fails, fluid accumulates in the legs and ankles.
Heart failure means the heart cannot pump enough blood to meet the body’s needs. Blood backs up in the veins, raising pressure in the capillaries. That pressure pushes fluid into the tissues. Swelling from heart failure is usually in both legs and may worsen through the day. It is often accompanied by shortness of breath, especially when lying flat.
Kidney disease reduces the kidneys’ ability to filter and excrete sodium and water. When the kidneys cannot remove excess fluid, it builds up in the body. Swelling from kidney disease often appears in the legs and around the eyes. It may be worse in the morning.
Liver disease, particularly cirrhosis, lowers the production of albumin — a protein that helps keep fluid inside blood vessels. When albumin drops, fluid leaks into tissues. Liver-related swelling often includes abdominal swelling (ascites) along with leg edema.
Which Medications Can Cause Leg Swelling?
Several common medications list leg swelling as a known side effect. This is not a rare reaction — it is a recognized pharmacological effect for certain drug classes.
- Calcium channel blockers — used for high blood pressure, such as amlodipine and nifedipine
- Nonsteroidal anti-inflammatory drugs (NSAIDs) — ibuprofen, naproxen, and similar drugs can cause sodium and fluid retention
- Corticosteroids — long-term use can lead to fluid retention
- Some diabetes medications — certain thiazolidinediones have been associated with edema
- Hormone therapies — estrogen and some progesterone formulations can promote fluid retention
- Antidepressants — some classes have been linked to swelling in a minority of users
If you suspect a medication is causing your swelling, do not stop taking it on your own. Talk to your prescribing doctor. They can confirm whether the drug is the likely cause and adjust the dose or switch to an alternative if appropriate.
What About Lifestyle and Temporary Causes?
Not all leg swelling signals disease. Some of the most common causes are everyday situations that resolve on their own.
- Prolonged standing or sitting — blood pools in the legs when calf muscles are not contracting
- Long flights or car rides — immobility for hours slows venous return
- High-sodium meals — excess salt causes the body to hold water
- Pregnancy — increased blood volume and pressure from the growing uterus slow venous return from the legs
- Hot weather — blood vessels dilate, and fluid shifts into tissues more easily
- Minor injury — sprains and strains cause localized swelling as part of the healing response
Swelling from these causes usually improves with elevation, movement, and time. If it persists for more than a few days or keeps returning, it needs medical evaluation.
When Should You See a Doctor?
See a doctor promptly if leg swelling is sudden, one-sided, painful, or accompanied by shortness of breath or chest pain. These signs could indicate a blood clot or heart problem that needs urgent care.
Make an appointment if swelling is persistent, getting worse, or affecting both legs without an obvious cause. A doctor will typically check your medical history, current medications, and do a physical exam. They may order blood tests, an ultrasound of the leg veins, or imaging of the heart and kidneys depending on what they find.
Treatment depends entirely on the cause. Venous insufficiency is often managed with compression stockings and leg elevation. Heart, kidney, or liver disease requires treating the underlying condition. Medication-related swelling may improve with a dose change or a different drug. Diuretics are sometimes prescribed, but they are not appropriate for every type of edema — for example, they do not treat lymphedema or venous insufficiency directly.
Frequently Asked Questions
What is the most common cause of swelling in legs and ankles?
Chronic venous insufficiency is one of the most common causes, especially in adults over 50. It occurs when vein valves weaken and blood pools in the lower legs.
Can swelling in legs and ankles be a sign of heart problems?
Yes. Heart failure can cause fluid to back up and collect in the legs and ankles, usually on both sides. It is often accompanied by shortness of breath, especially when lying down.
How do I know if leg swelling is from a blood clot?
A blood clot typically causes sudden swelling in one leg, often with pain, warmth, or redness. If you have these symptoms, seek medical care immediately.
Does drinking more water help reduce leg swelling?
No. Drinking more water does not reduce edema caused by heart, kidney, or vein problems. In some cases, fluid restriction may be recommended by a doctor, but only when clinically appropriate.

