To get this percentage, divide calories from fat by total calories (this information appears on the food label) and then multiply by 100. For example, if a 300-calorie food has 60 calories from fat, you divide 60 by 300 and then multiply by 100. That food has 20% of its calories from fat.