Skip to content

Main content

Nutrition Database Cooked Raw Yield Tool

Calculate nutrition database cooked raw yield from explicit caller-supplied inputs.

Loading tool…

Description

Convert raw-food nutrient concentration to a cooked basis.

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.

Convert raw-food nutrient concentration to a cooked basis.

When to use this tool

Use Nutrition Database Cooked Raw Yield when checking one supplied food-mass or concentration-basis conversion.

How to use the tool and how it works

  1. Enter rawMass, cookedMass, rawNutrientPerMass, retainedFraction. 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 massYield, cookedNutrientPerMass. Use the output convention below.

Convert raw-food nutrient concentration to a cooked basis. Require positive masses, nonnegative raw concentration and retention in [0,1]; massYield = cooked/raw; cooked concentration = rawMass*rawConcentration*retention/cookedMass.1

Input fieldMeaning and unitsAccepted input
rawMassRaw MassRequired. Finite number; strictly above 0.
cookedMassCooked MassRequired. Finite number; strictly above 0.
rawNutrientPerMassNutrient amount per raw-mass unit.Required. Finite number; minimum 0.
retainedFractionRetained FractionRequired. Finite number; minimum 0; maximum 1.
Output fieldInterpretationReturned shape
massYieldcookedMass/rawMass; distinct from retainedFraction.Required. Finite number.
cookedNutrientPerMassRetained nutrient amount divided by cooked mass, on the same mass-unit basis.Required. Finite number.
json
{
  "input": {
    "rawMass": 100,
    "cookedMass": 80,
    "rawNutrientPerMass": 0.2,
    "retainedFraction": 0.9
  },
  "output": {
    "massYield": 0.8,
    "cookedNutrientPerMass": 0.225
  }
}

Limitations and assumptions

  • Yield and retention describe different processes and are supplied, not inferred from a food database.
  • 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-database-cooked-raw-yield — tool.io

Similar or alternative tools