Question: how can you gain weight by working out?
Answer: You will gain weight from lean muscle mass that you add by building your muscles with exercise or weightlifting. But this won't happen right away. It will take you at least a month or two to add any lean muscle mass that would show up in your weight.