jellybaby is right - and wrong. Pure fats and oils have the highest number of calories per gram although tey are all slightly different. Calorific value is just another way of saying the same thing. All of this info is calculated by burning the food etc. in a bomb calorimeter and using the heat energy to heat a specific amount of water so that the relevant calculations can be done.