They determine the food's ratio of protein, carbs, and fat per weight and then just multiply (protein and carbs have 4 calories per gram, fat has 9).
But apparently, before they figured that out, they would actually burn the food and measure the heat output. After all, a calorie is nothing but a measure of heat energy. http://www.straightdope.com/classics/a3_ 097a.html
SparkPeople, SparkCoach, SparkPages, SparkPoints, SparkDiet, SparkAmerica, SparkRecipes, DailySpark, and other marks are trademarks of SparkPeople, Inc. All Rights Reserved. No portion of this website can be used without the permission of SparkPeople or its authorized affiliates.
SPARKPEOPLE is a registered trademark of SparkPeople, Inc. in the United States, European Union, Canada, and Australia. All rights reserved.