What is pitting edema? Pitting edema occurs when excess fluid builds up in the body, causing swelling; when pressure is applied to the swollen area, a “pit”, or indentation, will remain. Although it can affect any part of the body, pitting edema usually occurs in legs, feet, and ankles.