Lelifi·tools

Grams to Calories Calculator

Four numbers do the work: 4 kcal per gram of protein, 4 for carbohydrate, 9 for fat and 7 for alcohol. A 32 g serving of peanut butter with 7.1 g protein, 7.1 g carbs and 16.4 g fat comes to 204 kcal, which rounds to the 200 printed on the label.

Type the grams from a nutrition label or a recipe and the calculator applies the 4-4-9 Atwater factors forward, then runs a calorie budget backward into grams.

All calculations run in your browser, nothing is uploaded.

Convert grams of protein, carbohydrate, fat or alcohol into calories with the same 4-4-9 factors behind every US nutrition label, then run a calorie budget backward into grams.

By the Lelifi editors ·

Key takeaways

Two tablespoons of peanut butter, one line per macro7.1 g protein x 4 kcal/g+ 7.1 g carbohydrate x 4 kcal/g+ 16.4 g fat x 9 kcal/g= 28.4 + 28.4 + 147.6 = 204.4 kcalFDA label rounding, above 50 kcal: nearest 10204.4 kcal -> 200 kcal on the labelPer 100 g: 204.4 / 32 x 100 = 638.8 kcal, against the 598 USDA FoodData Central lists.
Three multiplications and one FDA rounding step turn a peanut butter label into 200 calories.
Calories per 100 g, USDA FoodData CentralOlive oil884Peanut butter598Cheddar403White bread266Roasted chicken breast165Cooked white rice130Banana89Broccoli34Bars scaled to olive oil at 884 kcal per 100 g. SR Legacy entries, published April 2019.
The same 100 grams can carry anywhere from 34 to 884 calories, which is why weight beats volume for tracking.
On this page
  1. Four numbers turn grams into calories
  2. Worked example: two tablespoons of peanut butter
  3. The other direction: a calorie budget back into grams
  4. Why your arithmetic and the label disagree
  5. Calories per 100 grams for common foods
  6. Alcohol: the forgotten seventh calorie
  7. Where 4-4-9 overshoots: fiber, nuts and specific factors
  8. What this calculator is good for

Four numbers turn grams into calories

Every calorie count on an American food label traces back to a handful of conversion factors worked out by Wilbur Atwater more than a century ago and still written into federal rule. Protein carries 4 kcal per gram, carbohydrate carries 4, fat carries 9 and alcohol carries 7. Multiply each macro by its factor and add the results: kcal = 4 × protein + 4 × carbohydrate + 9 × fat + 7 × alcohol.

The general factors of 4, 4 and 9 are written directly into FDA's labeling regulation, 21 CFR 101.9, along with the alternatives a manufacturer may use instead, such as specific Atwater factors for a food group. The regulation dates from 1993 in its modern form and applies to the Nutrition Facts labels on packaged food today, so the math on this page is the same math a food scientist runs before printing a label.

One unit note: a food calorie and a kilocalorie are the same thing. The capital C on a label means kcal, which is why a gram of fat worth 9 kcal shows up as 9 calories on the panel. There is no separate conversion to do.

Worked example: two tablespoons of peanut butter

A standard serving of peanut butter is 2 tablespoons, about 32 g. From USDA FoodData Central, peanut butter runs about 22.2 g protein, 22.3 g carbohydrate and 51.4 g fat per 100 g, which scales to roughly 7.1 g protein, 7.1 g carbohydrate and 16.4 g fat for the 32 g serving.

The Atwater math: protein 7.1 × 4 = 28.4 kcal. Carbohydrate 7.1 × 4 = 28.4 kcal. Fat 16.4 × 9 = 147.6 kcal. Total: 28.4 + 28.4 + 147.6 = 204.4 kcal. That lands on the label as 200, because federal rounding rules kick in above 50 calories.

Notice the gap between 204.4 and the figure a database reports. USDA FoodData Central lists 598 kcal per 100 g for this peanut butter, or about 191 kcal for 32 g, because the database calculation subtracts fiber and uses more precise factors. Your hand calculation of 204 kcal is not wrong; it uses the coarse public factors. A spread of 5 to 10 percent between the quick math and the database number is normal, and the calculator shows both the raw total and the rounded label figure so you can see where you stand.

The other direction: a calorie budget back into grams

The same factors run in reverse. If you have a calorie budget and a macro split, divide to get grams: grams = (share × budget) ÷ factor. Protein and carbohydrate divide by 4, fat divides by 9.

Take a 1,800 kcal budget split 30 percent protein, 40 percent carbohydrate and 30 percent fat. Protein: 1,800 × 0.30 = 540 kcal, and 540 ÷ 4 = 135 g. Carbohydrate: 1,800 × 0.40 = 720 kcal, and 720 ÷ 4 = 180 g. Fat: 1,800 × 0.30 = 540 kcal, and 540 ÷ 9 = 60 g. Those three grams figures are what the reverse side of the calculator produces, and any percentages that add to 100 work the same way.

MacronutrientShare of 1,800 kcalCaloriesGramsFactor
Protein30%5401354 kcal per gram
Carbohydrate40%7201804 kcal per gram
Fat30%540609 kcal per gram
Total100%1,800375

The split does not have to be 30/40/30. A 25/50/25 split on the same 1,800 kcal gives 112.5 g protein, 225 g carbohydrate and 50 g fat. What matters is that the three percentages total 100, since a split totaling 90 would quietly allocate calories that never get assigned to a macro.

Why your arithmetic and the label disagree

Two federal rules explain most gaps between a hand calculation and a printed label. The first is rounding. FDA's Food Labeling Guide spells out the increments, and they are coarse by design.

Calculated caloriesWhat the label may showExample
Less than 50A serving with 3.4 kcal shows 0
50 or lessNearest 547 kcal rounds to 45, not 50
Above 50Nearest 1096 kcal rounds to 100, 204.4 rounds to 200

The second rule is fiber. The regulation lets manufacturers count carbohydrate as total carbohydrate minus non-digestible carbohydrate, with soluble fiber carrying a general factor of 2 kcal per gram instead of 4. That is why a raw banana does not add up the naive way: the naive math on its 22.8 g of carbohydrate gives about 99 kcal per 100 g, while USDA lists 89, a gap the 2.6 g of fiber explains. Sugar alcohols get their own factors, from 0 for erythritol to 2.6 for sorbitol, so a protein bar sweetened with maltitol lists fewer calories than its carbohydrate line would suggest.

Calories per 100 grams for common foods

The per-100-gram view makes comparison easy, and the calculator produces it for any food where you know the serving weight. The figures below come from USDA FoodData Central, the federal nutrient database, using its SR Legacy tables published in April 2019.

Foodkcal per 100 gProtein (g)Fat (g)Carbs (g)
Olive oil8840.0100.00.0
Peanut butter, smooth, with salt59822.251.422.3
Almonds, raw57921.249.921.6
Cheddar cheese40322.933.33.4
White bread, commercial2668.93.349.4
Chicken breast, roasted, no skin16531.03.60.0
Avocado1602.014.78.5
Pasta, cooked, enriched1585.80.930.9
Egg, hard-boiled15512.610.61.1
White rice, long-grain, cooked1302.70.328.2
Potato, baked, flesh and skin932.50.121.2
Banana, raw891.10.322.8
Whole milk, 3.25%613.23.34.8
Apple, raw, with skin570.30.113.7
Broccoli, raw342.80.46.6

Read the table as density, not as portion advice. Olive oil tops the list because it is nothing but fat, 9 kcal in every single gram. Broccoli sits at the bottom because it is mostly water. The same 100 g of each carries a 26-fold difference in energy, which is exactly what makes weighing food more reliable than guessing at cups.

Alcohol: the forgotten seventh calorie

Alcohol is a macronutrient that most people forget to count, and it carries 7 kcal per gram, more than carbohydrate or protein and only short of fat. The figure comes from the same Atwater system; the University of Minnesota's Nutrition Coordinating Center lists the general factors as 4, 9, 4 and 7 for protein, fat, carbohydrate and alcohol.

A US standard drink is defined by the National Institute on Alcohol Abuse and Alcoholism as 14 g of pure alcohol, the amount in a 12 fl oz regular beer, a 5 fl oz glass of wine or a 1.5 fl oz shot of spirits. The calorie cost of the alcohol alone: 14 × 7 = 98 kcal. A 12 fl oz beer at 4.6% ABV holds about 12.9 g of alcohol, and 12.9 × 7 = 90 kcal before the beer's own carbohydrates add more. Two beers can quietly add 200 kcal that no food label ever announced, because alcoholic beverages were not required to carry Nutrition Facts panels.

Where 4-4-9 overshoots: fiber, nuts and specific factors

The general factors are a convenience, not a measurement. For some foods the gap gets large enough to matter, and the reason is that the digestible part of each macro varies from food to food.

Roasted chicken breast is the cleanest illustration. The naive math on its 31.0 g protein and 3.6 g fat per 100 g gives 31.0 × 4 + 3.6 × 9 = 156.4 kcal, yet USDA lists 165. The database uses specific Atwater factors for meat, 4.27 for protein and 9.02 for fat, which give 31.0 × 4.27 + 3.6 × 9.02 = about 165 and match the listed value. Nuts go the other way: the naive math on almonds gives about 620 kcal per 100 g while USDA lists 579, because some of the fat in nut cell walls passes through undigested.

High-fiber foods diverge for a second reason: fiber is counted inside the carbohydrate line but delivers little or no energy. So treat 4-4-9 as an estimate that runs a few percent high on whole plant foods and a few percent low on meats, and as dead on for refined foods like oils and sugars where the digestible fraction is everything.

What this calculator is good for

Three jobs suit this math well. First, sanity-checking a label: add up the macro grams, apply the factors, apply the rounding, and you can tell whether a printed calorie figure is a rounding artifact or an error. Second, logging home recipes: weigh the whole dish, total the macro grams across ingredients, divide by the number of servings, and you have per-serving calories without a nutrition analysis service. Third, macro planning in reverse, where a budget and a split become a shopping list in grams.

What it is not: a diet prescription. The calculator converts between units, nothing more. It does not estimate how many calories you burn, and it does not tell you how many to eat, because those are separate questions answered by your own energy needs. If you want that side of the ledger, the site's the calorie deficit calculator and maintenance calorie tools handle burn estimates, and a registered dietitian handles the personal judgment. Also worth remembering: 4-4-9 has nothing to do with measuring cups. A cup of flour is a volume measure that could be 120 or 170 g depending on how you scoop, so convert volume to weight first, then weight to calories.

Frequently asked questions

How many calories are in a gram of protein?

4 kcal per gram, under the general Atwater factors used on US nutrition labels. Ten grams of protein therefore contributes 40 kcal to a serving.

How many calories are in a gram of fat?

9 kcal per gram, more than double the 4 for protein or carbohydrate. This is why a tablespoon of oil at about 13.5 g carries roughly 120 kcal on its own.

How many calories are in a gram of carbohydrate?

4 kcal per gram for the digestible part. Fiber is counted inside the carbohydrate line but is largely non-digestible, so labels may subtract it and count soluble fiber at 2 kcal per gram instead.

How many calories are in a gram of alcohol?

7 kcal per gram. A US standard drink holds 14 g of alcohol, so the alcohol alone costs 14 × 7 = 98 kcal before any mixers or residual carbohydrates.

Why does my label say 200 when the grams add up to 204?

Federal rounding. Above 50 calories a label rounds to the nearest 10, and 204.4 rounds down to 200. Between the label's own rounding and database differences of a few percent, a gap of this size is normal.

Does fiber have calories?

Only a little. Soluble non-digestible carbohydrate gets a general factor of 2 kcal per gram under 21 CFR 101.9, and insoluble fiber effectively 0. That is why a raw banana works out to 99 kcal per 100 g on the naive math while USDA lists 89.

How do I convert calories back to grams?

Divide instead of multiplying. Grams of protein or carbohydrate equal their calorie share divided by 4, and grams of fat equal their share divided by 9. On a 1,800 kcal budget at 30/40/30, that is 135 g protein, 180 g carbs and 60 g fat.

Is 4-4-9 the only method the FDA allows?

No. Manufacturers may also use specific Atwater factors by food group, bomb calorimetry adjusted for digestibility, or FDA-approved food factors. The general factors of 4, 4 and 9 are the most common and the ones this calculator uses.

Why do nuts show fewer calories than the math predicts?

Fat inside intact plant cell walls is less digestible than free fat. The naive calculation on almonds gives about 620 kcal per 100 g, while USDA FoodData Central lists 579, a gap of about 7 percent that research on nut metabolism supports.

Do sugar alcohols count as carbohydrates with 4 kcal per gram?

No. They carry their own factors: erythritol 0, isomalt and lactitol 2.0, xylitol 2.4, maltitol 2.1 and sorbitol 2.6 kcal per gram. A bar sweetened with maltitol lists far fewer calories than its carbohydrate grams would suggest.

How many grams of protein are in 1,200 calories if protein is 30 percent?

1,200 × 0.30 = 360 kcal from protein, and 360 ÷ 4 = 90 g. The same budget at 40 percent carbs gives 480 kcal and 120 g of carbohydrate.

Can I use this calculator for a whole recipe?

Yes. Add the protein, carbohydrate and fat grams across every ingredient, enter the total for the dish, and divide the calories by the number of servings. A 900 kcal batch cut into 6 servings is 150 kcal each.

Is a kcal the same as a calorie?

On food labels, yes. The label calorie is the large calorie, equal to 1 kilocalorie, which is why 9 kcal of fat per gram appears as 9 calories. The small physics calorie almost never appears in nutrition.

Why does the chicken breast total differ from 4-4-9?

Meat usually uses specific factors: about 4.27 kcal per gram of protein and 9.02 for fat. On 31.0 g protein and 3.6 g fat per 100 g that gives about 165 kcal, matching USDA, instead of the 156 the general factors produce.

Spotted a wrong number or a broken result?

More Kitchen tools

See all Kitchen tools

Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.