Weight gain occurs when you eat more calories than your body uses up. If the food you eat provides more calories than your body needs, the excess is converted to fat. Initially, fat cells increase in size. When they can no longer expand, they increase in number. If you lose weight, the size of the fat cells decreases, but the number of cells does not.