Recipe Nutrition Calculator – Add Up Any Recipe, Serving by Serving
A recipe label only makes sense once you know the whole pot and the size of one serving. Type each ingredient with its amount and its nutrition per unit, and this calculator adds up the whole recipe, then divides it by the number of servings.
Your recipe
The whole recipe is divided by this number to get one serving.
| Ingredient | Amount | Calories per unit | Protein per unit (g) | Carbs per unit (g) | Fat per unit (g) |
|---|
Your numbers never leave this page. Everything is calculated in your browser. There is no built-in ingredient database here: every nutrition value is one you type, from a label or a source you trust.
Result
Whole recipe totals
Per serving
Per-serving values are rounded to one decimal place, so a value like 3.75 g of protein shows as 3.8 g. The totals underneath keep their full values.
- Per serving = (the sum of amount × per-unit values over all rows) ÷ servings — the anchor recipe gives 200 + 150 + 50 = 400 kcal ÷ 4 servings = 100.0 kcal, with protein 3.8 g.
- There is no built-in ingredient database: every value comes from a label or a source you trust, and units must match — a per-100-g label means typing amounts in hundreds of grams.
- Changing the servings divides the same total (6 servings → 66.7 kcal); doubling the amounts doubles the total — confusing those two operations is the most common scaling error.
- Where one serving gets its calories
- How it works, in three steps
- How the calculation works
- Going deeper
- Rows, totals, and servings: the three steps in numbers
- Where the per-unit values come from, and why units are everything
- Scaling, checking, and using the result
- Trusting the label, trusting the database, and knowing the limits
- The three checks, applied to the anchor recipe
- Scaling a recipe up or down without breaking it
- A final checklist before you trust a recipe result
- One row, one unit, one check
- Servings are a decision, not a fact
- A worked check with round numbers
- Frequently asked questions
Where one serving gets its calories
Using 4 kcal per gram of protein and carbohydrate and 9 kcal per gram of fat, the whole recipe of 400 kcal splits into 60 kcal from protein, 160 kcal from carbohydrates and 180 kcal from fat.
Reading the bars: the longest bar is the biggest calorie source in the recipe. If your typed totals use rounded label values, the three bars can add up to slightly more or less than the typed calorie total.
Related tools
How it works, in three steps
List every ingredient
One row per ingredient, with its amount and its nutrition per unit. The anchor recipe uses three rows.
Add the rows up
Each row contributes amount times its per-unit values. The three anchor rows give 400 kcal in total.
Divide by servings
400 kcal divided by 4 servings is 100 kcal per serving. Change the servings and every per-serving value updates.
How the calculation works
Row total = amount × per-unit value · Recipe total = sum of all rows · Per serving = recipe total ÷ servings
Worked example. Three ingredients give 200 kcal, 150 kcal and 50 kcal. Recipe total = 200 + 150 + 50 = 400 kcal. With 4 servings, per serving = 400 ÷ 4 = 100 kcal.
Same recipe, different servings. With 1 serving the whole 400 kcal lands on one plate. With 8 servings each serving is 400 ÷ 8 = 50 kcal. The recipe total never changes; only the division does.
Protein, carbs and fat work the same way. The anchor rows give 15.0 g of protein, 40.0 g of carbohydrates and 20.0 g of fat in total. Per serving that is 15.0 ÷ 4 = 3.8 g of protein, 40.0 ÷ 4 = 10.0 g of carbohydrates and 20.0 ÷ 4 = 5.0 g of fat.
Going deeper
Use the nutrition label on the packet, or a food database you trust, and keep the unit consistent: if the label gives values per 100 g, type the amount in hundreds of grams, so 250 g becomes 2.5 units. Mixed units are the most common mistake in recipe math. A per-cup value paired with a gram amount, or a per-serving value paired with the whole packet, will quietly give a wrong total. This calculator has no built-in ingredient database on purpose, so no value here is ever a guess dressed up as a fact.
Protein and carbohydrate carry about 4 kcal per gram and fat about 9 kcal per gram, but labels round every value, and fiber, sugar alcohols and alcohol also carry energy that those three macros do not cover. So the macro split of a recipe can land a little above or below the typed calorie total. A small gap is normal rounding. A large gap means a per-unit value or an amount is probably wrong, and the inputs are worth checking before the result is trusted.
Rows, totals, and servings: the three steps in numbers
Recipe nutrition has three steps, and each step has its own arithmetic. First, list every ingredient with its amount and its nutrition per unit. Second, multiply amount by per-unit values for each row, and add the rows up: that sum is the whole recipe total. Third, divide the recipe total by the number of servings to get one serving. The anchor recipe on this page shows all three steps with numbers small enough to check by hand, and the rest of this section walks through them exactly as the calculator does.
The anchor has three rows. Row 1 contributes 200 kcal, row 2 contributes 150 kcal, and row 3 contributes 50 kcal. The recipe total is 200 plus 150 plus 50, which is 400 kcal. The same rows give protein, carbohydrates and fat: the totals are 15.0 g of protein, 40.0 g of carbohydrates and 20.0 g of fat. Those totals are the whole recipe, before any division, and they never change when you change the servings. Only the division changes.
Divide by the default 4 servings and the per-serving figures are 100.0 kcal, with protein 15.0 divided by 4, which is 3.75 g, displayed as 3.8 g, carbohydrates 40.0 divided by 4, which is 10.0 g, and fat 20.0 divided by 4, which is 5.0 g. The protein display is the rounding lesson on this page in miniature: per-serving values are rounded to one decimal place, so 3.75 g shows as 3.8 g, while the totals underneath keep their full values. A reader who multiplies the displayed per-serving protein by 4 will get 15.2 g, not 15.0 g, and that gap is rounding, not error. Always work from the totals when precision matters, and treat the per-serving figures as rounded presentations of those totals.
Change the servings and the whole recipe stays put while the servings move. With 1 serving, the whole 400 kcal lands on one plate, and the per-serving figure is 400.0 kcal. With 8 servings, each serving is 400 divided by 8, which is 50.0 kcal, with protein 1.9 g. With 6 servings, each serving is 400 divided by 6, which the calculator displays as 66.7 kcal, with protein 2.5 g, carbohydrates 6.7 g and fat 3.3 g. The 6-serving case is the one that shows rounding most clearly: 400 divided by 6 is 66.666 in full, displayed as 66.7, and the macros divide the same way, each rounded to one decimal. The recipe total never changes; only the division does, as the base guide states, and the 6-serving case is the proof that the division is honest about its rounding.
| Servings | Per serving (kcal) | Protein (g) | Carbohydrates (g) | Fat (g) |
|---|---|---|---|---|
| 1 | 400.0 | 15.0 | 40.0 | 20.0 |
| 4 (default) | 100.0 | 3.8 | 10.0 | 5.0 |
| 6 | 66.7 | 2.5 | 6.7 | 3.3 |
| 8 | 50.0 | 1.9 | 10.0 | 2.5 |
Every figure in that table is a displayed result from this page’s own calculator, captured from the 1-serving, 4-serving, 6-serving and 8-serving displays. The 1-serving row equals the whole-recipe totals, as division by 1 requires, and the 8-serving row divides each total by 8: 40.0 divided by 8 is 5.0 g of carbohydrates and 20.0 divided by 8 is 2.5 g of fat, matching the display. If any row fails to reproduce on your screen, the servings box is the first suspect, because the recipe rows themselves did not change: only the division did.
Where the per-unit values come from, and why units are everything
This calculator has no built-in ingredient database, and that absence is deliberate. Every nutrition value is one you type, from a label or a source you trust, which means no value here is ever a guess dressed up as a fact. That honesty comes with a responsibility: the values you type must use consistent units, because mixed units are the most common mistake in recipe math. The base guide names the two classic forms of that mistake: a per-cup value paired with a gram amount, or a per-serving value paired with the whole packet. Either pairing quietly gives a wrong total, and the calculator cannot catch it, because it has no way to know what unit your per-unit value uses.
The fix is a conversion before typing, not after. Use the nutrition label on the packet, or a food database you trust, and keep the unit consistent: if the label gives values per 100 g, type the amount in hundreds of grams, so 250 g becomes 2.5 units. That example from the base guide is worth memorising, because per-100-g labels are the most common source of unit errors. A 250 g ingredient at a per-100-g label is 2.5 units, not 250 units and not 1 unit, and typing either wrong value distorts the whole recipe total by a large factor. When in doubt, write the unit beside the amount on paper first, then type the pair that matches.
Labels also round every value, and rounding explains the second puzzle on this page: why the macro calories can differ slightly from the typed calorie total. Protein and carbohydrate carry about 4 kcal per gram and fat about 9 kcal per gram, but labels round every value, and fiber, sugar alcohols and alcohol also carry energy that those three macros do not cover. So the macro split of a recipe can land a little above or below the typed calorie total. A small gap is normal rounding. A large gap means a per-unit value or an amount is probably wrong, and the inputs are worth checking before the result is trusted. That diagnostic, small gap versus large gap, is the most useful check on this page after the units check, because it distinguishes the calculator’s honest rounding from your own typing error.
Scaling, checking, and using the result
Scaling a recipe is the same operation as changing the servings, seen from the other side. The recipe total never changes when you change the servings; only the division does. But scaling the recipe itself, making twice as much food, doubles every row’s amount and therefore doubles the recipe total, while the per-serving figure stays the same if the servings double too. Those two operations are easy to confuse, and the confusion produces the most common scaling error: doubling the amounts and doubling the servings, then wondering why the per-serving figure did not move. It did not move because both sides of the division doubled, and the ratio is unchanged. To change the per-serving figure, change either the amounts or the servings, not both in proportion.
Checking a recipe result has three steps. First, add the row calories by hand and compare with the recipe total: 200 plus 150 plus 50 is 400, and any disagreement means a row amount or per-unit value is wrong. Second, divide the total by the servings by hand and compare with the per-serving figure, allowing for one-decimal rounding: 400 divided by 6 is 66.666, displayed as 66.7, and that rounding is expected. Third, check the macro-calorie gap: compute roughly 4 times protein plus 4 times carbohydrates plus 9 times fat, and compare with the typed calorie total. A small gap is rounding. A large gap is a wrong input. A result that passes all three checks is worth trusting. A result that fails one of them is worth retyping, starting with the units.
Finally, remember what this tool is: general nutrition information, computed from values you supply, not dietary advice for any individual. It does not know your needs, your health, or your goals, and its per-serving figures are arithmetic, not recommendations. Use it to understand what is in a recipe, to compare recipes, and to scale quantities honestly. Take personal nutrition questions to a qualified professional, and take any medical question about diet to a clinician, not to a calculator.
Trusting the label, trusting the database, and knowing the limits
Every value on this page comes from a label or a database, and the result is only as good as the source. A packet label is the strongest source for a packaged ingredient, because it describes the exact product in your hand, including its brand, its recipe, and its serving definition. A food database is the next best source for unpackaged ingredients, such as fresh produce, meat, or a homemade stock, where no label exists. But databases differ: the same food can appear with different values in different databases, because brands, cuts, and preparation methods differ, and because databases round and update at different times. When two sources disagree, prefer the label for a packaged food, and prefer the database entry that matches your ingredient’s preparation most closely for an unpackaged one, noting the choice so the recipe can be checked later.
Preparation changes values, and that change is worth stating plainly. Raw and cooked weights differ, because cooking drives off water and sometimes adds fat, so a value per 100 g raw does not apply to 100 g cooked, and a value per 100 g cooked does not apply to 100 g raw. Drained and undrained weights differ for canned foods, for the same reason. If your source gives a value for the form you are actually using, use it directly. If it gives a value for a different form, either find the matching form or say so in your notes, rather than silently applying a raw value to a cooked weight. The calculator cannot know which form your value describes, and no result built on a mismatched form can be trusted, however carefully the arithmetic was done.
Finally, remember the scope. This page gives general nutrition information, computed from values you supply, not dietary advice for any individual. It does not know your needs, your health, your allergies, or your goals, and it does not judge whether a recipe is suitable for you. It also does not verify your sources: a value typed from an unreliable source produces a result that looks precise and is wrong, and the calculator will not warn you, because it has no way to know. Use it to understand what is in a recipe, to compare recipes honestly, and to scale quantities. Take personal nutrition questions to a qualified professional, and take any medical question about diet to a clinician, not to a calculator.
The three checks, applied to the anchor recipe
The anchor recipe is the worked example this page opens with, and it is worth running the three checks on it explicitly, because they show what a passing result looks like. The three rows contribute 200, 150 and 50 kcal, and 200 plus 150 plus 50 is 400, which matches the recipe total of 400.0 kcal. The totals are 15.0 g of protein, 40.0 g of carbohydrates and 20.0 g of fat, and dividing each by 4 servings gives 3.75 g, 10.0 g and 5.0 g, displayed as 3.8 g, 10.0 g and 5.0 g, with the per-serving calories at 100.0 kcal. The macro-calorie estimate, 4 times 15 plus 4 times 40 plus 9 times 20, is 60 plus 160 plus 180, which is 400 kcal, matching the typed total exactly in this case. A recipe that passes all three checks, with only small rounding gaps, is worth trusting. A recipe that fails one of them is worth retyping, starting with the units.
| Servings | Calories per serving | Protein per serving | Carbohydrates per serving | Fat per serving |
|---|---|---|---|---|
| 1 | 400.0 kcal | 15.0 g | 40.0 g | 20.0 g |
| 4 | 100.0 kcal | 3.8 g | 10.0 g | 5.0 g |
| 6 | 66.7 kcal | 2.5 g | 6.7 g | 3.3 g |
| 8 | 50.0 kcal | 1.9 g | 5.0 g | 2.5 g |
Every figure in that table is a displayed result from this page’s own calculator for the anchor recipe. Read the protein column down: 15.0, 3.8, 2.5, 1.9. The 1-serving row is the totals themselves, and each later row is those totals divided by the servings and rounded to one decimal place. The rounding is visible in the 4-serving protein cell, where 3.75 displays as 3.8, and in the 8-serving protein cell, where 1.875 displays as 1.9. Work from the totals when precision matters, and treat per-serving figures as rounded presentations of those totals, not as exact values to be multiplied back.
Scaling a recipe up or down without breaking it
There are two different scaling operations, and confusing them is the most common scaling error. Changing the servings divides the same recipe total by a new number: the total never changes, only the per-serving figures do. That is what the servings table in the previous section shows, with the same 400 kcal total giving 100.0 kcal at 4 servings, 66.7 kcal at 6 servings, and 50.0 kcal at 8 servings. Scaling the recipe itself is the other operation: making twice as much food means doubling every row’s amount, which doubles every row’s contribution and therefore doubles the recipe total, because each row’s contribution is its amount times its per-unit value. If you double the amounts and also double the servings, the per-serving figure does not move, because both sides of the division doubled. To change the per-serving figure, change either the amounts or the servings, not both in proportion.
Scaling down works the same way, with one extra caution. Halving every row’s amount halves the total, and the per-serving figures follow from the new total divided by the servings you choose. But halving is where unit errors creep back in, because a halved amount in a mismatched unit is still mismatched, and a small amount typed against a per-100-g label becomes a very small number of units, where a typing slip matters proportionally more. After any scaling, re-run the three checks: add the row contributions by hand, divide the total by the servings, and check the macro-calorie gap. A scaled recipe that passes all three checks is sound. A scaled recipe that fails one of them has a scaling error, not a calculator error, and the error is almost always in one row’s amount.
Working backwards is the third scaling skill. If you want a target per-serving figure, multiply it by the servings to get the total you need, then build rows that add up to that total. A target of 500 kcal per serving at 4 servings needs a 2,000 kcal total, and rows that sum to 2,000 kcal will hit it, whatever their split. That backwards calculation is arithmetic, not a calculator feature, but it turns the calculator from a checker into a planner: type the rows you intend, read the total, and adjust the rows until the total matches the target. The calculator’s role is to do the division and the addition reliably, so that your judgment can focus on the recipe itself, not on the arithmetic.
A final checklist before you trust a recipe result
Before you trust any result on this page, run through five questions. First, are the units consistent: does every per-unit value use the same unit as its amount, with per-100-g labels converted to hundreds of grams? Second, do the row contributions add up to the recipe total by hand: 200 plus 150 plus 50 is 400, and any disagreement means a row is wrong? Third, does the total divided by the servings match the per-serving figure, allowing for one-decimal rounding: 400 divided by 4 is 100.0, and 15.0 divided by 4 is 3.75, displayed as 3.8? Fourth, is the macro-calorie gap small: does 4 times protein plus 4 times carbohydrates plus 9 times fat land near the typed calorie total, with only rounding-sized difference? Fifth, do the sources match the forms: are packaged values from labels, unpackaged values from a matching database entry, and raw values kept apart from cooked values?
A result that passes all five questions is worth trusting, and a result that fails any one of them is worth retyping, starting with the question it failed. That discipline is the whole method of this page, and it is more valuable than any single result, because it catches the errors that no calculator can catch: a mismatched unit, a mistyped amount, a wrong source, a raw value applied to a cooked weight. The calculator does the addition and the division reliably. You supply the values, the units, and the judgment, and the checklist is where the two meet. Use it every time, especially after scaling, where a single row’s error propagates into every per-serving figure.
One row, one unit, one check
A recipe total is only as honest as its weakest row. Treat each row as its own small calculation before it joins the total.
Each row needs three things that agree with each other: an amount, a unit, and nutrition values stated in that same unit. An amount in grams with values stated per 100 g is a clean row. An amount in grams with values stated per serving is a row waiting to go wrong. Convert the values to the row’s unit first, then type them.
Check the row before adding the next one. A wrong row does not stay wrong by itself; it is divided into every serving, so one row’s error becomes every serving’s error. Reading each row back once, amount and unit together, catches most mistakes while they are still cheap to fix.
Servings are a decision, not a fact
The same recipe can be four servings or six. The total does not change; the serving does.
Decide what a serving is before you divide. A serving can be a counted portion, a weight, or a fraction of the pan, but it has to be defined before the division means anything. Dividing the same total by four servings and by six servings gives two different per-serving figures, and both are correct divisions of the same recipe.
Scaling follows the same rule. Double the ingredients and double the servings, and the per-serving figures stay where they were. Double the ingredients without doubling the servings, and every per-serving figure doubles too. The calculator divides what you give it; the serving count is your decision, so make it deliberately.
A worked check with round numbers
No real food, no label, just the arithmetic the calculator performs on every recipe.
| Line | Calories |
|---|---|
| First ingredient row | 240 kcal |
| Second ingredient row | 160 kcal |
| Whole recipe total | 400 kcal |
| Servings | 4 |
| One serving | 100 kcal |
The check runs in two directions. Forward, the rows add to the total and the total divides by the servings. Backward, the per-serving figure times the servings must return the total. If it does not, a row or a serving count is wrong, and the table shows exactly where to look.
For the macro check, protein and carbohydrate count 4 kcal per gram and fat counts 9 kcal per gram. If the macro calories and the typed calorie total disagree by more than rounding can explain, one of the typed values is using a different basis, and the rows deserve a second read.
Frequently asked questions
How do you calculate nutrition for a recipe?
List every ingredient with its amount and its nutrition per unit, multiply amount by per-unit values for each row, and add the rows up. That sum is the whole recipe total. Divide it by the number of servings to get one serving.
What is 200 plus 150 plus 50 calories divided by 4 servings?
The recipe total is 200 plus 150 plus 50, which is 400 kcal. Divided by 4 servings, one serving is 100 kcal.
Does this calculator have a built-in ingredient database?
No. There is no built-in ingredient database here. Every nutrition value is one you type, from a label or a source you trust, so no value on this page is ever a guess dressed up as a fact.
How do I handle ingredients measured in different units?
Keep the amount and the per-unit values in the same unit. If a label gives values per 100 g, type the amount in hundreds of grams, so 250 g becomes 2.5 units. Mixed units are the most common mistake in recipe math.
Why do my macro calories not match the total calories exactly?
Protein and carbohydrate carry about 4 kcal per gram and fat about 9 kcal per gram, but labels round every value, and fiber, sugar alcohols and alcohol also carry energy. A small gap is normal rounding, and a large gap means an input is worth checking.
Can I scale a recipe up or down with this calculator?
Yes. Change the amounts to the new quantities and the recipe total updates, then set the servings to the new number of portions. The per-serving values always follow the amounts and the servings you type.
Why does protein show 3.8 g per serving instead of 3.75 g?
Because per-serving values are rounded to one decimal place, while the totals underneath keep their full values. The anchor recipe has 15.0 g of protein in total, and 15.0 divided by 4 servings is 3.75 g, which displays as 3.8 g. Multiplying the displayed 3.8 g by 4 gives 15.2 g, not 15.0 g, and that gap is rounding, not error. Work from the totals when precision matters, and treat per-serving figures as rounded presentations of those totals.
What happens to the per-serving figures with 6 servings?
Each total is divided by 6 and rounded to one decimal place. The 400 kcal recipe total gives 66.7 kcal per serving, with protein 2.5 g, carbohydrates 6.7 g and fat 3.3 g. The recipe total itself never changes; only the division does. Compare with 4 servings, which gives 100.0 kcal, 3.8 g of protein, 10.0 g of carbohydrates and 5.0 g of fat, and with 8 servings, which gives 50.0 kcal, 1.9 g of protein, 5.0 g of carbohydrates and 2.5 g of fat.
My macro calories do not match the typed calorie total. Is something wrong?
Probably not, if the gap is small. Protein and carbohydrate carry about 4 kcal per gram and fat about 9 kcal per gram, but labels round every value, and fiber, sugar alcohols and alcohol also carry energy that those three macros do not cover. So the macro split can land a little above or below the typed total, and a small gap is normal rounding. A large gap means a per-unit value or an amount is probably wrong, most often a mixed unit, and the inputs are worth checking before the result is trusted.
How do I enter an ingredient labelled per 100 g?
Type the amount in hundreds of grams, so that the unit matches the label. A 250 g ingredient at a per-100-g label is 2.5 units, not 250 units and not 1 unit. Typing 250 against a per-100-g value would multiply the nutrition by a hundred, and typing 1 would count only 100 g of a 250 g ingredient. Write the unit beside the amount on paper first, then type the pair that matches. Mixed units are the most common mistake in recipe math, and this conversion is the fix.
How do I enter ingredients measured in cups and grams in the same recipe?
Convert them to one basis before you type anything. Pick the unit each label uses, convert the other ingredients into that unit, and enter each row in the unit its values are stated in. A recipe with mixed units typed as if they matched will add unlike quantities, and the total will be wrong in a way no later step can repair.
Why do my per-serving figures change when I change the number of servings?
Because the recipe total stays the same while the divisor changes. The calculator divides the whole-recipe total by the number of servings, so more servings means a smaller share for each one and fewer servings means a larger share. The ingredients did not change; only the size of the share did.
Should I weigh ingredients raw or cooked?
Match the weight to the basis of the values you enter. Raw weights go with values stated for the raw ingredient, and cooked weights go with values stated for the cooked ingredient. Do not mix the two in one recipe. If a label does not make its basis clear, note the assumption and keep it consistent across every row.
More calculators
This calculator is an educational tool for adding up recipe nutrition. It does not give medical or dietary advice, and its results depend entirely on the values you type in.