Skip to content

Main content

Nutrition Label Drained Whole Basis Tool

Calculate nutrition label drained whole basis from explicit caller-supplied inputs.

Loading tool…

Description

Compare drained and whole-food nutrient concentrations.

Food quantities can be expressed on gross, edible, drained, raw, cooked, wet or dry bases. Yield and moisture corrections change the denominator and must be kept distinct from nutrient retention and the amount actually consumed.

Compare drained and whole-food nutrient concentrations.

When to use this tool

Use Nutrition Label Drained Whole Basis when checking one supplied food-mass or concentration-basis conversion.

How to use the tool and how it works

  1. Enter wholeMass, drainedMass, totalNutrient, drainedRetainedFraction. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read drainedYield, drainedConcentration, wholeConcentration. Use the output convention below.

Compare drained and whole-food nutrient concentrations. Require positive drainedMass <= wholeMass, nonnegative totalNutrient and retention fraction in [0,1]; drained concentration uses retained nutrient/drainedMass; whole concentration uses total/wholeMass.1

Input fieldMeaning and unitsAccepted input
wholeMassWhole MassRequired. Finite number; strictly above 0.
drainedMassDrained MassRequired. Finite number; strictly above 0.
totalNutrientTotal NutrientRequired. Finite number; minimum 0.
drainedRetainedFractionFraction of whole-food nutrient retained in the drained food, not a mass yield.Required. Finite number; minimum 0; maximum 1.
Output fieldInterpretationReturned shape
drainedYieldDrained YieldRequired. Finite number.
drainedConcentrationDrained ConcentrationRequired. Finite number.
wholeConcentrationWhole ConcentrationRequired. Finite number.
json
{
  "input": {
    "wholeMass": 500,
    "drainedMass": 300,
    "totalNutrient": 50,
    "drainedRetainedFraction": 0.9
  },
  "output": {
    "drainedYield": 0.6,
    "drainedConcentration": 0.15,
    "wholeConcentration": 0.1
  }
}

Limitations and assumptions

  • Masses and nutrient units must match; drainage does not automatically retain all nutrients.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Use food-appropriate measured yields and composition data with matching units; practical dietary or safety decisions require broader assessment.

References

  1. Calculation and input contract: dietetics/nutrition-label-drained-whole-basis — tool.io

Similar or alternative tools