How do I gain weight?

My fast metabolism and small stomach team up to make me fight to keep any weight on. I’ve tried eating more calories than necessary every day while working out, but that didn’t help any.