Servings Per Container Calculator

Servings Per Container is evaluated from Container Net Weight, OR Container Net Weight and Serving Size. The calculation reports Total Container Weight, Servings Per Container and Total Calories in Container.

Results

Thanks — we’ve logged this for review.

About the Servings Per Container Calculator

Servings Per Container is treated here as a quantitative relation between Container Net Weight, OR Container Net Weight, Serving Size and Calories Per Serving and Total Container Weight, Servings Per Container, Total Calories in Container and Servings in Your Portion.

The calculator uses a multi formula configuration. Each reported value is read as a direct evaluation of the stored rules with the declared field formats and units.

Formula basis:
_cg = parseFloat(container_weight_g) || 0
_coz = parseFloat(container_weight_oz) || 0
_ss = parseFloat(serving_size_g)
_cps = parseFloat(calories_per_serving) || 0
_aae = parseFloat(actual_amount_eaten) || _ss
total_grams = _cg > 0 ? _cg: _coz * 28.3495
servings_per_container = total_grams / _ss
total_calories = servings_per_container * _cps
actual_servings_eaten = _aae / _ss
actual_calories = actual_servings_eaten * _cps
cost_per_calorie = actual_servings_eaten

Interpret the outputs in the order shown by the result fields. Optional inputs affect only the outputs that depend on those variables.

Formula & How It Works

The calculation applies the following relations exactly as recorded in the metadata:

_cg = parseFloat(container_weight_g) || 0
_coz = parseFloat(container_weight_oz) || 0
_ss = parseFloat(serving_size_g)
_cps = parseFloat(calories_per_serving) || 0
_aae = parseFloat(actual_amount_eaten) || _ss
total_grams = _cg > 0 ? _cg: _coz * 28.3495
servings_per_container = total_grams / _ss
total_calories = servings_per_container * _cps
actual_servings_eaten = _aae / _ss
actual_calories = actual_servings_eaten * _cps
cost_per_calorie = actual_servings_eaten

Each output field is produced by substituting the supplied inputs into the relevant relation and then applying the declared rounding or text format.

Worked Examples

Example 1: Cereal box: 400g container, 55g serving size, 200 cal/serving

Inputs

container_weight_g: 400 container_weight_oz: serving_size_g: 55 calories_per_serving: 200 actual_amount_eaten: 110
Total Container Weight: 400 g. Servings Per Container: 7.27 servings. Total Calories in Container: 1,455 cal. Servings in Your Portion: 2 servings. Calories in Your Portion: 400 cal. Label-to-Reality Ratio: 2 x

With Container Net Weight = 400, Serving Size = 55, Calories Per Serving = 200 and Amount You Actually Eat = 110 as the stated inputs, the result is Total Container Weight = 400 g, Servings Per Container = 7.27 servings and Total Calories in Container = 1,455 cal. Each value corresponds to the declared output fields.

Example 2: Chips bag: 8 oz bag, 1 oz serving, 140 cal — ate the whole bag

Inputs

container_weight_g: container_weight_oz: 8 serving_size_g: 28 calories_per_serving: 140 actual_amount_eaten: 227
Total Container Weight: 226.8 g. Servings Per Container: 8.1 servings. Total Calories in Container: 1,134 cal. Servings in Your Portion: 8.11 servings. Calories in Your Portion: 1,135 cal. Label-to-Reality Ratio: 8.11 x

With OR Container Net Weight = 8, Serving Size = 28, Calories Per Serving = 140 and Amount You Actually Eat = 227 as the stated inputs, the result is Total Container Weight = 226.8 g, Servings Per Container = 8.1 servings and Total Calories in Container = 1,134 cal. Each value corresponds to the declared output fields.

Example 3: Protein powder: 2 lb tub (907g), 30g serving, 120 cal

Inputs

container_weight_g: 907 container_weight_oz: serving_size_g: 30 calories_per_serving: 120 actual_amount_eaten: 30
Total Container Weight: 907 g. Servings Per Container: 30.23 servings. Total Calories in Container: 3,628 cal. Servings in Your Portion: 1 servings. Calories in Your Portion: 120 cal. Label-to-Reality Ratio: 1 x

With Container Net Weight = 907, Serving Size = 30, Calories Per Serving = 120 and Amount You Actually Eat = 30 as the stated inputs, the result is Total Container Weight = 907 g, Servings Per Container = 30.23 servings and Total Calories in Container = 3,628 cal. Each value corresponds to the declared output fields.

Example 4: Orange juice: 64 oz carton, 8 oz serving, 110 cal

Inputs

container_weight_g: container_weight_oz: 64 serving_size_g: 240 calories_per_serving: 110 actual_amount_eaten: 480
Total Container Weight: 1,814.4 g. Servings Per Container: 7.56 servings. Total Calories in Container: 832 cal. Servings in Your Portion: 2 servings. Calories in Your Portion: 220 cal. Label-to-Reality Ratio: 2 x

With OR Container Net Weight = 64, Serving Size = 240, Calories Per Serving = 110 and Amount You Actually Eat = 480 as the stated inputs, the result is Total Container Weight = 1,814.4 g, Servings Per Container = 7.56 servings and Total Calories in Container = 832 cal. Each value corresponds to the declared output fields.

Common Use Cases

  • Determine servings per container from nutrition label
  • Scale nutrition facts for actual serving size eaten
  • Compare nutrition across container sizes