To maximize your gains you will need to be consuming the correct amount of calories and protein for your specific goal.
CALORIES
Enter your age, gender, height, current weight and activity level (should be Active: daily exercise or intense exercise 3-4 times/week), then hit calculate.
Once you hit calculate it will tell you your maintenance calories along with three different calorie deficits for weight loss. I would not recommend the extreme weight lost option, a calorie deficit should be no more than 500 less calories from your maintenance.
If you goal is to build muscle and lose fat (body recomp) you would eat at a calorie maintenance.
For a lean bulk (gaining lean muscle mass) you would need 2,000 to 2,500 calories added to your maintenance through out the week. For example my maintenance is 1,854; 2,500 divided by 7 days is about 358 calories. So to gain 1lb of lean muscle mass the most I would need to consume daily is 2,212 calories daily.
For overall weight gain it has been recommended to add 500 to 1000 calories to your daily maintenance.
Keep in mind that eating more or less of your calorie maintenance is not going to happen overnight, it is okay to slowly increase of decrease your calories so that it isn't too much of a shock to your body.
PROTEIN
It is recommended to consume 15-30 grams of protein per meal daily, but the amount of protein you should be consuming daily depends on your goal.
If you are trying to gain weight or build muscle it should be 0.7g-1g of protein per pound of body weight. For example, I weigh 117 pounds, the minimum amount of protein I will need to consume daily is about 82g, the maximum is 117g.
For losing weight, you should consume 1.0g-1.5g of protein per pound of your goal body weight. For example if you weigh 220 but you want to be 180 you should be eating between 180g-270g of protein daily.