I think that depends on what your goals are. After high school, I put on about 40 lbs of muscle. (I think this was denial over being trans.) Anyway, I had to eat a lot, and eat healthy. And there was no substitute for heavy exercises with free weights. I was consuming about 5,000 calories a day, and at least 200 g of protein, eating every 2-3 hours while awake.
Funny, now, I'm trying to lose most of the muscle now.