What can cause extreme weight gain and swelling of the extremities?

Fluid retention? Some medicines can stimulate appetite and / or cause fluid retention which would show up as swelling of the legs. Many overweight people think they have swelling of the extremities. You would be well advised to see your family doctor for an objective examination, determination of you optimal weight for height, and an action plan for achieving your goals regardless of the cause of weight gain.