Yes they measure the amount 1g of each individual food raises the temperature of 1cm cubed of water and work out the calorific value that way. Then it is just scaling it. I could go into much more detail but I would bore your pants off. Now unless you are a very atractive lady then I dont want to be doing that now do I?