NEW BOOK102 Bali-inspired recipes with picture shopping lists & exact USDA calories — $19 USDSee inside →
calories, please.
Home›Learn›Recipes & Cooking

RECIPES & COOKING · LEARN

How to Calculate Macros in a Recipe: Step by Step

In the bowl, one serving has about 290 calories and 15 g protein; calculate any recipe by scaling, totaling and dividing its ingredients.
LAST UPDATED4 November 2026

How we research our guides →

A home cook weighing beans on a kitchen scale beside a pot of chili and a notebook

A home cook glances from the scale to a package label while the chili simmers. The examples show how to keep ingredient amounts and food entries matched.

A scale helps, but a package label and a measured cup can work too. The example below uses cooked rice and lentils, hummus and a hard-boiled egg to show how ingredient amounts turn into a whole-batch total.

QUICK ANSWER

The basic formula

For equal portions, divide each whole-recipe total by the portion count. For uneven portions, divide by finished batch weight and multiply by the amount served.

General information only. Your own needs can be different. Numbers marked with a small number link to the source list at the bottom of this page.

START HERE

How to calculate macros in a recipe: the whole-recipe formula

Macros are protein, carbohydrate and fat; calories show the recipe’s energy1. A recipe total is the sum of its ingredients. If the batch is divided into equal portions, each portion gets the full-recipe total divided by the number of portions.

Use the same method for calories, protein, carbohydrates, and fat. Keep the result as an estimate: food records and package labels are rounded, and home portions may not match perfectly.

  • Record the amount of each ingredient that goes into the recipe.
  • Find matching nutrition values for each one.
  • Scale each value to the amount used.
  • Add the ingredients, then divide by portions or finished weight.

DON’T SKIP THE SMALL THINGS

List what actually goes into the pot

List every ingredient used in the finished dish. Include grains, vegetables, sauces, oil, cheese, toppings and any grease that stays in the meal.

If a marinade or cooking liquid is discarded, do not automatically count all of it as eaten. Note what was added and what was left behind; that part of a home recipe may be less exact.

Include optional extras

A drizzle of oil, a spoon of dressing, or a topping can change the total. Add the amount you use rather than leaving it out because it seems small.

Separate the parts you do not eat

If you drain beans or leave sauce in the pan, the amount eaten may differ from the amount added. Record the method you used so the next batch is comparable.

MATCH THE DESCRIPTION

Choose an entry that matches the food

Use the package label for the packaged product in your kitchen. For basic foods, USDA FoodData Central has nutrient records for foods in different forms3. Read the full description before using a result.

What you measuredUse a record forAvoid
Dry riceDry, uncooked riceCooked rice per 100 g
Cooked riceRice cooked as servedDry rice values scaled to cooked weight
Raw chickenRaw chicken with a matching cut and skin statusA roasted chicken entry
Cooked chickenCooked chicken matching the method and cutRaw chicken values for cooked grams
Packaged sauceThe brand and label serving you usedA different sauce or generic entry when the label is available

FoodData Central has separate records for foods such as cooked rice and cooked lentils; the food name and preparation state are part of the match45.

DO THE SMALL MATH

Scale each amount to grams or label servings

For data per 100 g, use: nutrient in your amount = value per 100 g × grams used ÷ 100. For a label, divide the amount used by its serving weight, then multiply each listed value by that result23.

Per 100 g

Amount used ÷ 100 × the listed value

Per package serving

Amount used ÷ serving amount × the listed value

Recipe total

Add the scaled ingredient values

Equal portion

Recipe total ÷ number of equal portions

If the label gives values per cup but you measured grams, use the package’s gram weight or weigh your amount. The serving-size line describes the label measure. It is not a recommendation for your portion2.

TOTAL FIRST

Add the whole batch before dividing

Add all ingredient values for each nutrient. Once you have the full-recipe total, divide by the actual number of equal portions you served.

A cookbook yield is a useful starting point. If you cut a different number of pieces, use the portions you made. For scooped dishes, finished weight handles uneven servings better.

  • Add all calories together.
  • Repeat for protein, carbohydrate, and fat.
  • Divide each total by the portion count.
  • Keep decimal values until the final result, then round sensibly.

USDA DATA, SHOWN STEP BY STEP

Worked example: a lentil-rice bowl

This bowl makes two servings. Use 1 cup cooked white rice (158 g) and 1 cup cooked lentils (198 g). Add 2 tablespoons hummus (30 g) and 1 large hard-boiled egg (50 g). Each serving gets half of those amounts. USDA FoodData Central supplies the nutrient values4567.

A bowl of cooked white rice and lentils topped with hummus and a hard-boiled egg
The pictured bowl uses the same four ingredients as the worked example.
Ingredient per servingCaloriesProteinCarbohydrateFatFiber
Cooked white rice, 1/2 cup (79 g)4105 kcal2 g22 g0 g0 g
Cooked lentils, 1/2 cup (99 g)5115 kcal9 g20 g0 g8 g
Commercial hummus, 1 tbsp (15 g)635 kcal1 g2 g3 g1 g
Hard-boiled egg, 1/2 large (25 g)740 kcal3 g0 g3 g0 g
One serving290 kcal15 g45 g6 g9 g
Whole recipe, 2 servings585 kcal31 g89 g12 g18 g
Calories in the measured bowl ingredients
Calories in the measured bowl ingredients
Itemkcal per listed portion
Cooked white rice, 1/2 cup105
Cooked lentils, 1/2 cup115
Hummus, 1 tbsp35
Hard-boiled egg, 1/2 large40

USDA FoodData Central calories for the ingredient portions above, rounded to the nearest 54567.

The results are approximate because database values are rounded and actual packages or portions can differ. The chart compares ingredients in this example; it is not a ranking of foods.

PICK THE RIGHT DIVISION

Equal servings or weigh the finished batch?

Divide by a serving count when the portions are close to equal. If one person takes a larger scoop, weigh the finished batch and each serving instead.

MethodHow to do itBest fit
Equal portionsDivide each full-recipe total by the number of portionsMuffins, slices, or meals plated evenly
Finished weightRecipe total ÷ cooked batch grams = amount per gram; multiply by serving gramsSoup, rice bowls, casserole, or uneven scoops

For even portions

Divide each total by the number of pieces or plates. If a recipe makes two equal bowls, each bowl gets half of every batch total.

For different-size servings

Divide each nutrient total by the cooked batch weight to get an amount per gram. Multiply by the grams in the portion you serve.

For the bowl above, if the cooked batch is split evenly into two servings, each serving gets half of every total. If your scoop is larger, use its share of the finished weight instead.

MATCH THE WEIGHING MOMENT

Raw, dry, and cooked are different entries

Choose the nutrition entry for the state you measured. If you weigh chicken raw, use a raw-chicken record; if you weigh it cooked, use a cooked-chicken record. The same idea applies to dry pasta or rice versus a cooked portion.

FoodData Central has separate records for foods such as cooked rice and cooked lentils45. For a consistent estimate, weigh ingredients before cooking and use matching raw or dry records, or weigh the cooked food and use a cooked record.

Dry pasta or rice

Weigh dry and choose the dry entry

Cooked pasta or rice

Weigh cooked and choose the cooked entry

Raw meat

Use an entry for the same raw cut and skin/fat state

Cooked meat

Use an entry matching cooked method and cut

For a rice comparison with another grain, see quinoa vs rice nutrition.

COUNT WHAT GOES INTO THE SERVING

Oil, sauces, toppings, and drained ingredients

A sauce, cooking oil, cheese or topping can affect the recipe total. Measure what you add and include it as an ingredient. Use the label for packaged products or a matching database entry for basic foods.

If a noticeable amount is discarded or left in the pan, the amount eaten is uncertain. Note that uncertainty rather than pretending every gram added reached the plate.

  • Measure cooking oil instead of estimating a free pour.
  • Include dressing and toppings that are served with the meal.
  • For drained beans or canned fish, match the drained state if the record provides it.
  • Keep optional add-ons separate if people choose different amounts.

For a meal plan built from repeatable ingredients, use a healthy grocery list for a week.

A NORMAL DIFFERENCE

Why 4-4-9 may not match the calorie line

A quick energy check multiplies protein grams by 4, carbohydrate grams by 4, and fat grams by 91. This is a useful estimate, but it may not match the calorie line exactly.

FDA label values use rounding: calories up to 50 are rounded to the nearest 5-calorie increment, and calories above 50 to the nearest 10. Protein, carbohydrate, and fat amounts are rounded too1. Use the source’s calorie value for the calorie total and its macro values for protein, carbs, and fat rather than forcing them to match.

MAKE THE MEASURE CLEAR

What if you only have cups and spoons?

Use the gram weight listed for the label serving or database measure when it is available. A level cup and a packed cup can weigh different amounts, so “one cup” is less exact than a weight.

For packaged foods, the Nutrition Facts serving size describes the label measure2. It does not tell you how much to eat. When you repeat the recipe, use the same cup or spoon and note whether it was level, packed, drained, or cooked.

If a serving is hard to estimate, compare it with a familiar portion and write down the method. For school meals, see healthy lunch ideas for kids.

SAVE THE METHOD

Keep a recipe card you can reuse

Once you have calculated a dish, keep the ingredient amounts, food entries, cooked yield, and serving method together. Next time, you can update only the ingredients or brands that changed.

A short note is enough. List the recipe name, amounts, and whether foods were raw or cooked. Add batch totals and say if you divided by portions or weight. For weight-gain planning, see how many calories should I eat to gain weight.

  • Ingredient amount and unit
  • Label or database entry used
  • Raw, dry, drained, or cooked state
  • Finished batch weight or number of portions
  • Rounded nutrients per serving

PHOTO LOGGING

How to track this with a photo

A meal photo can help you remember what ingredients and sides were served together, especially when you make the same recipe in different portions. Pair it with a written ingredient list for details a photo cannot show.

For a more useful comparison, keep the bowl, serving size, and recipe method consistent when you repeat a meal.

That is exactly why we are building Calories, Please. Snap a photo of your plate, check the details, and your meal is logged. No weighing every bite, no searching long food lists.

The iPhone app is planned for early 2027, so it is not out yet. Want to be first to try it? Get launch updates →

COMMON QUESTIONS

Frequently asked questions

How do I calculate macros for a whole recipe?

Scale each ingredient’s nutrients to the amount used, add the full batch, and divide by equal portions or the finished-weight method.

Should I weigh ingredients raw or cooked?

Either can work if the nutrition entry matches the state you weighed. Use raw values for raw weights and cooked values for cooked weights; FoodData Central lists cooked rice and lentils as separate cooked records45.

How do I calculate macros per serving?

Add the whole recipe first, then divide each nutrient total by the number of equal portions. For uneven portions, calculate per gram from the finished batch and multiply by the serving weight.

Why do calories not equal protein × 4 + carbs × 4 + fat × 9?

The 4-4-9 sum is an estimate. FDA label values are rounded, including calories and grams of nutrients, so the lines may not match exactly1.

Do I count oil and sauce?

Include the amounts that go into the recipe and are eaten. If some is left behind or discarded, note that the total is less certain.

Can I use cups instead of a food scale?

Yes. Use a matching label or database serving, and its gram weight when available. Weighing is more consistent when cup measures vary.

How accurate are recipe macro calculations?

They are estimates based on the entries, amounts, brands, and portions you use. Matching the food form and recording the method helps make repeat calculations more consistent345.

FOOD GUIDES

Foods in this article

KEEP READING

Related reading

SOURCES

Where these facts come from

  1. FDA: Food Labeling Guide ↗General calorie conversion factors and Nutrition Facts rounding rules.
  2. FDA: Serving Size on the Nutrition Facts Label ↗Serving-size meaning and package values.
  3. USDA FoodData Central API Guide ↗Official access to USDA nutrient records.
  4. USDA FoodData Central: Cooked Enriched White Rice ↗Nutrients per 100 g and cup weight.
  5. USDA FoodData Central: Cooked Lentils ↗Nutrients per 100 g and cup weight.
  6. USDA FoodData Central: Commercial Hummus ↗Nutrients per 100 g and tablespoon weight.
  7. USDA FoodData Central: Hard-Boiled Egg ↗Nutrients per 100 g; 50 g large egg portion.

Page reviewed 4 November 2026. Studies of what people eat show links, not proof of cause. Where we could only confirm a fact through a summary, we say so.

General wellness informationThis page is general information, not medical advice. Please talk to your doctor or a registered dietitian about what is right for you, especially if you have a health condition, are pregnant, take medicine, or have a history of disordered eating.
calories, please.FOOD CLARITY · EARLY 2027

FROM GUIDE TO PLATE

Photograph the plate.
Confirm the details.

Calories, Please is targeting an early 2027 iPhone launch.
See launch updates →