To gain muscle and lose fat, aim for a moderate carb intake, around 40-50% of your daily calories. This will provide energy for workouts and support muscle growth while helping to control overall calorie intake for fat loss.