Macronutrient Calculator: How Protein, Fat and Carbs Are Split
By FindMySum · Last reviewed
A macronutrient calculator answers a narrower question than a calorie calculator: once you know roughly how much energy you need, how much of it should come from protein, fat and carbohydrate? This one sets a calorie target from your body size and activity, then fills it in a fixed order. Protein is set first, from your weight. Fat is set second, as a share of calories. Carbohydrate takes whatever is left. That order explains almost everything about how the numbers move when you change your goal, and it is the main thing worth understanding before you use the result.
Step one: a calorie target
The calorie side uses the Mifflin-St Jeor equation for resting energy (BMR), multiplied by an activity factor to estimate total daily energy expenditure (TDEE). The factors run from 1.2 for little or no exercise to 1.9 for hard daily training plus a physical job. Your goal then adds or removes a fixed amount:
| Goal | Calorie change | Protein | Fat share |
|---|---|---|---|
| Lose weight | −500 kcal/day | 2.0 g/kg | 25% |
| Lose weight faster | −750 kcal/day | 2.2 g/kg | 20% |
| Maintain | 0 | 1.6 g/kg | 30% |
| Lean muscle gain | +300 kcal/day | 1.8 g/kg | 25% |
| Faster muscle gain | +500 kcal/day | 2.0 g/kg | 30% |
A weight-loss target never goes below 1,200 kcal a day for women or 1,500 kcal for men, the minimum Harvard Health advises without medical supervision. When TDEE minus the deficit would land under that, the target is set to the minimum and the page says so; the loss will then be slower than the goal's label. If your maintenance is already below the minimum, no deficit is planned at all. The calorie and calorie deficit calculators use the same floor.
The BMR calculator article covers the equation itself in detail; here it is only the starting point.
Step two: the split
Energy is converted to grams with the Atwater general factors: 4 kcal per gram of protein, 4 kcal per gram of carbohydrate and 9 kcal per gram of fat.
- Protein (g) = body weight (kg) × the goal's grams per kilogram. The values sit between 1.6 and 2.2 g/kg. The lower end matches the point at which the Morton 2018 meta-analysis found extra protein stopped adding measurable muscle with resistance training; the upper end is that study's upper confidence limit. Protein is raised in a deficit because a higher intake helps hold on to lean mass while you lose weight.
- Fat (g) = calorie target × fat share ÷ 9. The share is 20 to 30%, inside the National Academies' Acceptable Macronutrient Distribution Range (AMDR) of 20 to 35% for adults.
- Carbohydrate (g) = (calorie target − protein kcal − fat kcal) ÷ 4. No fixed target; it is the remainder.
The AMDR for carbohydrate is 45 to 65% of calories and for protein 10 to 35%. Because carbohydrate is a remainder, it can fall below 45% on the more aggressive goals. The calculator checks both and flags the result when carbohydrate drops under 45% or protein climbs over 35%.
Worked example: the calculator's defaults
The calculator opens with a 30-year-old man, 70 kg and 170 cm, exercising moderately three to five days a week, with the goal of maintaining his weight.
- BMR: 10 × 70 + 6.25 × 170 − 5 × 30 + 5 = 700 + 1,062.5 − 150 + 5 = 1,617.5, shown as 1,618 kcal.
- TDEE: 1,617.5 × 1.55 = 2,507 kcal. Maintenance adds nothing, so the target is 2,507 kcal a day.
- Protein: 70 kg × 1.6 g/kg = 112 g, which is 448 kcal, or 18% of the total.
- Fat: 30% of 2,507 is about 752 kcal; ÷ 9 = 84 g.
- Carbohydrate: 2,507 − 448 − 752 leaves about 1,307 kcal; ÷ 4 = 327 g, or 52% of calories.
The result is 112 g protein (18%), 327 g carbohydrate (52%) and 84 g fat (30%), all three comfortably inside the AMDR.
The same person on the weight-loss goal
Switch only the goal to "lose weight" and the engine returns 2,007 kcal a day: 140 g protein (28%), 236 g carbohydrate (47%) and 56 g fat (25%). Protein went up by 28 g because the goal now uses 2.0 g/kg. Fat dropped by 28 g because both the calories and the fat share fell. Carbohydrate lost 91 g, which is about 364 kcal of the 500 kcal cut. That pattern, where carbohydrate pays for most of a deficit, holds on every goal.
Where a fixed split goes wrong
The calculator is a reasonable default, not a prescription, and its limits are predictable:
- Small, inactive people on aggressive goals. Try a 60 kg, 163 cm, sedentary woman on the faster weight-loss goal. Her TDEE is about 1,569 kcal, and the 750 kcal cut would leave 819 kcal, so the target is raised to the 1,200 kcal minimum: a deficit of about 370 kcal, half the goal's. Even then, 2.2 g/kg of protein is 132 g, 44% of calories, leaving 108 g of carbohydrate (36%), so the AMDR warning shows: carbohydrate under its range and protein over it. A fixed deficit is simply too large for a small energy budget. A percentage deficit, or a smaller goal, works better.
- High body fat. Protein per kilogram of total weight overstates needs when much of that weight is fat tissue.
- Training style. Endurance athletes logging long sessions usually need more carbohydrate than a 52% share gives them on hard days, while someone lifting three times a week may do well with less.
- Activity factors. Picking "moderate" when your week is closer to "light" overestimates calories by about 280 kcal a day for the default person (1,617.5 × 0.175). Most people overrate their activity.
None of these is a flaw in the arithmetic. They come from applying one rule to very different bodies, which is why the output should be adjusted against real results.
The keto split
The macro split menu has a second option for people following a ketogenic diet. The keto split keeps the same calorie target and the same protein, but changes the order: carbohydrate is fixed first, at the grams you choose between 20 and 50 a day (the range StatPearls gives for a ketogenic diet), and fat takes everything that is left. For the default 70 kg man at maintenance, 2,507 kcal a day, that is 112 g of protein, 25 g of carbohydrate and 218 g of fat: about 18% of calories from protein, 4% from carbohydrate and 78% from fat. On the weight-loss goal the fat share falls, because protein stays the same while calories drop.
The preset counts total carbohydrate as entered; if you track net carbohydrate (total minus fibre and some sugar alcohols), see the net carbs calculator. It is not a recommendation: a ketogenic split is well outside the National Academies ranges, it can interact with diabetes medication, and people with kidney or liver disease or who are pregnant should not start it without medical advice. Therapeutic ketogenic diets set fat by a weight ratio (4:1 or 3:1) under a clinical team and are not modelled.
Using the result
Eat close to the targets for two to four weeks, weigh yourself several mornings a week, and compare the average with your goal. If weight is moving faster or slower than planned, change calories first and leave protein where it is. The protein intake calculator gives a range rather than a single figure if you want to fine-tune that number, the calorie deficit calculator lets you set a deficit by timeline instead of a fixed amount, and the calorie burn calculator estimates what a given workout adds to your day.
The targets here are general estimates for healthy adults. They are not medical or nutrition advice and do not account for diabetes, kidney disease, pregnancy, eating disorders or medications that affect appetite or metabolism. If any of those apply, or you are planning a large change, ask a registered dietitian or your doctor to set numbers for you.
More questions
Why is protein set in grams per kilogram but fat set as a percentage?
Protein needs track the amount of lean tissue you carry, so body weight is a better guide than calorie intake: a 90 kg person eating 2,000 kcal needs more protein than a 55 kg person eating the same. Fat is mostly an energy and hormone-support nutrient, and the National Academies express its healthy range as a share of calories. Each nutrient is set in the unit its evidence uses.
Why did my carbohydrate drop so sharply when I chose a weight-loss goal?
Carbohydrate is the remainder. When calories fall, protein actually rises (it is tied to your weight and the goal raises the grams per kilogram), and fat falls only in proportion to calories. Everything that is left is carbohydrate, so it absorbs almost the entire deficit. With the defaults, moving from maintenance to the standard weight-loss goal cuts carbohydrate from 327 g to 236 g.
Can I swap carbohydrate for fat if I prefer a lower-carb diet?
Yes, as long as you keep total calories and protein the same. Every 9 g of carbohydrate you remove frees about 36 kcal, which is 4 g of fat. The balanced split keeps fat at 20 to 30% of calories to stay inside the National Academies range. For a very low-carbohydrate diet, choose the keto split instead: carbohydrate is fixed at 20 to 50 g a day and fat takes the rest. Going that low in carbohydrate is a choice to make with a doctor or dietitian.
Is the keto split a recommendation?
No. It is a preset for people who have already decided to follow a ketogenic diet, so they can see the grams that fit their calories. It sits far outside the National Academies ranges (45 to 65% carbohydrate, 20 to 35% fat), and the page says so. Medical ketogenic diets, such as the 4:1 diets used for epilepsy, are planned and monitored by a clinical team and are not modelled here.
Should I enter my current weight or my goal weight?
Enter your current weight. The Mifflin-St Jeor equation was fitted to measured body weight, and the protein target is meant to support the tissue you have now. If you carry a lot of body fat, the protein figure will run high, because fat tissue needs little protein; some coaches use a goal or adjusted weight for protein in that case.
How do I turn the grams into meals?
Divide each daily figure by the number of meals you usually eat, then check food labels, which list grams per serving. With the default 112 g of protein over four meals, that is about 28 g per meal, roughly a chicken breast, a cup of Greek yogurt with some nuts, or a tin of tuna on toast. Precision to the gram is not needed; weekly averages are what count.
Does alcohol count towards my macros?
Alcohol supplies about 7 kcal per gram but is not protein, fat or carbohydrate, so the calculator leaves it out. If you drink, those calories come out of your total. Most tracking apps take them from carbohydrate and fat, which keeps protein intact.
Sources
- Dietary Reference Intakes for Energy, Carbohydrate, Fiber, Fat, Fatty Acids, Cholesterol, Protein, and Amino Acids (2005), National Academies Press
- Mifflin MD et al. A new predictive equation for resting energy expenditure in healthy individuals. Am J Clin Nutr 1990;51(2):241-247
- Ketogenic Diet, StatPearls (NCBI Bookshelf NBK499830)
- Morton RW et al. 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. Br J Sports Med 2018;52:376-384
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.