Methodology
How the panel is calculated · reviewed November 2026
This page documents what NutrientLabel does, in the order it does it, so you can judge whether the output fits your product. It is a description of the software, not legal advice.
1. Data sources
- USDA FoodData Central: SR Legacy and Foundation datasets (current release), 8,000+ foods, including household measures such as cups, tablespoons and common piece weights.
- 21 CFR § 101.9: the federal Nutrition Facts labeling regulation: serving size, nutrient declaration, rounding, %DV, type sizes and format options.
- FDA reference values: Daily Values for adults and children 4+, children 1–3, and infants 1–12 months.
Source links: USDA FoodData Central and 21 CFR 101.9 on eCFR. Every build also writes a machine-readable data manifest with the source URLs, SHA-256 hashes, release dates and missing-field counts.
2. From recipe to nutrients
- Ingredients and weights. Each ingredient is matched to a USDA record; you enter the amount in grams or a listed household measure.
- Batch totals. Nutrient values are summed for the batch, then divided by the number of servings you declare.
- Per-serving values. Calories and macronutrients are kept at full precision until the rounding step; they are not rounded twice.
- Added sugars and allergens. USDA does not publish added-sugar values for these datasets, so you mark each added-sugar ingredient and its total sugars are counted as added sugars. Major-allergen flags come from the ingredient names you enter.
3. FDA rounding and %DV
Rounding follows 21 CFR § 101.9(c): the rule for each nutrient depends on the amount present. For example, calories round to the nearest 5-calorie increment above 50, fat rounds to the nearest 0.5 g below 5 g and to the nearest gram above, and sodium rounds to the nearest 5 mg above 5 mg. %DV is calculated from the rounded amount and the applicable Daily Value, then rounded to the nearest whole percent.
The tool applies the current (post-2016) panel nutrients: added sugars, vitamin D, calcium, iron and potassium. It does not reproduce the pre-2016 sample panel that some state cottage food handouts still show.
4. Serving size and format
- Serving size is what you declare as sold — for example “1 slice (56 g)”. The gram weight is derived from the batch and the number of servings, so it is never typed independently of the recipe.
- Small packages use the tabular and linear formats allowed by 21 CFR § 101.9(j)(13), including the dual-column format for products sold in two package sizes.
- Type sizes and rules follow the regulation’s minimums and the format-specific exemptions for small packages.
5. Scope of the tool
- Recipe and package details. The tool calculates from the weights, yield and serving size you enter; confirm they match the physical product.
- State rules. Exemptions, permits and state-specific label items sit with your state or county health department.
- Lab analysis and legal advice. A laboratory analysis is a separate service; legal advice sits with your adviser.
- Allergen review. The tool flags major allergens from ingredient names; check every ingredient and supplier specification.
6. How the output is tested
The label engine is checked against 3,452 cross-implementation cases (Python and JavaScript produce the same values and geometry) plus 181 Python unit tests covering rounding boundaries, %DV, small-package formats and PDF rendering. The validation page explains the scope and the limits.
7. Version and changes
This page is reviewed when the nutrient data, rounding rules or label formats change. Last review: November 2026. If you find a discrepancy, email support@nutrientlabel.app with the recipe and the panel you expected; we will investigate and correct it.
See the output for yourself
Download a sample print-ready PDF, or build a label from your own recipe. Free with one sign-in, nothing uploaded unless you press Save to My Recipes.
Download a sample PDF