Nutrition
Energy contributed by each macronutrient
Each component is computed on its own before summing. Keeping the three terms visible makes it easy to see which macro dominates the total and to check that they add up.
Last updated
The Formula
E_carb = C x 4; E_protein = P x 4; E_fat = F x 9
Each component is computed on its own before summing. Keeping the three terms visible makes it easy to see which macro dominates the total and to check that they add up.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| C | Carbohydrate mass | g | The input to the four-kilocalorie carbohydrate term. |
| F | Fat mass | g | The input to the nine-kilocalorie fat term. |
What Each Symbol Means
Cg
Carbohydrate mass
The input to the four-kilocalorie carbohydrate term.
Fg
Fat mass
The input to the nine-kilocalorie fat term.
See It Worked With Real Numbers
A formula on its own does not tell you which number goes where. The how to calculate calories from macros page applies this equation to a concrete case, shows every intermediate step, and names the mistakes that produce a wrong answer even when the algebra is right.
Where This Formula Appears
This equation is the working core of How To Calculate Calories From Macros, filed under Health. Every number the guide produces comes from substituting into this one line.
Common Questions
What is the formula for Energy contributed by each macronutrient?
The formula for Energy contributed by each macronutrient is E_carb = C x 4; E_protein = P x 4; E_fat = F x 9. Each component is computed on its own before summing. Keeping the three terms visible makes it easy to see which macro dominates the total and to check that they add up.
What units should I use with Energy contributed by each macronutrient?
Substitute C in g, F in g. Convert every input to those units before you start, because the equation only returns the right answer when the units on both sides agree.
What is a common mistake when using Energy contributed by each macronutrient?
Multiplying the fat share by 100 in the expression. The share is stored as a raw decimal such as 0.2727272727272727 and the display layer adds the percentage sign to show 27.27 per cent. Adding a multiplication by 100 in the expression would make the page print 2727.27 per cent. Keep the expression as a division returning a fraction only.