For example, if you take spironolactone for heart failure or edema (fluid retention and swelling) you're likely to lose weight as your body gets rid of excess fluid. On the other hand, if spironolactone isn't working well to treat these conditions, your body may retain more fluid. And this can lead to weight gain.