CCalclabhub

Nutrition

Grams from calories

Multiply the daily calories by the share going to one macronutrient, then divide by that nutrient's calories per gram.

The Formula

g = calories x share / kcalPerGram

Multiply the daily calories by the share going to one macronutrient, then divide by that nutrient's calories per gram.

SymbolMeaning
CDaily calories
sShare
kCalories per gram
gGrams

What Each Symbol Means

Ckilocalories

Daily calories

The calorie target the split is applied to.

sdimensionless

Share

Proportion for one macronutrient, so 30 percent is 0.3.

kkilocalories per gram

Calories per gram

4 for protein, 4 for carbohydrate, 9 for fat.

ggrams

Grams

Weight of that macronutrient to eat.

See It Worked With Real Numbers

A formula on its own does not tell you which number goes where. The how to calculate 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 Macros, filed under Health. Every number the guide produces comes from substituting into this one line.