Calories in food

Okay this conversation came up yesterday, and I dont have a clue how this is done… How do companies know how many calories/fat/carbs/sugars etc are in a serving size of some food… I tried googling, but all i got are diet websites.

Forget Googling! Try Ceciling.