Validation
Test scope · November 2026
A label is a compliance document, so the calculation needs to be checkable. This page describes what the automated tests cover, where your recipe and package details take over, and how to report a discrepancy. The results are documented technical checks; certification and FDA approval are separate processes.
What is tested
- Nutrient totals: summing USDA nutrient values for a batch, dividing by servings, and carrying full precision until the rounding step.
- Rounding boundaries: the 21 CFR § 101.9(c) rules for calories, fat, saturated fat, cholesterol, sodium, carbohydrate, fiber, sugars, added sugars, protein, vitamins and minerals, including values just above and below each threshold.
- %DV: the applicable Daily Value for each age group, and rounding to the nearest whole percent.
- Label geometry: column widths, type sizes, leading and rules for 2″, 2.5″, 3″ and 4″ panels, including the tabular and linear small-package formats and the dual-column format.
- Ingredient and allergen output: descending order by weight, common-name mapping, and the major-allergen flags the tool can detect from ingredient names.
- CSV and recipe import: mapping imported rows to USDA records, rejecting malformed input, and preserving units and serving settings.
- Licensing and exports: free versus paid export rules, activation, and the server-side checks that decide whether a paid format is allowed.
How it is tested
The label engine exists in two implementations: the browser version used by the site and a reference implementation used to generate expected values. The test suite compares them on 3,452 cases, so a change to rounding or layout must produce the same result on both sides. On top of that, 181 Python unit tests cover the reference implementation directly, including hard-coded expected values for rounding boundaries, %DV and PDF rendering.
The tests are run before a release that changes the engine, the nutrient data or the label formats. Final output still depends on your browser and printer, so check a proof before a production run.
Where your input matters
- Your recipe. The tool calculates exactly what you enter; correct weights, yields and serving size keep the label accurate.
- Your state’s cottage food rules. Exemptions, permit requirements and state-specific label items sit with your state or county health department; confirm them there.
- Ingredient data. USDA records and ingredient names are matched as entered; check supplier specifications when a formulation changes.
- Laboratory analysis. Results are calculated from reference data; a chemical analysis is a separate lab service.
- Printing. The PDF is generated at print dimensions; verify paper, scaling and print settings with your printer.
How to report a discrepancy
If a panel looks wrong, email support@nutrientlabel.app with: the recipe and weights, the serving size and servings per container, the nutrient value you expected, and the value the tool produced. We will reproduce it, correct it if the tool is wrong, and record the change. If the issue is in the regulation or your state’s interpretation, we will say so rather than adjust the math to match.
See a real file
The fastest way to judge the output is to open a sample PDF: download a sample label. Then build one from your own recipe in the label studio; the free version is fully usable and does not require an account.