How to Calculate Nutrition Facts for a Recipe: Step by Step

To calculate nutrition facts for a recipe, you weigh every ingredient, look up each one’s nutrient values per 100 grams in a food composition database, multiply those values by the actual amount used, add everything together, then divide by the number of servings. That’s the core process, but getting accurate results means accounting for weight changes during cooking, vitamin losses from heat, and oil absorption during frying.

The Basic Formula, Step by Step

Start by listing every ingredient in the recipe with its weight in grams. A kitchen scale is essential here. Volume measurements like “one cup of flour” can vary by 20 percent or more depending on how you scoop it. Weigh everything raw, before any cooking happens.

Next, look up the nutrient content of each ingredient per 100 grams using a food composition database. The USDA’s FoodData Central is free and covers thousands of foods. For each nutrient you care about (calories, fat, protein, carbohydrates, sodium, fiber), multiply the per-100-gram value by the weight of the ingredient you’re using, then divide by 100. This gives you the total contribution of that ingredient.

Here’s a concrete example. Say your recipe calls for 200 grams of egg. If eggs contain 9.5 grams of fat per 100 grams, the fat from eggs in your recipe is: 9.5 × 200 ÷ 100 = 19 grams of fat. Repeat this for every ingredient, then add up all the contributions for each nutrient. That gives you the total nutrition for the entire batch.

To get per-serving values, divide the batch totals by the number of servings. If you want precision, weigh the entire finished dish and define a serving as a specific gram weight rather than “one bowl” or “one slice.”

Why Cooked Weight Matters

Raw ingredients and finished dishes rarely weigh the same. Water evaporates, fat renders out, and proteins shrink. A beef roast that starts at 1,000 grams might weigh only 760 to 790 grams after cooking. USDA research on retail beef cuts found cooking yields ranging from 76 to 85 percent depending on the cut and method, with steaks generally retaining more moisture than roasts.

This matters because the nutrients from your raw ingredients are now concentrated into a smaller mass. If you calculated 500 calories for all the raw ingredients and the cooked dish weighs 75 percent of the raw weight, each 100-gram portion of the cooked food contains more calories than 100 grams of the raw mixture would have.

The formula for yield factor is simple: cooked weight divided by raw weight. If your recipe’s raw ingredients total 600 grams and the finished dish weighs 440 grams, your yield factor is 0.73. To find the nutrient content per 100 grams of the cooked food, use this formula: (nutrient per 100g of ingredient × raw weight of ingredient) ÷ total cooked weight. Sum this across all ingredients for each nutrient.

Choosing the Right Nutrient Database

USDA FoodData Central offers several database types, and the one you pick affects your accuracy. Foundation Foods contains the most current analytical data on commodity and minimally processed foods like raw chicken breast, whole milk, or plain rice. It’s updated twice a year and is your best bet for basic ingredients. SR Legacy is the older, more comprehensive historical database, but its final update was in 2018, so some values may be outdated. For branded or packaged ingredients like a specific brand of tortilla or canned soup, the Branded Foods section pulls directly from manufacturer label data and updates monthly.

When you can’t find an exact match, choose the closest equivalent. “Chicken breast, raw, meat only” is a better match for a skinless breast than “chicken breast, raw, meat and skin.” These distinctions can swing fat content by several grams per serving.

Accounting for Vitamin and Mineral Losses

Heat destroys some nutrients, particularly water-soluble vitamins. If you only care about calories, fat, protein, and carbs, you can skip this step since those macronutrients survive cooking largely intact. But if you’re tracking vitamin C, B vitamins, or folate, you need to apply retention factors.

The USDA publishes a Table of Nutrient Retention Factors that shows what percentage of each vitamin survives different cooking methods. The losses are significant and vary widely:

  • Boiling greens in water: Only 55% of vitamin C survives, along with 60% of folate. Using less water bumps vitamin C retention to 60%.
  • Stir-frying vegetables: Retains 85% of vitamin C and 85% of folate, making it one of the gentlest methods for these nutrients.
  • Baking potatoes in skin: Keeps 80% of vitamin C and 90% of folate.
  • Roasting beef: Only 50% of B6 and 55% of vitamin C remain.
  • Boiling legumes: Folate takes the hardest hit at just 45% retention when drained.

To apply a retention factor, multiply the raw nutrient value by the factor before dividing by cooked weight. If an ingredient has 160 micrograms of vitamin A per 100 grams, you used 200 grams, frying gives a retention factor of 0.95, and total cooked weight is 440 grams, the calculation is: (160 × 200 × 0.95) ÷ 440 = 69 micrograms of vitamin A per 100 grams of cooked food.

Adjusting for Oil Absorption in Fried Foods

When you deep-fry or pan-fry, the food absorbs some of the cooking oil. You can’t simply count the oil you poured in, since most stays in the pan. Foods fried at normal temperatures absorb between 8 and 25 percent of their weight in oil, depending on the item and conditions. Frozen French fries absorb roughly 8 percent. Breaded items and battered foods sit closer to 15 to 25 percent because the coating acts like a sponge.

Higher frying temperatures produce thinner crusts and less oil absorption. Lower temperatures do the opposite, leading to greasier results. If you want a practical estimate without lab testing, weigh the oil before and after frying. The difference is what the food absorbed. Add that amount of oil’s nutritional value to your recipe totals.

Handling Alcohol in Recipes

A common misconception is that alcohol completely “burns off” during cooking. It doesn’t. After 15 minutes of cooking at a boil, about 40 percent of the alcohol remains. After 30 minutes, 35 percent is still present. It takes a full two hours of simmering to get down to 10 percent, and two and a half hours to reach just 5 percent remaining.

Alcohol contributes 7 calories per gram. If your recipe includes a cup of wine (roughly 25 grams of alcohol) and simmers for one hour, about 25 percent of the alcohol remains, which is around 6 grams. That adds roughly 44 calories to the whole dish. For most home cooks this is a minor adjustment, but it adds up in recipes that use a full bottle of wine or generous pours of spirits.

How Accurate Are Calculated Values?

Research comparing database-calculated nutrition values against laboratory chemical analysis found that average differences typically stayed below 13 percent across a sample of 155 fast food items. For the group as a whole, no nutrient was off by more than 15 percent on average. However, for individual items, errors sometimes exceeded 50 percent. The biggest sources of inaccuracy are natural variation in ingredients (one apple isn’t identical to another), imprecise weighing, and not accounting for cooking changes.

For personal meal tracking or recipe blogging, database calculations are more than adequate. If you’re creating a commercial product that needs an official nutrition facts panel, you’ll want to start with calculated values and then consider sending samples to an accredited lab for verification.

Calorie Calculation From Macronutrients

Once you have your final gram totals for protein, fat, carbohydrates, and fiber, you can calculate calories directly rather than relying on the database’s calorie figure for each ingredient. The standard conversion factors are:

  • Protein: 4 calories per gram
  • Fat: 9 calories per gram
  • Carbohydrates: 4 calories per gram
  • Fiber: 2 calories per gram (fiber is technically part of total carbohydrates but contributes fewer calories since it’s not fully digested)

This cross-check helps catch data entry errors. If your calculated calories from macros differ significantly from the sum of ingredient calories, something was likely entered wrong.

FDA Rounding Rules for Labels

If you’re making a nutrition facts panel for a product you sell, the FDA requires specific rounding. Calories below 50 round to the nearest 5, and above 50 they round to the nearest 10. Anything under 5 calories can be listed as zero. Total fat, saturated fat, and trans fat round to the nearest 0.5 grams below 5 grams and to the nearest gram above 5 grams. Amounts below 0.5 grams are listed as zero.

Sodium rounds to the nearest 5 milligrams between 5 and 140 mg, and to the nearest 10 mg above that. Under 5 mg is listed as zero. Total carbohydrates, fiber, and sugars all round to the nearest gram, with amounts under 0.5 grams listed as zero.

Serving sizes must also follow FDA reference amounts. These aren’t arbitrary. Soups use a 245-gram reference amount. Cookies use 30 grams. Muffins and bagels use 110 grams. Breads and rolls use 50 grams. Your labeled serving size should be close to these reference amounts, expressed in both a household measure (like “1 muffin”) and grams.

Putting It All Together

For a straightforward recipe like a pot of chili, the process looks like this: weigh every ingredient raw, look up nutrients per 100 grams for each one, multiply by the amount used, sum everything into batch totals, weigh the finished pot, then divide batch totals by your number of servings. That handles calories, fat, protein, carbs, sodium, and fiber with solid accuracy. If you’re tracking vitamins, apply the appropriate retention factor for your cooking method before dividing. If you fried anything, add the absorbed oil to your totals.

Free tools like USDA FoodData Central or apps like Cronometer and MyFitnessPal can automate much of this by letting you enter ingredients and serving counts, though they vary in how well they handle cooking losses and yield factors. For the most accurate results, especially for a product label, doing the math yourself with weighed ingredients and a reliable database gives you the most control over every step.