You’ve got a recipe you love, but how do you work out the calories, protein, carbs, fat, and other nutrition facts in each serving? This guide walks you through the calculation step by step, with a practical example, advice on weighing ingredients raw or cooked, and instructions for adding nutrition facts to a WordPress recipe card.
How do you calculate the nutrition of a homemade recipe?
To calculate nutrition facts for a recipe, weigh each ingredient in grams, look up its nutritional values, add the values together, and divide the totals by the number of servings.
For the manual route, start by gathering nutritional data for each ingredient from reliable sources such as the USDA FoodData Central or food packaging labels.

Here’s the process, step by step:
- List every ingredient with its weight in grams, including oil, butter, sauces, and other extras.
- Look up the nutrients for each ingredient per 100 g in USDA FoodData Central. For branded products, use the nutrition label on the packaging.
- Calculate the amount of each nutrient in the quantity you used: (value per 100 g × grams used) ÷ 100.
- Add the nutritional values for all the ingredients together to get the totals for the whole recipe.
- Divide those totals by the number of servings. If your portions aren’t equal, weigh the finished dish and calculate the nutrition by weight instead.
Here’s how that works for a chicken and rice dish that serves four, using values from USDA FoodData Central:
- 500 g raw chicken breast: 120 kcal per 100 g = 600 kcal
- 20 g olive oil: 884 kcal per 100 g = 177 kcal
- 200 g dry white rice: 365 kcal per 100 g = 730 kcal
- 150 g raw broccoli: 34 kcal per 100 g = 51 kcal
Total: 1,558 kcal, or about 390 kcal per serving.
To simplify the process, consider using spreadsheets or the HNRCA Recipe Calculator. This allows you to input all the ingredients and their quantities into a single sheet, making it easier to calculate the final nutritional values.
Should you weigh ingredients raw or cooked?
Weigh ingredients raw where you can, and use the raw entry in the database. Cooking changes the weight much more than the calories. Dry pasta more than doubles in weight as it soaks up water, so cooked pasta has fewer calories per 100 g than dry. Meat does the opposite: it loses water, so cooked chicken has more calories per 100 g than raw.
If you weigh an ingredient after cooking, use the cooked entry in the database, and remember to include any oil the food absorbs during cooking. To work out the weight of one serving, weigh the whole finished dish without the pot and divide that weight by the number of servings.
What is the 4-4-9 rule?
The 4-4-9 rule says that protein and carbohydrates provide 4 calories per gram, while fat provides 9 calories per gram. You can use this as a quick check against the calorie total you’ve calculated from your ingredients.
For example, a serving with 30 g of protein, 40 g of carbohydrates, and 15 g of fat works out to 120 + 160 + 135 = 415 calories. If your calculated total is significantly different, check your ingredient matches and weights. The FDA lists these same factors as one of the accepted methods for calculating calories on a nutrition label.
When is a recipe nutrition calculator enough?
A recipe nutrition calculator is usually enough if you only need to calculate nutrition facts occasionally and want to avoid doing the math yourself. It saves time by matching ingredients with nutrition data, adding up the values, and dividing the totals by the number of servings. But the result still depends on the information you provide.
You need accurate ingredient weights, the correct number of servings, and good ingredient matches. For example, an entry for “chicken breast, raw” isn’t equivalent to “chicken, fried,” so choosing the wrong match can change the final nutrition values.
If you’re comparing your options, we’ve looked at which recipe nutrition calculator is most accurate and what to consider when choosing one. And if you want those numbers to show on your WordPress recipe card, the next section shows you how.
How do you add nutrition facts to a WordPress recipe card?
WP Recipe Maker is a WordPress recipe plugin that puts nutrition labels on recipe cards and, on the Pro and Elite Bundles, calculates them automatically.
“A nutritional calculator plugin is invaluable for food bloggers. It automates the tedious process of manually calculating nutrition facts. And by integrating into recipe posts, bloggers gain accurate, professional-looking nutrition labels that readers appreciate. Automation ensures consistency across recipes and allows bloggers to focus on creating great content.”
Birthe VandermeerenCofounder of Bootstrapped Ventures
Remember to ensure accuracy when using plugins. Make sure your plugin correctly identifies every ingredient, while allowing you to create and manage custom ingredients for more precise calculations.
WP Recipe Maker has more than 50,000 active installations on WordPress.org, with an interface that even a cat could use, if only they had thumbs.
@turkeysforlife, a Turkish food and travel blog, testifies:
“Comprehensive Plugin – Has Everything A Recipe Website Needs”

Turkey’s For Life uses WP Recipe Maker to create recipes complete with nutritional facts, as seen in this gorgeous green pea and feta salad. Above, you’ll find the recipe header, and below, the nutritional information.

The Modern Nonna also uses WP Recipe Maker’s automatic nutrition calculations and unit conversions to make recipes more accessible to its international audience.
Create professional nutrition labels for your recipes with WP Recipe Maker
WP Recipe Maker’s Nutrition Label feature simplifies the process of creating customizable labels for your recipes. Available in our Premium, Pro, and Elite Bundles, the feature allows you to customize and add nutrition facts to your recipes, for a professional result.

With WP Recipe Maker Pro and Elite, you can calculate estimated nutrition values automatically from your recipe ingredients using the Spoonacular API, which Bootstrapped Ventures pays for. The plugin attempts to match your ingredients with entries in the API database, saving you from calculating each value manually.
Step-by-step guide to creating nutrition labels
WP Recipe Maker adds a nutrition label to a recipe in six steps, plus an optional first step for sites that aren’t in English. It’s an easy process to swallow:
- Step 0 (Optional): If your site is not in English, enable the Translation API so WP Recipe Maker can translate ingredients into English when matching them for automatic nutrition calculations.
- Step 1: Go to WP Recipe Maker > Manage, and click on Create Recipe to add a new recipe card.

- Step 2: Add the Nutrition Label feature by scrolling down to the Nutrition section of the recipe modal.

- Step 3: Enter your ingredients and quantities carefully. Put the amount, unit, and ingredient name in their own fields, and words like “chopped” in the notes, so each ingredient matches correctly.

- Step 4: Calculate your recipe’s nutrition facts. With WP Recipe Maker Premium, you can enter nutrition values manually. With Pro or Elite, click Calculate Nutrition Facts to estimate them automatically using the Spoonacular API. The plugin tries to match each ingredient with an entry in the database. Review these matches carefully and search for a better match if needed. You can then check and adjust the calculated values before applying them to your recipe. See the nutrition facts calculation guide for detailed instructions. If an ingredient isn’t available in the database, you can create a custom nutrition ingredient with your own values and save it for future recipes. Nutrition facts are calculated per serving, one recipe at a time (there’s no bulk option). You can also display values per 100g, but you’ll need to enter the serving weight manually.

- Step 5: Customize the nutrition label to match your recipe’s presentation style. WP Recipe Maker offers various options to create visually appealing labels that complement your recipe card design, with customizations for colors, fonts, layouts, and more.
- Step 6: Add the nutrition label to your recipe card using one of two methods:
Use the Template Editor to incorporate the nutrition label into your recipe card layout.
Alternatively, insert the [wprm-nutrition-label] shortcode where you want the label to appear within your post or page.
How accurate are recipe nutrition calculations?
Recipe nutrition calculations are estimates. Their accuracy depends on the ingredient weights you enter, how closely your ingredients match the database entries, and how the food was cooked. Nutrition databases can also differ because their values are based on averages from different samples and brands. To get as close as you can:
- Importance of accurate measurements: Eyeballing quantities is one of the easiest ways to introduce errors. Weigh ingredients in grams using a digital kitchen scale, and only rely on cups and spoons when you don’t have a weight.
- Reading nutrition labels: When using packaged ingredients, carefully read and interpret the nutrition labels. The FDA provides guidance on understanding and using the information on these labels.
- Impact of cooking methods: Different cooking methods, such as boiling, grilling, or frying, can affect the nutritional content of ingredients. For example, boiling potatoes generally removes more vitamin C than baking them. The USDA provides a Table of Nutrient Retention Factors that offers lots of useful info on how cooking methods impact nutrients.
You might come across the FDA’s “20% rule” when researching how accurate nutrition labels need to be. Under FDA regulations, certain values on packaged-food labels, including calories, total fat, and sodium, must not exceed the declared amount by more than 20% when tested. For example, a product labeled as having 100 calories per serving could contain up to 120 calories and still meet this particular requirement.
However, this isn’t a blanket 20% margin of error for homemade recipe calculations. If you’re adding nutrition facts to your food blog, treat them as estimates and aim to make them as accurate as possible using reliable ingredient data and careful measurements.
Start calculating accurate nutrition facts today
Weigh each ingredient, look up its nutrition data, add the totals, and divide by your number of servings, and you’ll have nutrition facts you can stand behind.
On Pro, WP Recipe Maker calculates nutrition automatically and lets you add custom and calculated nutrients, and you can style the label to fit your recipe card in the Template Editor.
Take control of your food blog’s nutritional information today by exploring our Pro and Elite Bundles, and become a go-to resource for healthy, delicious recipes!
FAQs
Can you calculate nutrition for part of a recipe?
Yes. Weigh the whole finished dish, then weigh your portion. Divide the portion weight by the total dish weight, then multiply the recipe’s nutrition totals by that number. For example, a 300 g portion of a 1,200 g dish contains one-quarter of the recipe’s total nutrition.
What is the 5/20 rule on a nutrition label?
The FDA’s 5/20 rule is a quick way to understand % Daily Value: 5% DV or less of a nutrient per serving is considered low, while 20% DV or more is considered high.
Is there a free way to calculate recipe macros?
Yes. You can calculate recipe macros manually using USDA FoodData Central by following the steps above. It just takes a little more time.
