Health information to help you understand symptoms. It isn't a diagnosis.
Check symptoms

Swollen ankles, feet, or both legs

Also called: Edema, fluid retention, swollen legs, puffy ankles

Swelling in the ankles, feet, or legs happens when extra fluid collects in the tissues. It's common after standing or sitting a long time, in hot weather, during pregnancy, and with some medicines. Swelling in only one leg, or swelling with shortness of breath or chest pain, needs urgent care.

Common causesStanding or sitting long, pregnancy, medicines, vein problems
Usually serious?Often not, but it can signal heart, kidney, or liver problems
Get checked ifOnly one leg is swollen, or home care doesn't help
If you think it's an emergency, call 911.Thinking about suicide? Call or text 988.

Overview

Painless swelling of the feet, ankles, and legs is called edema. It's common, especially in older adults, and gravity makes it show up most in the lower body. Pressing on the swollen area may leave a dent that slowly fills in.

Swelling in both legs is usually from fluid buildup caused by posture, weight, pregnancy, vein problems, medicines, or a problem with the heart, kidneys, or liver. Sudden swelling in just one leg can be a blood clot, which is dangerous.

When to get medical care

Call 911Swelling with shortness of breath or chest pain, pressure, or tightness.
Get care todayNew or worse swelling in only one leg, especially if it's painful, warm, or red (possible blood clot). The swollen area is red or warm, or you have a fever. You're pregnant and have sudden swelling, or swelling in your face or hands, or a headache or vision changes (possible preeclampsia). You have heart or kidney disease and the swelling is getting worse. You have liver disease and new swelling in your legs or belly.
See a doctor soonSwelling that doesn't improve with raising your legs and home care. Swelling that is getting worse over time. Swelling that started after a new medicine.

Causes

Common causes include standing or sitting for a long time, long flights or car rides, being overweight, older age, hot weather, pregnancy, menstrual changes, and weak leg veins (venous insufficiency, often with varicose veins). Other causes include a blood clot in the leg (DVT), a leg injury or surgery, an infection, medicines (some blood pressure drugs, steroids, NSAIDs, hormones, and some antidepressants and diabetes drugs), and heart failure, kidney disease, or liver disease. In pregnancy, severe swelling can be a sign of preeclampsia.

OwieClear has pages on 12 conditions that can cause swollen ankles, feet, or both legs. Each shows how soon to get care.

Common causes

Less likely causes

  • Heart murmur or valve problemSee a doctor if it doesn't get better

    A whooshing sound a doctor hears through the stethoscope.

  • Mitral regurgitation (leaky mitral valve)See a doctor if it doesn't get better

    A heart valve problem where the mitral valve doesn't close tightly and blood leaks backward.

  • Cardiomyopathy (weak or thickened heart muscle)See a doctor if it doesn't get better

    A disease of the heart muscle that makes it harder for the heart to pump.

  • Tricuspid regurgitationSee a doctor if it doesn't get better

    A leak in the tricuspid valve on the right side of the heart, often caused by lung disease, high lung pressure, or a pacemaker wire.

  • Kaposi sarcomaSee a doctor if it doesn't get better

    A cancer that forms purple, red, or brown patches or bumps on the skin, inside the mouth, or in other organs.

  • Lymphatic filariasis (elephantiasis)See a doctor if it doesn't get better

    A parasitic worm infection spread by mosquitoes in tropical areas that damages the lymph vessels.

  • Ménétrier diseaseSee a doctor if it doesn't get better

    A rare stomach condition with very thick stomach folds that leak protein.

  • Thiamine (vitamin B1) deficiencySee a doctor if it doesn't get better

    Low thiamine can cause tiredness, numb or burning feet, weak legs, and swelling.

What you can do at home

  • Raise your legs above your heart when lying down, several times a day.
  • Move around. Walk and exercise your legs to pump fluid back toward the heart. On long trips, get up and move often.
  • Cut back on salt in your diet.
  • Wear support stockings (compression socks), putting them on first thing in the morning.
  • Avoid tight clothing around your thighs or legs.
  • Lose weight if needed, which takes pressure off your legs.
  • Don't stop any medicine without talking to your doctor, even if you think it's causing the swelling.

Medicines

There's no safe over-the-counter medicine for swelling. Water pills (diuretics) are prescription only and are used when the cause calls for them. Avoid taking NSAIDs like ibuprofen regularly, as they can make swelling worse.

At the doctor

The doctor will look for the cause by checking your heart, lungs, belly, and legs.

Questions you may be asked

  • Which parts swell and whether it's one leg or both
  • When it started and whether it comes and goes
  • What makes it better or worse, like time of day or position
  • Whether you've had blood clots or varicose veins
  • Your medicines
  • Other symptoms, like shortness of breath, weight gain, or less urine
  • Whether you could be pregnant

The exam

A physical exam of the heart, lungs, abdomen, lymph nodes, legs, and feet.

Tests

  • Blood tests for kidney, liver, and heart function
  • A urine test
  • A Doppler ultrasound of the leg veins to look for a clot
  • A chest X-ray
  • An ECG or echocardiogram (heart ultrasound)

Prevention

You can reduce everyday swelling.

  • Don't sit or stand in one position for hours; take walking breaks
  • Keep a healthy weight
  • Limit salt
  • Exercise regularly to keep leg muscles and veins strong
  • Wear compression socks on long trips or if you stand all day

Check your symptoms

Most symptoms have more than one possible cause. The symptom checker looks at all of your symptoms together, plus your age, and shows how soon to get care.

Start the symptom checker

Sources

Last updated 2026-11-13.

See something wrong or unclear on this page? Suggest a correction. OwieClear is for education only and isn't medical advice.