Skip to main content
Label My Food

Guide

How to calculate nutrition facts for a recipe, step by step

Work out nutrition facts for a recipe by hand. Look up each ingredient, add up the batch, divide by servings, and round with FDA rules. Worked example.

Updated 2026-09-30. This page is not legal advice.

To calculate nutrition facts for a recipe, you add up the nutrients in every ingredient. Then you divide those sums by the number of servings. Learning how to calculate nutrition facts for a recipe takes five clear steps. You only need a digital kitchen scale and a free food database. You can finalize your panel with a nutrition label maker as the last step.

What you need before you start

You need four items before you start.

First, get a digital kitchen scale that weighs in grams. Grams provide the accuracy that federal rules require. Volume tools like cups introduce large errors due to packing and settling.

Second, write your recipe in grams. If your recipe uses cups, convert those amounts to weights first. Use our grams to cups converter for quick conversions.

Third, know the exact number of servings your batch makes.

Fourth, open USDA FoodData Central at fdc.nal.usda.gov. This free government database lists nutrient values per 100 grams of food. Gram weights let you calculate nutrient shares easily because database entries use 100 grams.

You can do these steps by hand or use an online recipe nutrition calculator.

Step 1: Weigh every ingredient in grams

Place your bowl on the scale and press tare to reset it to zero.

Weigh each ingredient separately in grams. Never guess weights from volume measuring cups.

Always crack eggs and weigh them without the shell. The shell provides no human nutrition.

We will use a classic butter cookie recipe that makes 24 cookies. Weigh each ingredient:

  • Bleached all-purpose white flour: 280 grams
  • Granulated white sugar: 200 grams
  • Salted butter: 227 grams (two sticks)
  • One large egg: 50 grams without shell

Add these weights together to find the raw dough weight. The sum is 280 plus 200 plus 227 plus 50. The total raw dough weighs 757 grams.

Step 2: Look up each ingredient per 100 grams

Search FoodData Central for each ingredient. Pick the entry matching the exact form you use. For example, pick “Butter, salted” if you use salted butter. Do not pick “Butter, without salt”.

FoodData Central provides several legacy datasets. The data type is SR Legacy for standard raw commodities.

Write down calories, total fat, saturated fat, trans fat, and cholesterol. Record sodium, total carbohydrate, dietary fiber, total sugars, and protein. You also need vitamin D, calcium, iron, and potassium for a full label.

The table below shows these values per 100 grams. FoodData Central provides these numbers.

Ingredient Calories Fat (g) Sat Fat (g) Trans Fat (g) Chol (mg) Sodium (mg) Carb (g) Fiber (g) Sugars (g) Protein (g)
Wheat flour, white, all-purpose, enriched, bleached (FDC 168894) 364 0.98 0.155 0 0 2 76.31 2.7 0.27 10.33
Sugars, granulated (FDC 169655) 387 0 0 0 0 1 100 0 99.8 0
Butter, salted (FDC 173410) 717 81.1 51.4 3.28 215 643 0.06 0 0.06 0.85
Egg, whole, raw, fresh (FDC 171287) 143 9.51 3.13 0.038 372 142 0.72 0 0.37 12.6

Step 3: Multiply to get each ingredient’s share

Calculate the nutrients your recipe amounts provide. This simple math converts 100-gram database baselines into your custom recipe amounts.

Use this formula for each nutrient:

nutrient in the recipe = value per 100 g × grams used ÷ 100

For example, calculate fat from butter:

butter fat 81.1 × 227 ÷ 100 = 184.1 g

Repeat this calculation for every nutrient in every ingredient. Sum each column to find the batch totals.

The table below shows the calculated amounts for our cookie dough batch.

Ingredient grams calories fat g sat fat g cholesterol mg sodium mg carb g sugars g protein g
Flour 280 1,019 2.7 0.4 0 6 213.7 0.8 28.9
Sugar 200 774 0 0 0 2 200.0 199.6 0
Butter 227 1,628 184.1 116.7 488 1,460 0.1 0.1 1.9
Egg 50 72 4.8 1.6 186 71 0.4 0.2 6.3
Total 757 3,492 191.6 118.7 674 1,538 414.2 200.7 37.2

Other batch totals come from the raw ingredients. The batch has 7.5 grams of trans fat from butter. The flour supplies 7.6 grams of fiber. The granulated sugar supplies 199.6 grams of added sugars.

Step 4: Divide by the number of servings

Divide each batch total by 24 cookies. This gives the unrounded nutrients in one cookie.

For example, 3,492 calories divided by 24 is 145.5 calories. Fat of 191.6 grams divided by 24 is 7.98 grams.

Keep these decimal numbers unrounded for the next step.

The table below shows the unrounded values for one cookie.

Nutrient Batch Total Per Cookie (÷ 24)
Calories 3,492 145.5
Total fat 191.6 g 7.98 g
Saturated fat 118.7 g 4.95 g
Trans fat 7.5 g 0.31 g
Cholesterol 674 mg 28.1 mg
Sodium 1,538 mg 64.1 mg
Total carbohydrate 414.2 g 17.26 g
Dietary fiber 7.6 g 0.32 g
Total sugars 200.7 g 8.36 g
Added sugars 199.6 g 8.32 g
Protein 37.2 g 1.55 g

Step 5: Round the numbers with FDA rules

Round your per-cookie numbers using FDA rules:

  • Calories: under 5 is 0. Amounts up to 50 round to nearest 5. Amounts above 50 round to nearest 10.
  • Total fat, saturated fat, trans fat: under 0.5 g is 0. Amounts under 5 g round to the nearest 0.5 g. Amounts of 5 g and higher round to the nearest 1 g.
  • Cholesterol: nearest 5 mg; under 2 mg may be 0.
  • Sodium: under 5 mg is 0. Amounts from 5 to 140 mg round to nearest 5 mg. Amounts above 140 mg round to nearest 10 mg.
  • Carbohydrate, fiber, sugars, protein: nearest 1 g. Amounts under 1 g may say “less than 1 gram”. Amounts under 0.5 g round to 0.

Apply these rules to your unrounded numbers.

Calculate the percent daily value from the unrounded values. FDA rules allow this method. Because of this rule, dietary fiber displays as 0 grams and 1% on the label.

The table below compares the unrounded values to the finished label values.

Nutrient Per cookie before rounding On the label %DV
Calories 145.5 150 none
Total fat 7.98 g 8 g 10%
Saturated fat 4.95 g 5 g 25%
Trans fat 0.31 g 0 g none
Cholesterol 28.1 mg 30 mg 9%
Sodium 64.1 mg 65 mg 3%
Total carbohydrate 17.26 g 17 g 6%
Dietary fiber 0.32 g 0 g 1%
Total sugars 8.36 g 8 g none
Added sugars 8.32 g 8 g 17%
Protein 1.55 g 2 g optional

You can enter these numbers into a nutrition label generator from recipe measurements to create your label.

What is the 4-4-9 rule?

The 4-4-9 rule calculates calories from macronutrients. Under federal rules, this is general factor method (B).

Each gram of protein provides 4 calories. Each gram of total carbohydrate provides 4 calories. Each gram of total fat provides 9 calories.

Apply these factors to the unrounded nutrient numbers. This explains how to calculate calories in a recipe using macronutrients.

Many food manufacturers use the 4-4-9 rule to check their database calculations for consistency.

Here is the cookie check:

Multiply 1.55 grams of protein by 4 to get 6.2 calories.

Multiply 17.26 grams of carbohydrate by 4 to get 69.04 calories.

Multiply 7.98 grams of fat by 9 to get 71.82 calories.

Add them: 6.2 plus 69.04 plus 71.82 equals 147 calories.

Under federal rounding, 147 calories rounds to 150. This matches the database sum on the label.

FDA rules also allow other calorie calculation methods. These include specific Atwater factors and versions that subtract insoluble fiber.

How do you handle water lost in baking?

Baking drives water out through evaporation. The nutrients remain in the food.

Batch nutrient totals do not change during baking. However, the total weight of the batch decreases. Water loss changes the nutrient concentration per gram without altering the nutrients per piece.

Weigh the finished batch after cooling. Divide the finished weight by the piece count to find grams per serving.

For example, say the baked batch weighs 696 grams. Divide 696 grams by 24 cookies to get 29 grams per cookie.

The federal reference amount for cookies is 30 grams. Because 29 grams is close to 30 grams, the serving size is 1 cookie (29 g).

How do you set the serving size?

Serving sizes do not come from recipe yield or personal preference. The FDA sets reference amounts for every food category.

A reference amount is the standard portion people typically consume in one sitting. Your serving size must reflect that federal reference amount.

Learn more in our guide on how to calculate serving size. You can also check portions with our serving size calculator.

How accurate is a calculated label?

FDA rules allow database calculations for Nutrition Facts panels. You do not need laboratory testing. Most small food businesses use database analysis.

However, federal accuracy standards still apply. The FDA considers a product misbranded if lab tests find excess restricted nutrients.

Misbranded means a food label violates federal law by providing false details.

Under federal rules, calories, sugars, fat, and saturated fat cannot exceed 20% above the label. This limit also applies to trans fat, cholesterol, and sodium.

Weigh every ingredient carefully to protect label accuracy. Always pick the exact ingredient form in FoodData Central. Accurate tracking protects every homemade food you package for sale.

Review our guide on do cottage foods need a nutrition label to check your legal status.

Frequently asked questions

How do you calculate the nutrition facts of a homemade recipe?

Add the nutrient amounts for each ingredient based on its gram weight. Divide those totals by the number of servings in your recipe. Round the final numbers using federal rounding guidelines.

What is the 4-4-9 rule in nutrition?

The 4-4-9 rule calculates calories from macronutrients. Each gram of protein provides 4 calories, and each gram of carbohydrate provides 4 calories. Each gram of fat provides 9 calories.

Can I calculate nutrition for half a recipe?

Yes. Multiply every ingredient weight by the same fraction. Per-serving values stay the same if the serving size stays the same. You can use our [recipe scaler](/recipe-scaler/) to adjust your measurements.

Where do I find nutrition data for ingredients?

You can find free nutrition data on USDA FoodData Central per 100 grams of food. You can also use the printed Nutrition Facts panel. Find it on packaged ingredients you purchase.

Do I need a lab test for my nutrition label?

No federal rule requires a laboratory test to generate your label. Most small makers use database values, but your label values must remain within 20% of actual levels.