There are many causes of edema, including certain health conditions and medications. Edema most commonly affects older adults and pregnant women. But it can happen to anyone.