Foot, leg, and ankle swelling—also known as peripheral edema—refers to an accumulation of fluid in these parts of the body. The buildup of fluid is not usually painful, unless it is due to injury.