It is simple math. Calories taken in - Calories burned  If your calorie intake is negative after you subtract calories burned, you will lose weight. If it is positive you will gain weight. Aside from medical issues, this is always the case.