What This Calculator Does
This tool converts the grams of each macronutrient in a food or meal into calories (kilocalories). It uses the standard Atwater energy factors: carbohydrates and protein each supply about 4 kcal per gram, fat supplies 9 kcal per gram, and alcohol supplies 7 kcal per gram. Enter the grams from any nutrition label and instantly see the total energy plus how those calories are split across macros.
How to Use It
Read the grams of carbohydrate, protein and fat from the nutrition facts panel and type each into its field. If the item contains alcohol (for example wine, beer or spirits), add the grams of pure alcohol too — otherwise leave it at 0. Press calculate to see the total calories and a percentage breakdown of where those calories come from.
The Formula Explained
The calculation is a simple weighted sum:
$$\text{calories} = 4 \times \text{carbs} + 4 \times \text{protein} + 9 \times \text{fat} + 7 \times \text{alcohol}$$Each gram of a macronutrient releases a known amount of energy when metabolised, so multiplying grams by the per-gram factor and adding them up gives total energy. The percentage for each macro is its calories divided by the total, times 100.
Worked Example
Suppose a meal has 50 g carbohydrate, 30 g protein, 20 g fat and no alcohol.
$$\text{Carbs} = 4 \times 50 = 200 \text{ kcal}$$$$\text{Protein} = 4 \times 30 = 120 \text{ kcal}$$$$\text{Fat} = 9 \times 20 = 180 \text{ kcal}$$$$\text{Total} = 200 + 120 + 180 = \mathbf{500 \text{ kcal}}$$The split is 40% carbs, 24% protein and 36% fat.
Acceptable Macronutrient Distribution Ranges (AMDR)
Once you know how many calories come from each macronutrient, you can compare each share with the Acceptable Macronutrient Distribution Ranges. The U.S. Institute of Medicine (IOM), now the National Academies of Sciences, Engineering, and Medicine, set these ranges in its Dietary Reference Intakes. They are also used in the United States and Canada. Each range is a share of total daily energy intake for adults aged 19 and older.
| Macronutrient | AMDR for adults (% of energy) | Energy factor | Source |
|---|---|---|---|
| Carbohydrate | 45–65% | 4 kcal/g | IOM / National Academies, Dietary Reference Intakes |
| Protein | 10–35% | 4 kcal/g | IOM / National Academies, Dietary Reference Intakes |
| Fat | 20–35% | 9 kcal/g | IOM / National Academies, Dietary Reference Intakes |
| Alcohol | No recommended share | 7 kcal/g | Not a required nutrient; no AMDR is set |
The ranges are different for children. Ages 1–3: carbohydrate 45–65%, protein 5–20%, fat 30–40%. Ages 4–18: carbohydrate 45–65%, protein 10–30%, fat 25–35%.
Limits on added sugars and saturated fat: The World Health Organization (WHO) recommends keeping free sugars below 10% of total energy intake. It also recommends keeping saturated fat below 10%. The Dietary Guidelines for Americans (2020–2025 edition, a U.S. publication) set the same limits: added sugars under 10% of calories per day and saturated fat under 10% of calories per day. On a 2,000 kcal day, 10% is 200 kcal. That equals \(200 \div 4 = 50\) g of sugar or \(200 \div 9 \approx 22\) g of saturated fat.
Alcohol: There is no recommended share of energy from alcohol. It provides calories but no essential nutrients, and health authorities do not tell people to drink. Count alcohol calories in your total, but do not treat them as a macronutrient target.
These are population reference ranges for healthy people. They are not personal targets. Your own needs depend on age, health conditions, activity level and goals. This is general information, not professional medical or dietary advice. For individual guidance, ask a doctor or a registered dietitian.
More Worked Examples
Example 1: A glass of wine (with alcohol)
A 150 ml glass of dry table wine contains about 14 g of alcohol and about 4 g of carbohydrate. It has almost no protein or fat. Multiply each amount by its energy factor:
- Alcohol: \(7 \times 14 = 98\) kcal
- Carbohydrate: \(4 \times 4 = 16\) kcal
- Protein: \(4 \times 0 = 0\) kcal
- Fat: \(9 \times 0 = 0\) kcal
Total energy: 114 kcal.
Percentage split:
$$\text{Alcohol share} = \frac{98}{114} \times 100 \approx 86.0\%$$$$\text{Carbohydrate share} = \frac{16}{114} \times 100 \approx 14.0\%$$Most of the calories in wine come from the alcohol, not from sugar. The real values depend on the wine's alcohol content and how sweet it is.
Example 2: A handful of almonds (high-fat snack)
A 30 g serving of almonds contains about 6 g of carbohydrate, 6 g of protein and 15 g of fat. The values are rounded and vary by product.
- Carbohydrate: \(4 \times 6 = 24\) kcal
- Protein: \(4 \times 6 = 24\) kcal
- Fat: \(9 \times 15 = 135\) kcal
- Alcohol: \(7 \times 0 = 0\) kcal
Total energy: 183 kcal.
Percentage split:
$$\text{Fat share} = \frac{135}{183} \times 100 \approx 73.8\%$$$$\text{Carbohydrate share} = \frac{24}{183} \times 100 \approx 13.1\%$$$$\text{Protein share} = \frac{24}{183} \times 100 \approx 13.1\%$$About 74% of the calories in almonds come from fat. Fat provides more than twice as many calories per gram as carbohydrate or protein. Nutrition labels often list fiber within total carbohydrate. If you count fiber at about 2 kcal/g instead of 4, the label calories can be slightly lower than this 4-4-9 estimate.
Energy Factors for Other Food Components
The 4-4-9-7 factors cover the main energy sources in food. Some other components provide less energy per gram, and food-labeling rules give them their own values. The table shows the general factors and their kilojoule equivalents (1 kcal ≈ 4.184 kJ).
| Food component | kcal per gram | kJ per gram (EU label value) | Source / notes |
|---|---|---|---|
| Protein | 4 | 17 | General Atwater factor |
| Carbohydrate (digestible) | 4 | 17 | General Atwater factor |
| Fat | 9 | 37 | General Atwater factor |
| Alcohol (ethanol) | 7 | 29 | General factor |
| Dietary fiber | ≈ 2 | 8 | EU Regulation 1169/2011. The U.S. FDA uses 2 kcal/g for soluble non-digestible carbohydrate and 0 kcal/g for insoluble fiber |
| Polyols (sugar alcohols) | ≈ 2.4 | 10 | EU Regulation 1169/2011. The value varies by polyol. Erythritol is counted as 0 kcal/g in the EU |
| Organic acids | ≈ 3 | 13 | EU Regulation 1169/2011 (for example, citric and acetic acid) |
| Salatrims | 6 | 25 | EU Regulation 1169/2011 (reduced-energy fats) |
A worked conversion: 10 g of a polyol counted at the EU value gives \(2.4 \times 10 = 24\) kcal. The same 10 g counted as ordinary carbohydrate would give \(4 \times 10 = 40\) kcal.
Note: The 4, 4, 9 and 7 values are the general Atwater-system factors. They are rounded averages used on nutrition labels and in calculators like this one. The more detailed specific Atwater factors give separate values for individual foods, because digestibility differs by food. For example, protein in some foods is valued at about 3.5–4.3 kcal/g instead of exactly 4. Totals from the general factors are good estimates but can differ slightly from lab-measured or label values. Labeling rules also differ by country, so check the regulations where you live.
FAQ
Why does fat have more calories per gram? Fat molecules are more energy-dense, releasing roughly 9 kcal per gram versus 4 for carbs and protein.
Should I count fiber? Fiber is a carbohydrate but is largely indigestible; labels often already account for it, so this tool uses the listed total carbohydrate value.
Why might my total differ slightly from the label? Manufacturers may use modified Atwater factors or round values, so small differences of a few calories are normal.