ReciLabel › Guides › Nutrition facts from a recipe

How to calculate nutrition facts from a recipe

You do not need a laboratory to produce a defensible Nutrition Facts panel from a recipe. You need weights instead of cups, a nutrient database that matches what you actually put in the bowl, and one division that most people do at the wrong moment.

Updated October 3, 2026 · Method and tolerances referenced to 21 CFR 101.9(g).
The method, in five steps. (1) Convert every ingredient to grams. (2) Look up its nutrient values per 100 g. (3) Multiply by grams ÷ 100 and sum across the batch. (4) Divide by the number of servings the cooked batch yields. (5) Apply the FDA rounding rules. Steps 1 and 4 are where labels go wrong.

Step 1 — weigh, do not measure

Every nutrient value you will look up is expressed per 100 grams of food. If your recipe is written in cups and tablespoons, you have to convert, and the conversion is where the first big error enters.

A cup is not a unit of mass. A cup of all-purpose flour is roughly 125 g. A cup of granulated sugar is about 200 g. A cup of honey is about 339 g. A cup of water is 237 g. Using a single "1 cup = 240 g" conversion for everything will put your label out by tens of percent on the flour and sugar — the two ingredients that dominate the panel.

Two practical rules:

Step 2 — find the right database row

The USDA FoodData Central Standard Reference Legacy release is public domain and covers raw ingredients rather than branded packaged goods — which is exactly the right shape for recipe calculation. It is what commercial label software draws on too.

The trap is that the same food appears several times in different states, and the nutrient values differ substantially:

Step 3 — scale and sum

For each ingredient, each nutrient scales linearly:

contribution of nutrient N = (value per 100 g of N) × (ingredient grams ÷ 100) The whole of step 3. Repeat for every nutrient, then add the ingredients together.

Take rolled oats in our granola example: 250 g of oats, so a factor of 2.5 against the per-100 g values.

NutrientPer 100 g× 2.5 (batch)÷ 10 servings
Calories379 kcal947.5094.75 kcal
Total fat6.52 g16.301.63 g
Saturated fat1.11 g2.780.28 g
Sodium6 mg15.001.50 mg
Total carbohydrate67.70 g169.2516.93 g
Dietary fiber10.10 g25.252.53 g
Total Sugars0.99 g2.480.25 g
Protein13.15 g32.883.29 g

Those are oats alone. Repeat for every ingredient and add down each column: that gives the batch total, and the batch total divided by servings gives the per-serving figure that goes onto the panel.

Step 4 — divide by the servings the batch yields

This is the single most common place a recipe-derived label goes wrong, so it deserves its own step.

Nutrients do not evaporate with the water. When you bake a granola, a cookie or a loaf, the batch loses water mass and keeps essentially all of its nutrient mass. If you calculate the batch total correctly, then divide by a servings count you estimated from raw weight, but you actually portion the finished product by weight, every nutrient per serving comes out too low. The water left; the calories did not.

The order of operations that works:

  1. Calculate the batch total from the raw ingredients.
  2. Weigh the finished, cooled product.
  3. Decide the serving size as a weight (for example 40 g) or as a piece count, then measure what that actually weighs.
  4. Number of servings = finished batch weight ÷ serving size weight.
  5. Batch total ÷ number of servings = per serving.

In our granola example the arithmetic is clean because nothing evaporated: 500 g of ingredients, 10 servings of 50 g. With a baked or reduced product it will not be clean, and that is the point at which you must weigh the output rather than assume.

There is also a rule about the serving size string itself: it has to be stated in a household measure plus, for many products, the metric equivalent — for example "1/2 cup (50g)". The reference amounts customarily consumed by product category are in 21 CFR 101.12, not in this guide, and they are the part of labeling most likely to need a specialist's eye.

Step 5 — round last

Rounding is mechanical once you have the per-serving figure, but it has to happen at the end. 21 CFR 101.9(c)(1)(i) requires calories to be computed from the actual, unrounded grams of fat, carbohydrate and protein; round the inputs early and the error propagates through the whole panel.

NutrientPer serving, calculatedAs printedRule applied
Calories202.5200Above 50 → nearest 10
Total fat7.07 g7 gAt or above 5 g → nearest 1 g
Sodium4.37 mg0 mgBelow 5 mg → expressed as zero
Total carbohydrate31.91 g32 gNearest 1 g
Dietary fiber3.47 g3.5 gBelow 5 g → nearest 0.5 g
Total Sugars13.57 g14 gNearest 1 g
Added Sugars10.45 gIncludes 10g · 20%Nearest 1 g; %DV nearest whole percent
Protein4.74 g4.5 gBelow 5 g → nearest 0.5 g
Calcium36.14 mg36 mg · 2%%DV in 2/5/10 bands for minerals
Iron1.42 mg1.4 mg · 8%%DV in 2/5/10 bands for minerals
Potassium174.44 mg170 mg · 4%Above 140 mg → nearest 10 mg

The full rule set, with citations, is in FDA rounding rules for nutrition labels. Note the protein row: 4.74 g prints as 4.5 g, not 5 g, because the half-gram increment applies below 5 g.

The seven sources of error

#ErrorWhat it does to your label
1Volumes converted with one generic grams-per-cup figureOver- or understates the ingredients that dominate the panel, often by 20–60% on flour and sugar
2Raw data used for a cooked ingredientOverstates calories per 100 g by up to 4× on grains and pasta
3Dividing by raw servings instead of finished weightUnderstates every nutrient per serving when the product loses water
4Thin database rows read as zerosSilently understates fiber, potassium, calcium and iron
5Rounding inputs before computing caloriesCompounds error through the panel
6Treating "1 serving" as "1 unit"A serving has to match the reference amount for the product category, not the size you happen to sell
7Ignoring yield loss in a reduced or strained productUnderstates concentration — jams, sauces and reductions are the worst offenders

Is calculating from a database legitimate?

Yes, and the regulation says so explicitly rather than by implication.

So the obligation is not "have the food tested". The obligation is: the declared value must be defensible, and you must be able to show your work. A saved recipe, a documented per-100 g source and a recorded batch weight are the evidence. Which is precisely why keeping the calculation in a form you can reprint months later matters more than getting it done quickly.

When you do need a laboratory

Database calculation is the right tool for a recipe built from commodity ingredients. It is the wrong tool when the food is not well described by its ingredients. Situations that call for analysis:

If a claim is on the table, or the food changes composition in the process, treat the calculated label as a draft and get it verified.

Do steps 1 to 5 automatically

Search an ingredient, enter the grams, and the batch total, per-serving figures and the rounded panel update as you type — using the same USDA data and the same rounding rules described here.

Build my label — free Pro · $19 once