Serving Size Calculator Formula

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

Formulas Used

Your Calories

your_calories = label_calories * ratio

Your Protein

your_protein = label_protein * ratio

Serving Ratio

serving_ratio = ratio

Variables

VariableDescriptionDefault
label_serving_gLabel Serving Size(g)30
your_serving_gYour Serving Size(g)55
label_caloriesCalories Per Label Serving(kcal)140
label_proteinProtein Per Label Serving(g)3
ratioDerived value= your_serving_g / label_serving_gcalculated

How It Works

How to Calculate Nutrients for Any Serving Size

Divide your actual serving by the label serving to get a ratio, then multiply each nutrient by that ratio.

Formula

Ratio = Your Serving / Label Serving

Your Nutrient = Label Nutrient x Ratio

Worked Example

Cereal label says 30g serving has 140 calories and 3g protein. You eat 55g.

label_serving_g = 30your_serving_g = 55label_calories = 140label_protein = 3
  1. 01Ratio = 55 / 30 = 1.83
  2. 02Your calories = 140 x 1.83 = 257 kcal
  3. 03Your protein = 3 x 1.83 = 5.5 g

Frequently Asked Questions

Why are nutrition labels based on small servings?

Serving sizes are set by regulation (RACC - Reference Amounts Customarily Consumed) and sometimes appear small compared to what people actually eat.

Do I need a food scale?

A kitchen scale is the most accurate way to measure serving size. Estimating by volume (cups) works for some foods but is less precise, especially for calorie-dense items.

How do I calculate for packaged foods with multiple servings?

The label shows nutrients per serving and servings per container. Multiply per-serving values by the number of servings you eat.

Ready to run the numbers?

Open Serving Size Calculator