Recipe to FDA or EU nutrition label with the rounding rules applied

Nutrition Facts Label Maker

Build a recipe from USDA FoodData Central foods or from a supplier's label, set the cooking yield and servings, and get a US Nutrition Facts label rounded to 21 CFR 101.9 or an EU nutrition declaration. It is a calculation aid, not regulatory approval.

Database values are averages of samples, not an analysis of your product. A business selling food stays responsible for its label, and lab analysis may be needed, especially for health claims and for products where cup-to-gram conversions are uncertain.

Ingredients

Loading the food database (about 400 KB compressed, cached after the first visit).

Yield and servings

Nutrients are not reduced by cooking unless you enter a retention percentage below. The 21 CFR 101.9 table of reference amounts and the choice of household measure remain yours.

Nutrient retention after cooking (optional, percent kept)

These are your own figures. The USDA Table of Nutrient Retention Factors is not bundled.

Nutrition Facts Label Maker

Operator: Abdulla Al Fahad. How tools are built and checked

A label that says 5 g of fat has to come from a calculation that a regulator could repeat: grams of each ingredient, the nutrient content of each gram, a cooking loss, a serving size, and then the rounding rules that turn 4.899 g into the number printed on the pack. Most of the mistakes happen in those last steps, and in converting a cup of flour to grams. This page builds the calculation from USDA FoodData Central foods or from values you type from a supplier's label, shows every line's contribution in a sheet you can keep, and rounds the result by the FDA's rules or the EU's.

Key features

  • 7,793 foods from USDA FoodData Central SR Legacy with 16 nutrients per 100 g and household portions with gram weights, searched in the page
  • Custom ingredients typed from a supplier label per 100 g, and added sugars entered per ingredient because the database does not record them
  • Cooking yield as a percentage of raw weight, optional nutrient retention percentages of your own, and servings set by count or by weight
  • US labels in vertical, dual-column, tabular and linear formats with 21 CFR 101.9 rounding and current Daily Values for adults and children 4 and over
  • The EU nutrition declaration per 100 g with Regulation 1169/2011 Annex XIV energy factors and Commission rounding, plus an optional per-portion column with reference intakes
  • Allergen flags from ingredient names, with the US Contains line and the EU allergens in bold, and exports as SVG, PNG, PDF and a CSV calculation sheet

How the label values are rounded and scored

For the US label, calories round to 0 below 5, the nearest 5 up to 50 and the nearest 10 above 50. Total, saturated and trans fat round to 0 below 0.5 g, the nearest 0.5 g below 5 g and the nearest gram above. Cholesterol is stated to the nearest 5 mg, with 2 to 5 mg shown as less than 5 mg.

Sodium is 0 below 5 mg, the nearest 5 mg to 140 mg and the nearest 10 mg above. Carbohydrate, fibre, sugars, added sugars and protein round to the nearest gram, 0 below 0.5 g and less than 1 g below 1 g. These are the paragraphs of 21 CFR 101.9(c) as published in the eCFR on 1 November 2026.

Percent Daily Value is calculated from the unrounded amount against the Daily Values in 101.9(c)(9) (fat 78 g, saturated fat 20 g, cholesterol 300 mg, sodium 2,300 mg, carbohydrate 275 g, fibre 28 g, added sugars 50 g) and shown to the nearest whole percent. For vitamin D, calcium, iron and potassium the regulation says the percent is stated to the nearest 2% up to 10%, the nearest 5% above that up to 50%, and the nearest 10% above 50%.

The regulation gives no increments for the quantitative amounts of those four nutrients; this page rounds vitamin D to 0.1 mcg, calcium to 10 mg, iron to 0.1 mg and potassium to 5 mg.

How it works

Each ingredient's nutrients are its grams divided by 100 and multiplied by the database value per 100 g. Totals are summed, any retention percentage is applied, and the finished weight is the raw weight times the yield. With a servings count the serving weight is the finished weight divided by that count; with a serving weight the servings are the finished weight divided by it. Values per serving, per container and per 100 g are all scaled from the same totals.

The EU declaration works per 100 g of finished food. Energy is 17 kJ per gram of protein and of available carbohydrate (total carbohydrate minus fibre), 37 kJ per gram of fat, 8 kJ per gram of fibre and 29 kJ per gram of alcohol, with 4, 4, 9, 2 and 7 kcal per gram. Salt is sodium times 2.5. Fat, carbohydrate, sugars, protein and fibre use 1 g steps from 10 g, 0.1 g steps from 0.5 g to 10 g and "<0.5 g" below that; saturates use 0.1 g and "<0.1 g"; salt uses 0.1 g from 1 g, 0.01 g from 0.0125 g and "<0.01 g" below.

A food's portion list supplies cups, tablespoons, slices and the like with their gram weights, so a quantity in cups is converted by that food's own weight for a cup rather than a generic density.

Typical uses

  • A baker with a 4.9 g fat result sees 5 g on the label, because anything from 4.75 g up rounds to 5 g under the half-gram rule, and 0.49 g shows as 0 g where 0.5 g would show as 0.5 g.
  • A sauce maker enters the supplier's per-100 g values as a custom ingredient, adds 12 g of added sugar, and exports the PDF at 3 inches wide for a label printer after reading the calculation sheet line by line.
  • A granola maker sets a serving weight of 40 g and a batch that finishes at 500 g, and the page works out 12.5 servings per container, which the label prints as "about 13", as the rule for servings per container requires.

Building one

  1. Search each ingredient, enter the quantity and pick g, oz, lb or one of that food's portions.
  2. Enter added sugars in grams on the lines that have them, because the database does not record them.
  3. Set the cooking yield, the servings and the household measure shown on the label.
  4. Check the grams used for every line on the Calculation sheet tab; a quantity in cups uses that food's own gram weight for a cup.
  5. Open Label, choose the format and print width, confirm the allergens, then download SVG, PNG or PDF and the calculation sheet.

Example

Load an example: 200 g all-purpose flour, 250 g whole milk, 100 g egg, 30 g sugar (30 g added sugar), 90% yield, 4 servings, "1 pancake"

The raw weight is 580 g and the finished weight 522 g, so a serving is 130.5 g and prints as 131 g.

US label per serving

Calories 280 (284.9 before rounding). Total Fat 5 g 6%, Saturated Fat 2 g 10%, Trans Fat 0 g, Cholesterol 100 mg 33%, Sodium 65 mg 3%, Total Carbohydrate 49 g 18%, Dietary Fiber 1 g 5%, Total Sugars 11 g, Includes 8 g Added Sugars 15%, Protein 10 g, Vitamin D 1.3 mcg 6%, Calcium 90 mg 8%, Iron 2.8 mg 15%, Potassium 170 mg 4%. The EU declaration per 100 g reads 900 kJ / 213 kcal, fat 3.8 g, saturates 1.6 g, carbohydrate 36 g, sugars 8.3 g, protein 7.9 g and salt 0.12 g.

Tips for best results

  • A serving of 50 calories shows 50 and 51 shows 50 as well; the step to 10 begins at 55, which then prints 60. Check borderline values with a small change in yield.
  • Weigh dense ingredients rather than entering cups. A food's cup weight in the database is one measurement, and flour that is packed or sifted weighs noticeably more or less per cup.
  • Choose "Serving weight" when the household measure is fixed, such as one biscuit of 40 g, and let the page work out the servings per container.

Things to check before you rely on it

SR Legacy dates from 2018 and does not record added sugars. It has no trans fat value for 3,614 of its 7,793 foods and no vitamin D value for 2,608; those are counted as zero, and the page lists which nutrients were missing.

The FDA's rules include more than rounding: reference amounts customarily consumed, serving-size rules, exemptions and claims. This page does not decide any of those.

Common errors and how to fix them

Pick a food for "…" from the search list, or switch the row to a custom ingredient
Type at least a word of the food's name and click a result. A row that only has typed text has no nutrient values behind it.
Enter a quantity for "…" (digits only)
Quantities take plain numbers such as 0.5 or 250; fractions like 1/2 and units typed into the box are not read.
The food database could not be loaded
The foods come from a file on this site. Reload the page when you are online, or enter ingredients as custom ingredients meanwhile.
Added sugars for "…" must be a number of grams
Leave the added sugars box empty for an ingredient with none, and type only digits, for example 12 or 7.5, for one that has some.

Best practices

  • Weigh the finished batch once and set the cooking yield from that weight instead of estimating it: the yield changes the serving weight and every per-100 g figure, but not the nutrient totals.

Energy and carbohydrate in the EU declaration

The EU counts available carbohydrate, which is total carbohydrate minus fibre, at 17 kJ (4 kcal) per gram, and counts fibre separately at 8 kJ (2 kcal) per gram. USDA's total carbohydrate figure is by difference and includes fibre, so the page subtracts fibre before applying the factor. Alcohol is counted at 29 kJ (7 kcal) per gram, and polyols, salatrims and organic acids are not separate inputs, so a recipe with them needs their energy added by hand.

The US label uses the calorie value in the database for each ingredient, which USDA derived with its own factors, so the same recipe can give slightly different energy on the two labels.

Allergen flags

Allergens are flagged by matching words in the ingredient names against lists of the nine US major allergens, including sesame, and the fourteen EU allergens. A name like "wheat flour" is flagged as wheat and gluten, and "butter" as milk. Flour with no grain named is read as wheat, which may be wrong for a rice or almond flour typed as a custom ingredient, so tick or untick the boxes to match the real recipe.

Highly refined oils, a few derived ingredients and cross-contact are not detected, and the page produces no precautionary "may contain" statement.

Frequently asked questions

Does the page reproduce the FDA's own sample label?

Yes. Entering the amounts of the sample label in 21 CFR 101.9(d)(12) (230 calories, fat 8 g, saturated fat 1 g, cholesterol 0 mg, sodium 160 mg, carbohydrate 37 g, fibre 4 g, sugars 12 g, 10 g added sugars, protein 3 g, vitamin D 2 mcg, calcium 260 mg, iron 8 mg, potassium 235 mg) returns the same percent Daily Values: 10%, 5%, 0%, 7%, 13%, 14%, 20%, 10%, 20%, 45% and 6%. The boundary values of the rounding rules, such as 4.9 g of fat giving 5 g and 51 calories giving 50, were checked the same way.

Why is potassium's percent 6% when 235 mg is exactly 5% of 4,700 mg?

The minerals rule uses 2% steps up to 10%, and 5% lies halfway between 4% and 6%. The FDA's sample label prints 6%, so this page rounds halves upward.

Are USDA's nutrient retention factors used?

No. The retention tables of USDA Release 6 are not part of the FoodData Central download this page uses. You can type your own retention percentages per nutrient, and the yield only changes the finished weight.

Which Daily Values does the US label use?

Those for adults and children 4 years and older in 21 CFR 101.9(c)(9): fat 78 g, saturated fat 20 g, cholesterol 300 mg, sodium 2,300 mg, carbohydrate 275 g, fibre 28 g, added sugars 50 g, and for vitamin D, calcium, iron and potassium 20 mcg, 1,300 mg, 18 mg and 4,700 mg. The values for infants, toddlers and pregnancy, and a percent for protein, are not offered.