Macros are the three nutrients that carry calories — protein, fat and carbohydrate — and "counting macros" means tracking the grams of each rather than the calorie total alone. The word is short for macronutrients: nutrients needed in gram amounts each day, as opposed to micronutrients (vitamins and minerals), which are needed in milligrams or micrograms.
This article explains what each macro is, how many calories a gram of it carries, why the macro calculator works in grams, and the exact order in which a target is built.
The three macros (plus alcohol)
Protein is made of amino acids, the building blocks of muscle and of almost every working part in the body. Meat, fish, eggs, dairy, soy, legumes and grains all contain it in different amounts.
Fat is the most energy-dense macro. Oils, butter, nuts, seeds, oily fish, egg yolk and the fat in meat and dairy are the main sources.
Carbohydrate covers starches (bread, rice, potatoes, oats), sugars (fruit, milk, table sugar) and fibre (the parts of plants that are not digested in the small intestine).
Alcohol is not a nutrient, but it carries calories, so a macro tracker has to account for it somewhere. It is listed here because it is the fourth energy source on the label conversion tables.1
In plain terms: protein builds, fat and carbohydrate mostly fuel, and alcohol is extra energy that has to be counted even though it is not food.
Calories per gram
The energy factors used on food labels are the Atwater general factors, published in FAO's reference on food energy conversion:1
| Energy source | kcal per gram | kJ per gram | 100 g supplies |
|---|---|---|---|
| Protein | 4 | 17 | 400 kcal |
| Carbohydrate | 4 | 17 | 400 kcal |
| Fat | 9 | 37 | 900 kcal |
| Alcohol | 7 | 29 | 700 kcal |
| Dietary fibre | 2 | 8 | 200 kcal |
Two things follow from the table. A gram of fat carries more than twice the energy of a gram of protein or carbohydrate, which is why fat grams look small next to carb grams even when the calories are similar. And the factors are averages: the true energy of a specific food's protein or carbohydrate varies around them, which is the subject of why macros don't add up to calories.
Why grams, not percentages
A percentage split — "40/30/30" — says nothing until you know the calorie total. 30% protein at 1,600 kcal is 120 g; at 2,800 kcal it is 210 g. The body does not respond to a percentage. It responds to the grams of protein relative to body weight and to the calorie total relative to expenditure.
That is why the MacroDiet formula never starts from a ratio. Protein is set in grams per kilogram of body weight, fat has a floor in grams per kilogram, and only the leftover is divided. Percentages are a way of describing the result afterwards.
How targets are set — energy, then protein, then fat, then carbs
The order is fixed and every step depends on the one before it. This is the exact sequence the macro calculator runs:
- Energy. BMR from the Mifflin-St Jeor equation, multiplied by an activity factor, adjusted for the goal (lose, maintain, gain) with a cap of
35%of TDEE on any deficit or surplus and a calorie floor on the way down. - Protein. Body weight × a tier of
1.2,1.6,2.0or2.4 g/kg, plus0.2 g/kgon a losing goal, capped so protein never exceeds50%of calories. - Fat. A share of the calories left after protein —
35%on the balanced style,20%low-fat,50%low-carb — never below the floor ofmax(0.6 g/kg, 20% of calories). - Carbohydrate. Everything that remains, divided by
4. On keto the order of the last two steps flips: carbs are fixed at30 gand fat takes the remainder.
A worked example, reproducible on the calculator: an 80 kg person at a 2,200 kcal maintenance target, moderate protein tier, balanced style.
| Step | Arithmetic | Result |
|---|---|---|
| Protein | 80 × 1.6 | 128 g = 512 kcal |
| Remaining | 2,200 − 512 | 1,688 kcal |
| Fat | 1,688 × 0.35 ÷ 9 | 66 g = 594 kcal |
| Fat floor check | max(80 × 0.6, 2,200 × 0.2 ÷ 9) = max(48, 49) | 49 g — not binding |
| Carbohydrate | (2,200 − 512 − 594) ÷ 4 | 274 g |
In plain terms: calories are decided first, protein is protected, fat gets a floor, and carbohydrate is the flexible remainder that absorbs whatever changes.
The short version
Macros are protein, fat and carbohydrate — the nutrients that carry calories, at 4, 9 and 4 kcal/g, with alcohol at 7. Targets are set in grams because grams, not percentages, are what the body sees. The MacroDiet order is energy → protein → fat → carbs, and each later step is the remainder of the earlier ones. The protein, fat and carbohydrate articles take each step in turn.
Educational overview only — not medical advice. Zyra is a training and nutrition tracking tool; the numbers here are the algorithm's rules and published reference values, not an individual prescription.