Swollen legs, ankles and/or feet is also known as edema. Painless swelling may be caused from medications, injury, vein problems, heart problems or other reasons. Prolonged swelling or painful swelling of the foot or leg should not be ignored and your physician should always be consulted. Commonly, compression socks and stockings are used to manage swelling. Mild swelling is often managed with support hosiery that provide less than 20mmHg of compression. Moderate or severe swelling may require compression stockings that deliver higher compression and your physician should be consulted.