Nutrition
Recipe Nutrition Calculator
Paste your ingredient list and the number of servings. The calculator matches each line to a food in USDA FoodData Central, converts the amount to grams, and adds up calories, fat, carbohydrate, fiber, sugars, protein, sodium and cholesterol. It then divides by the servings. Lines it cannot match are listed and left out.
Calories per serving
Paste your ingredient list to see the result.
Show the math
Nutrition per 100 grams of common ingredients
| Ingredient | Calories | Fat | Carbohydrate | Protein | Sodium |
|---|---|---|---|---|---|
| All-purpose flour | 364 kcal | 0.98 g | 76.3 g | 10.3 g | 2 mg |
| Granulated sugar | 387 kcal | 0 g | 100 g | 0 g | 1 mg |
| Butter, salted | 717 kcal | 81.1 g | 0.06 g | 0.85 g | 643 mg |
| Olive oil | 884 kcal | 100 g | 0 g | 0 g | 2 mg |
| Egg, whole | 143 kcal | 9.51 g | 0.72 g | 12.6 g | 142 mg |
| Milk, whole | 61 kcal | 3.25 g | 4.8 g | 3.15 g | 43 mg |
| Cheddar cheese | 403 kcal | 33.3 g | 3.37 g | 22.9 g | 653 mg |
| Chicken breast, raw | 120 kcal | 2.62 g | 0 g | 22.5 g | 45 mg |
| Ground beef, 80% lean, raw | 254 kcal | 20 g | 0 g | 17.2 g | 66 mg |
| White rice, uncooked | 365 kcal | 0.66 g | 80 g | 7.13 g | 5 mg |
| Pasta, dry | 371 kcal | 1.51 g | 74.7 g | 13 g | 6 mg |
| Potato | 77 kcal | 0.09 g | 17.5 g | 2.05 g | 6 mg |
| Onion | 40 kcal | 0.1 g | 9.34 g | 1.1 g | 4 mg |
| Tomato | 18 kcal | 0.2 g | 3.89 g | 0.88 g | 5 mg |
| Soy sauce | 53 kcal | 0.57 g | 4.93 g | 8.14 g | 5,490 mg |
How the calculator works
Recipe nutrition is bookkeeping. For every line of the recipe, the calculator does four things:
- Reads the amount and unit. “2 cups all-purpose flour” becomes 2, cups, all-purpose flour.
- Matches the food. It looks for the longest name it knows in the line, so “brown sugar” is matched as brown sugar and not as sugar.
- Converts to grams. Weights are used as given. Volumes use the USDA weight for a cup of that food. Counted items use the USDA weight of one: 50 g for a large egg, 110 g for a medium onion.
- Multiplies. USDA lists nutrients per 100 g, so the line’s share is grams / 100 x the value.
nutrient in a line = grams / 100 x nutrient per 100 g
per serving = sum of all lines / servings
Open “Show the math” under the result to see every line with its weight.
Worked example
A plain butter cake: 2 cups all-purpose flour, 1/2 cup butter, 3/4 cup sugar, 2 eggs, 1 teaspoon baking powder, 1/2 cup milk and 1/4 teaspoon salt, cut into 12 pieces.
| Ingredient | Weight | Calories |
|---|---|---|
| 2 cups flour | 250 g | 910 |
| 1/2 cup salted butter | 113.5 g | 814 |
| 3/4 cup sugar | 150 g | 581 |
| 2 large eggs | 100 g | 143 |
| 1/2 cup whole milk | 122 g | 74 |
| 1 tsp baking powder | 4.6 g | 2 |
| 1/4 tsp salt | 1.5 g | 0 |
The total is 2,524 calories. Divided by 12, that is 210 calories a piece, with 9 g of fat, 29 g of carbohydrate, 13 g of sugars, 3.6 g of protein and 167 mg of sodium.
Three ingredients carry 91 percent of the calories: the flour, the butter and the sugar. That is the usual pattern in baking, and it tells you where a change would matter. Leaving out the salt changes nothing in the calorie column.
Reading the result against Daily Values
The FDA sets Daily Values for use on nutrition labels. For the nutrients this calculator reports, they are:
- Total fat: 78 g
- Saturated fat: 20 g
- Cholesterol: 300 mg
- Sodium: 2,300 mg
- Total carbohydrate: 275 g
- Dietary fiber: 28 g
- Protein: 50 g
The FDA’s rule of thumb for reading a label is that 5 percent of the Daily Value or less per serving is considered low, and 20 percent or more is considered high.
For the cake above: 5.3 g of saturated fat is 27 percent of 20 g, which counts as high. 167 mg of sodium is 7 percent of 2,300 mg. 0.6 g of fiber is 2 percent of 28 g, which is low.
There is no Daily Value for total sugars. The FDA’s 50 g figure is for added sugars only, and the USDA records this calculator uses report total sugars, so the two cannot be compared directly.
Where the numbers can be off
Brands. USDA values are averages for a type of food. Your butter or your soy sauce may differ, sometimes by a lot for sodium.
How you measure. A cup of flour is 125 g in the USDA record used here. A cup scooped straight from the bag can weigh more. If you have a scale, enter grams.
Counted items. One onion is taken as 110 g and one potato as 213 g, the USDA medium sizes. The same USDA records put a large onion at 150 g and a large potato at 369 g.
What is left behind. Oil left in the frying pan, marinade poured away and salted pasta water are in the total even though you did not eat them.
Missing values. A few USDA records have no figure for one nutrient. Total sugars are blank for ground pork, firm tofu and canned coconut milk, for example. The calculator counts a blank as zero.
Lines not counted. Anything listed under “Not counted” adds nothing. If that is a main ingredient, the total is too low.
Writing lines the calculator can read
- Put the amount first: “200 g chicken breast”, not “chicken breast, 200 g”.
- Use grams, ounces, pounds, cups, tablespoons or teaspoons.
- For meat, fish and anything else sold by weight, give a weight. USDA has no cup weight for ground beef.
- Replace “1 can” or “1 package” with what it weighs.
- “Salt to taste” cannot be counted. If sodium matters to you, measure the salt once and enter it.
Tips and common mistakes
Check the servings figure first. Halving the number of servings doubles every result, and it is the easiest input to get wrong.
Use “butter” for salted butter and “unsalted butter” when that is what you use. The difference is 632 mg of sodium per 100 g.
Read the “Not counted” list every time.
Compare versions of a recipe instead of chasing an exact figure. Swapping one ingredient and seeing what moves is where this kind of calculator is most reliable.
Weigh the finished dish if you want a per 100 g figure for leftovers: divide the totals by the cooked weight.
Frequently asked questions
How do I calculate the nutrition in a homemade recipe?
Weigh or measure each ingredient, look up its nutrients per 100 grams, multiply by the weight used, add all the ingredients together, and divide by the number of servings. This calculator does those steps from a pasted ingredient list.
Where do the nutrition values come from?
USDA FoodData Central, the SR Legacy data set. Each of the 100 foods the calculator knows is tied to one USDA record, and the weight of a cup, tablespoon or single item comes from the same record.
Why was one of my ingredients not counted?
Either the food is not among the 100 in the list, the line had no amount, or the amount could not be turned into a weight, as with '1 can' or a cup of something USDA lists only by weight. Give a weight in grams or ounces to fix the last two.
Are the results accurate?
They are estimates. Brands differ from the USDA average, cooking changes weight, and anything not counted is missing from the total. Use the numbers to compare recipes and spot what drives them, not as a label.
Does cooking change the nutrition?
The calculator adds up raw ingredients as you list them. It does not model water lost in baking, fat left in the pan or salt left in pasta water, so a cooked dish can differ from the total.