Additionally, measuring calories in food is done in a purely chemical fashion - the food is burned and the amount of heat energy released is measured. This of course does not actually measure how much energy your body is actually able to absorb (for example, dietary fiber burns just as well as refined sugar, but isnt absorbed the same in the body).