It is not only the consumption of calories that determines your weight but also the amounts burned by your body on a daily basis. The maths here is simple. If you consume more calories than you burn, you will end up gaining weight, and vice versa.