A surplus of energy will be stored, and the useful question is where. The partitioning between muscle and fat is influenced by a small number of factors, most of which are within your control, and understanding them explains why two people gaining the same weight can end up looking entirely different. This is the question that separates a successful gaining phase from one that simply produces a larger version of the same body. The variables are few enough to list and important enough that getting them right changes the outcome substantially. Where the surplus goes is largely determined by a handful of factors, and most of them are things you decide.
The training stimulus
Resistance training is the signal that tells the body muscle is worth building and maintaining. Without it, a surplus is stored overwhelmingly as fat regardless of how much protein accompanies it. This is the single largest determinant, and it means anyone attempting to gain weight without training should expect to gain predominantly fat, whatever the diet looks like. Progressive overload rather than sheer volume is what sustains the signal over months, since the body adapts to whatever it is repeatedly asked to do. Two to four sessions weekly covering the main movement patterns is sufficient to provide the signal.
Protein
Muscle is built from amino acids, and intake in the region of 1.6 to 2.2 grams per kilogram of body weight daily supports accrual, with little further benefit above that. Distribution across meals matters, with roughly twenty-five to forty grams per meal producing a better response than the same total concentrated in one sitting, as our guide to protein requirements covers. Total daily intake matters most, and distribution is a refinement worth applying once the total is reliably being met. Reaching the target consistently matters more than hitting it precisely on any given day. Around 1.6 to 2.2 grams per kilogram daily covers it, and going substantially higher adds cost rather than muscle.
The size of the surplus
A modest surplus is used efficiently; a large one exceeds what muscle accrual can absorb and the remainder is stored as fat. This is why aggressive overfeeding produces weight rather than physique. Around three hundred to five hundred calories above maintenance is the range generally recommended, adjusted according to what actually happens over three or four weeks. Adjusting from what actually happens over several weeks is more reliable than any equation, since maintenance figures are estimates rather than measurements. Overshooting the surplus is the most common error and the easiest to correct once noticed.
Training history
Beginners gain muscle considerably faster than experienced trainees, an effect substantial enough to have acquired a nickname. Rates of a kilogram or more monthly are achievable in the first year for some people, declining to a few hundred grams monthly in the second and considerably less thereafter. Anyone regaining muscle they previously had recovers it faster than they built it originally, an effect attributed to retained myonuclei. Muscle memory is a real phenomenon with a plausible cellular basis, which is encouraging for anyone returning after a break. Retained myonuclei appear to persist for years, which is the leading explanation for how quickly muscle returns. Beginners progress fastest, which means early results are not a reliable guide to what the second year will look like.
Age, sex and genetics
Muscle accrual slows with age through anabolic resistance, which means older trainees need more protein per meal and progress more slowly, though they retain the capacity to build muscle at any age. Women build muscle at similar relative rates to men and lower absolute rates, largely reflecting differences in starting mass and hormonal environment. Genetic variation in response to training is substantial and not something anyone can do much about. Chronic sleep restriction has been shown to reduce muscle protein synthesis and shift gains towards fat, which places it alongside food and training rather than below them. Seven to nine hours is the range associated with better outcomes across the training literature. Strength improving in the gym is the most responsive indicator available and considerably more informative than the mirror.
What to expect realistically
A few hundred grams of muscle monthly for most people beyond the first year. This is slow enough that visible change takes months and is easily mistaken for no progress, which is why strength in the gym is a better short-term indicator than appearance. Sleep and recovery matter alongside food and training, and chronic sleep restriction measurably impairs muscle accrual. Our weight section covers the broader context.