Leg swelling related to fluid buildup. Leg swelling caused by the retention of fluid in leg tissues is known as peripheral edema. It can be caused by a problem with the circulatory system, the lymphatic system or the kidneys. You may also experience swelling due to fluid buildup after sitting or standing for a long time.