Health · 36 calculators
Calories From Macros Calculator
The energy in a diet comes from its macronutrients: carbohydrate, protein and fat. The standard 4-4-9 method assigns roughly four kilocalories per gram to carbohydrate and protein and nine to fat, then adds the results. This page explains the general arithmetic used on food labels and is not personal medical or diet advice.
Last updated
Total energy
1,650
- Energy from carbohydrate
- 800
- Energy from protein
- 400
- Energy from fat
- 450
- Fat calorie share
- 27.27%
Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.
The formula this calculator uses
Total kcal = carbs x 4 + protein x 4 + fat x 9
- C
- Carbohydrate mass in grams
- P
- Protein mass in grams
- F
- Fat mass in grams
- E
- Total energy in kilocalories
How to check the result by hand
- 1
List the three masses in grams
Write down carbohydrate, protein and fat in grams, all in the same units. For the worked example these are 200 g, 100 g and 50 g. If a label gives ounces or a recipe gives cups, convert to grams first, because the four and nine factors apply per gram and nothing else. Check that you have not swapped the protein and fat figures before continuing.
- 2
Convert carbohydrate and protein at four each
Multiply carbohydrate grams by four to get 800.0 kcal, and protein grams by four to get 400.0 kcal. These two macronutrients share the same coefficient, so their combined contribution is simply four times their combined mass. Keeping them separate in the working makes the later share calculation much easier to follow.
- 3
Convert fat at nine kilocalories per gram
Multiply the 50 g of fat by nine to obtain 450.0 kcal. This term is the largest contributor per gram, which is why fat dominates the energy share even when it is a small part of the total mass. A misplaced decimal here propagates through both the total and the fat percentage.
- 4
Add the three contributions for the total
Sum 800.0, 400.0 and 450.0 to reach 1650.0 kcal. The three terms must add exactly to the total, and their individual shares must add to one. If they do not, recheck the multiplications before trusting any derived percentage.
- 5
Find the fat calorie share
Divide the fat energy by the total: 450 divided by 1650 gives 0.2727272727272727, displayed as 27.27 per cent. The output stores the raw decimal, so never add a multiplication by 100 inside the expression or the page would show 2727.27 per cent. Use the same pattern for any other macro share by replacing the numerator.
Common Questions
How does the Calories From Macros Calculator work?
Multiply each macronutrient's grams by its energy density and add the three products. With 200 g of carbohydrate, 100 g of protein and 50 g of fat, the contributions are 800.0, 400.0 and 450.0 kcal, giving a total of 1650.0 kcal. The fat share is 450 divided by 1650, or 0.2727272727272727, displayed as 27.27 per cent. These are approximate factors used for general labelling, not a personalised dietary prescription.
What do I need to enter in the Calories From Macros Calculator?
It takes 3 inputs: Carbohydrate (g), Protein (g), Fat (g). Fields that expect a unit say so next to the label.
Where does Total energy come from?
It comes from E = C x 4 + P x 4 + F x 9 — multiply each macronutrient's mass in grams by its energy density in kilocalories per gram, then add the three contributions to obtain total energy.
What is the most common mistake with the Calories From Macros Calculator?
Applying the same factor to all three macros. Carbohydrate and protein both use four kilocalories per gram, but fat uses nine. Treating fat like the others understates its contribution by more than half: 50 g should give 450.0 kcal, not 200. Check that the nine has been applied to the correct input before summing.
For worked examples, common mistakes and the limits of this formula, read the full How To Calculate Calories From Macros page.
