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.
| Total calories (4-4-9 math) | |
| Label calories after FDA rounding | |
| Calories from protein | |
| Calories from carbohydrate | |
| Calories from fat | |
| Calories from alcohol | |
| Share of calories: protein / carbs / fat | |
| Kcal per 100 g (needs serving weight) | |
kcal = 4 × protein + 4 × carbohydrate + 9 × fat + 7 × alcohol. Labels round calories to the nearest 5 up to 50 and the nearest 10 above 50. 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.
Key takeaways
- 4 kcal per gram of protein and carbohydrate, 9 per gram of fat and 7 per gram of alcohol: the Atwater factors behind every US nutrition label
- A 32 g serving of peanut butter with 7.1 g protein, 7.1 g carbs and 16.4 g fat works out to 204 kcal, which FDA rounding shows as 200
- Run backward, a 1,800 kcal budget at a 30/40/30 split means 135 g of protein, 180 g of carbohydrate and 60 g of fat
- The factors overshoot on fibrous foods: a raw banana computes to 99 kcal per 100 g while USDA FoodData Central lists 89
- Labels round calories to the nearest 5 up to 50 and the nearest 10 above 50, so 47 shows as 45 and 96 shows as 100
On this page
- Four numbers turn grams into calories
- Worked example: two tablespoons of peanut butter
- The other direction: a calorie budget back into grams
- Why your arithmetic and the label disagree
- Calories per 100 grams for common foods
- Alcohol: the forgotten seventh calorie
- Where 4-4-9 overshoots: fiber, nuts and specific factors
- 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.
| Macronutrient | Share of 1,800 kcal | Calories | Grams | Factor |
|---|---|---|---|---|
| Protein | 30% | 540 | 135 | 4 kcal per gram |
| Carbohydrate | 40% | 720 | 180 | 4 kcal per gram |
| Fat | 30% | 540 | 60 | 9 kcal per gram |
| Total | 100% | 1,800 | 375 |
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 calories | What the label may show | Example |
|---|---|---|
| Less than 5 | 0 | A serving with 3.4 kcal shows 0 |
| 50 or less | Nearest 5 | 47 kcal rounds to 45, not 50 |
| Above 50 | Nearest 10 | 96 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.
| Food | kcal per 100 g | Protein (g) | Fat (g) | Carbs (g) |
|---|---|---|---|---|
| Olive oil | 884 | 0.0 | 100.0 | 0.0 |
| Peanut butter, smooth, with salt | 598 | 22.2 | 51.4 | 22.3 |
| Almonds, raw | 579 | 21.2 | 49.9 | 21.6 |
| Cheddar cheese | 403 | 22.9 | 33.3 | 3.4 |
| White bread, commercial | 266 | 8.9 | 3.3 | 49.4 |
| Chicken breast, roasted, no skin | 165 | 31.0 | 3.6 | 0.0 |
| Avocado | 160 | 2.0 | 14.7 | 8.5 |
| Pasta, cooked, enriched | 158 | 5.8 | 0.9 | 30.9 |
| Egg, hard-boiled | 155 | 12.6 | 10.6 | 1.1 |
| White rice, long-grain, cooked | 130 | 2.7 | 0.3 | 28.2 |
| Potato, baked, flesh and skin | 93 | 2.5 | 0.1 | 21.2 |
| Banana, raw | 89 | 1.1 | 0.3 | 22.8 |
| Whole milk, 3.25% | 61 | 3.2 | 3.3 | 4.8 |
| Apple, raw, with skin | 57 | 0.3 | 0.1 | 13.7 |
| Broccoli, raw | 34 | 2.8 | 0.4 | 6.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
- Air Fryer Conversion Calculator
- Air Fryer Time and Temperature Calculator
- Air Fryer to Oven Converter
- Alcohol Dilution Calculator
- BBQ Grill Size Calculator
- BBQ Party Calculator
- Baby Milk Intake Calculator
- Baking Powder Substitute Calculator
- Bread Hydration Calculator
- Bread Machine Recipe Ratio Calculator
- Bread Spread Calculator: Butter and Cream Cheese
- Brine Calculator
- Brown Sugar Cups to Grams
- Brown Sugar Substitute Calculator
- Butter Calculator
- Butter Stick to Grams Converter
Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.