CCalclabhub

Nutrition

Checking the split adds to one

The three shares must sum to one. A total above one produces more calories than the target; below one leaves calories unassigned.

The Formula

p + c + f = 1

The three shares must sum to one. A total above one produces more calories than the target; below one leaves calories unassigned.

SymbolMeaning
s_pProtein share
s_cCarbohydrate share
s_fFat share

What Each Symbol Means

s_pdimensionless

Protein share

Decimal share of calories from protein.

s_cdimensionless

Carbohydrate share

Decimal share of calories from carbohydrate.

s_fdimensionless

Fat share

Decimal share of calories from fat.

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.