Calories Per Serving Calculator Formula

Understand the math behind the calories per serving calculator. Each variable explained with a worked example.

Formulas Used

Calories Per Serving

cal_per_serving = total_calories / servings

% of 2000 kcal Diet

pct_2000 = (total_calories / servings) / 2000 * 100

Variables

VariableDescriptionDefault
total_caloriesTotal Recipe Calories(kcal)2400
servingsNumber of Servings(servings)8

How It Works

How to Calculate Calories Per Serving

Formula

Calories Per Serving = Total Recipe Calories / Number of Servings

Add up the calories from every ingredient in the recipe, then divide by how many portions it makes.

Calorie Density of Macronutrients

  • Protein: 4 kcal per gram
  • Carbohydrates: 4 kcal per gram
  • Fat: 9 kcal per gram
  • Alcohol: 7 kcal per gram
  • Worked Example

    A casserole with 2400 total calories serves 8.

    total_calories = 2400servings = 8
    1. 01Total calories: 2400 kcal.
    2. 02Servings: 8.
    3. 03Per serving: 2400 / 8 = 300 kcal.
    4. 04Percentage of 2000 kcal diet: (300 / 2000) x 100 = 15%.

    Ready to run the numbers?

    Open Calories Per Serving Calculator