If you want to lose fat and not muscle, or gain muscle and not fat, then you need to pay close attention to both your energy and macronutrient balances. In this context, a calorie is no longer a calorie because a calorie of protein does very different things in your body than a calorie of carbohydrate or dietary fat.