How macros are worked out: protein per kilo, a fat share and carbs from the rest
Why protein is set per kilo of body weight, fat as a share of calories and carbs from what is left, with the 4-4-9 rule and a full day split into meals.
Open the Macro calculator Free, in your browser, nothing uploaded.
“Macros” is short for macronutrients: protein, fat and carbohydrate, the three parts of food that supply most of its energy. Planning by macros means turning a daily calorie target into grams of each. This article explains the arithmetic behind the macro calculator, why it sets protein first, and how a day’s grams are shared between meals and snacks. It is for people who train, cook for a goal or just want to understand food labels. It is a planning method, not medical or dietetic advice; if you have a health condition, are pregnant or have had an eating disorder, ask a doctor or dietitian first. If you do not yet know your daily calories, start with the calorie calculator; to turn grams into dishes, use the meal planner; and to see what a recipe really contains, check it in the recipe nutrition calculator.
What it is
Each gram of macronutrient carries a set amount of energy, the Atwater factors used on food labels:
- protein: 4 calories a gram,
- carbohydrate: 4 calories a gram,
- fat: 9 calories a gram.
The calculator fills a calorie budget in three steps.
- Protein first, by body weight. Protein needs follow the size of the body more than the size of the appetite, so the goal is set in grams per kilo: protein (g) = weight (kg) × goal (g/kg). A large review of strength-training studies found no extra muscle gain from protein supplements above about 1.6 g/kg a day, which is the tool’s default; you can set anything from about 0.8 upwards.
- Fat as a share of calories. Fat (g) = calories × fat % ÷ 9. A share keeps fat in step with how much you eat overall.
- Carbohydrate gets the rest. Carbs (g) = (calories − protein × 4 − fat × 9) ÷ 4. If protein and fat already use up the budget, there is nothing left for carbs, and the tool says so instead of showing a negative number.
Then the day is split. Each snack takes 10% of the day’s food, and the meals share the rest equally, so every meal and snack keeps the same balance of protein, fat and carbs.
How to use it
- Type your daily calorie target.
- Type your body weight and choose kg or lb.
- Set the protein goal in grams per kilo and the fat share as a percent of calories.
- Choose how many meals (3 to 6) and snacks (0 to 3) you eat.
- Read the day’s protein, fat and carbs, their shares of calories, and the table for each meal and snack.
- Press Copy result for a summary, or Download CSV to open the plan in a spreadsheet.
A worked example
Ravi weighs 82 kg and trains with weights. His target is 2,400 calories. He picks 1.8 g/kg of protein and 25% fat, and eats 4 meals and 2 snacks.
- Protein: 82 × 1.8 = 147.6 g, which is 590.4 calories (24.6% of the day).
- Fat: 25% × 2,400 = 600 calories, ÷ 9 = 66.7 g.
- Carbs: 2,400 − 590.4 − 600 = 1,209.6 calories, ÷ 4 = 302.4 g (50.4% of the day).
Shared out: the 2 snacks take 10% each (240 calories), and the 4 meals share the other 80%, so each meal is 480 calories.
- Each meal: 29.5 g protein, 13.3 g fat, 60.5 g carbs, which the tool rounds to 30 g, 13 g and 60 g.
- Each snack: 14.8 g, 6.7 g and 30.2 g, shown as 15 g, 7 g and 30 g.
When it does not fit: someone weighing 100 kg on 1,300 calories, with 2.2 g/kg protein and 35% fat, would need 880 calories of protein and 455 of fat: 1,335 calories before any carbs. The tool reports that protein and fat already use more than the target, so one of the three numbers has to change.
Checked with the tools
All figures were run through the calculator’s own code (src/lib/health/macros.ts) in Node with macros(): the daily grams and shares, the 480 and 240 calorie splits and the per-meal grams, and the over-budget message for the 1,300 calorie case. (Typing 180 lb instead of 82 kg gives 147.0 g of protein, because 180 lb is 81.6 kg.)
Where it is used
- Strength training. Lifters set protein per kilo and let carbs fuel training.
- Weight change. After a calorie target is chosen, macros keep protein steady while total food goes down or up.
- Meal prep. The per-meal table turns a daily plan into boxes for the week.
- Food label reading. The 4-4-9 rule explains why a label’s calories match its grams.
Common mistakes
- Setting protein as a percent of calories. On a low-calorie diet a percent can give too little protein, and on a high one too much. Per kilo is steadier.
- Using goal weight with a lot of weight to lose. Very high body weight can inflate the protein figure; some people use a goal or adjusted weight. Ask a dietitian.
- Counting fibre and alcohol wrong. Fibre sits inside carbohydrate here, and alcohol (7 calories a gram) is not counted at all.
- Chasing exact grams. Labels and portions are rough; aim for close over the week.
Questions people ask
Is a high-protein diet safe? For most healthy adults, intakes around the tool’s range are common; people with kidney disease should ask their doctor first.
Do meal timings matter? Spreading protein over several meals is a common habit, but the day’s total matters most.
Can I eat more carbs on training days? Yes. Raise the calories for those days and the extra goes to carbs automatically.
Sources
- Energy per gram: 4 calories for protein, 4 for carbohydrate, 9 for fat (Atwater general factors, used on food labels; check the official source for your country's labelling rules).
- Protein goal: Morton and others, A systematic review, meta-analysis and meta-regression of the effect of protein supplementation on resistance training-induced gains in muscle mass and strength in healthy adults, British Journal of Sports Medicine 52, 376 to 384, 2018, https://pmc.ncbi.nlm.nih.gov/articles/PMC5867436/ (checked 2026-12-05): no further gain from supplement protein above about 1.6 g/kg a day (95% interval 1.03 to 2.20). The tool's 1.6 default and the 0.8 to 2.2 range are choices you can change; fibub could not re-open official dietary guideline pages on 2026-12-05 to confirm the recommended intake for non-lifters or the usual 20 to 35% fat range, so check the official source (national dietary guidelines).
- Splitting across meals, the 10% for each snack and rounding to whole grams are fibub's own arithmetic.
If you are an author or publisher and want a credit or a passage changed or removed, tell us and we will act quickly.