There is a good article by Powerbar looking at BMR and Caloric Expenditure. If you can work these two figures out and you keep track on how many calories you are consuming each day then weight gain comes down to either
1) Input vs Output in terms of calories (Calories Consumed vs Calories Expended)