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
About the Servings Per Container Calculator
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
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
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
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
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