Macro Calculator
Enter the daily calories you already aim for, choose a macro split such as 20/50/30, and get protein, carbohydrate and fat as a share of calories, in kcal and in grams — plus grams per kilogram of body weight if you add your weight.
Not sure how much to eat? Estimate your daily calories with the Calorie Calculator or the TDEE Calculator first, then split them here.
Protein 20% / carbs 50% / fat 30% — the everyday maintenance split, inside the AMDR ranges.
Add it to also get grams per kilogram of body weight (g/kg) for each macronutrient — handy for checking protein against a bulking or cutting target.
| Macronutrient | Share | Calories | Grams |
|---|---|---|---|
| Protein (4 kcal/g) | 20% | 400 kcal | 100 g |
| Carbohydrate (4 kcal/g) | 50% | 1000 kcal | 250 g |
| Fat (9 kcal/g) | 30% | 600 kcal | 67 g |
On the Balanced split, 2000 kcal works out to 100 g of protein, 250 g of carbs and 67 g of fat.
Grams and calories are rounded separately, so grams × kcal/g can add up to a few kcal more or less than your target — that is normal rounding. A macro split is the starting point of a diet, not the whole of it; adjust it around your food choices, your training and how you respond.
How to use
- Enter your daily calorie target: Type the kcal you are aiming for into Daily calorie target. Anything from 500 to 10,000 kcal a day is accepted.
- Choose a macro split: In Macro split, pick Balanced, High protein, Low carb, the Low fat, high carb preset or Keto — or choose Custom and type your own three percentages.
- Add your body weight (optional): Fill in Body weight (optional) in kg to get a grams-per-kilogram (g/kg) figure next to each macronutrient.
- Read the table: It updates as you type: share of calories, kcal and grams for protein, carbohydrate and fat, plus a note when the split sits outside the AMDR ranges.
How a macro calculator turns calories into grams
macro kcal = calories × share% ÷ 100 protein g = protein kcal ÷ 4 carb g = carb kcal ÷ 4 fat g = fat kcal ÷ 9
A macro calculator starts from a calorie target you already have and splits it three ways. Each macronutrient takes its share of the calories, and that share is divided by how much energy a gram of it carries: 4 kcal per gram for protein, 4 for carbohydrate and 9 for fat. On 2,000 kcal with the Balanced split (20% P / 50% C / 30% F) that is 400 kcal of protein (100 g), 1,000 kcal of carbs (250 g) and 600 kcal of fat (67 g).
Those 4/4/9 numbers are the Atwater general factors, and nothing in the form changes them — no setting adjusts the energy per gram for a particular food. Alcohol, at roughly 7 kcal per gram, is not one of the three macros and is not part of the split, so drinks have to be taken out of the calorie target before you type it in.
Grams and calories are each rounded to a whole number separately, so adding the grams back up does not always land on your target. At 2,000 kcal on Balanced, 100 × 4 + 250 × 4 + 67 × 9 = 2,003 kcal, three over; Low fat, high carb at the same target comes to 1,996 kcal, four under; and 500 kcal on Balanced was the widest gap measured, five over. It can also be exact — 1,800 kcal on Balanced gives 90 g, 225 g and 60 g, which adds straight back to 1,800 kcal. A few kcal either way is rounding, not a mistake in your target.
Which macro split should you choose?
Choose one of five fixed splits, or use Custom to enter your own percentages. The table compares their outputs at 2000 kcal/day.
Three of those presets stay inside the Acceptable Macronutrient Distribution Range (AMDR) from the Dietary Reference Intakes — carbohydrate 45–65%, fat 20–35%, protein 10–35% of total calories. Balanced, High protein and the Low fat, high carb preset all qualify, two of them only just: High protein puts carbs exactly on the 45% floor and the low-fat preset puts fat exactly on the 20% floor, and the check counts the endpoints as inside. Low carb (carbs at 25%, fat at 40%) and Keto (carbs at 5%, fat at 75%) fall outside, so the page adds a note under the table. The note is only a note: the targets are still calculated and shown.
The check runs on the percentages actually in play rather than on the preset name, so a Custom split is judged the same way — all three have to land in their range for the note to stay away. Custom is also the only way to change a ratio, because the five presets cannot be nudged: if you want 25/45/30 you type it in yourself. Each share must be above 0 and no more than 100; invalid fields show a field-specific error. Once all three fields are valid, a total other than 100% shows your current total instead of results. The prefilled Custom values are 30/40/30, which is itself outside the AMDR because carbohydrate sits at 40%, below the 45% floor — so the note appears as soon as you switch to Custom.
| Split | Protein–carbs–fat | Grams at 2000 kcal | Within AMDR |
|---|---|---|---|
| Balanced | 20 / 50 / 30% | 100 g protein · 250 g carbs · 67 g fat | Yes |
| High protein | 30 / 45 / 25% | 150 g protein · 225 g carbs · 56 g fat | Yes |
| Low carb | 35 / 25 / 40% | 175 g protein · 125 g carbs · 89 g fat | No |
| Low fat, high carb | 20 / 60 / 20% | 100 g protein · 300 g carbs · 44 g fat | Yes |
| Keto | 20 / 5 / 75% | 100 g protein · 25 g carbs · 167 g fat | No |
A fixed worked example at a 2000 kcal target; the table inside the calculator follows the target you type.
Protein per kilogram of body weight (g/kg)
Body weight is optional and only affects one thing: fill it in and the table gains a g/kg figure, to two decimals, for all three macronutrients. On a 2,400 kcal target with High protein at 80 kg, protein is 180 g, or 2.25 g/kg, with carbs at 3.38 g/kg and fat at 0.83 g/kg. The g/kg figures come from the unrounded grams, so dividing the rounded grams in the table by your weight yourself can differ in the second decimal.
Under the table, the protein figure gets one line of context: below 1.2 g/kg it is flagged as on the low side, above 2.2 g/kg as more than most people need, and anything in between as the range active people usually work in. At 1,600 kcal on Balanced with a body weight of 90 kg, protein is 80 g, or 0.89 g/kg, so the low note appears. Weight changes neither the grams nor the kcal in the table — only the g/kg column and that line. The field takes kilograms only — there is no pounds or ounces option, and the targets come out in grams.
What this tool does not do
It does not work out how many calories you should eat. Here calories are an input, not a result, and the same calorie target with the same split gives the same grams for everybody — there is no sex, age, height or activity input to change it. Estimate the calories first with the Calorie Calculator, the TDEE Calculator or the BMR Calculator, then come back and split them.
It also stops at grams. There is no food database, so you get "150 g of protein", not a meal plan; no breakfast/lunch/dinner breakdown and no separate training-day and rest-day ratios; and nothing on fibre, sugar, sodium, cholesterol or micronutrients. The AMDR note is a dietary-guideline range, not medical advice about your own diet — the tool does not judge whether a split suits you, and it does not block extreme ones.
Everything is worked out in your browser while you type, which is also why there is no Calculate button. Nothing you enter is sent anywhere or stored, and reloading the page puts it back to 2,000 kcal, Balanced and an empty weight box. Two input limits are worth knowing: calories are accepted from 500 to 10,000 kcal a day and body weight from 2 to 500 kg, both ends included. A number typed as 1,500 or 1.500 is read as 1500, so a group separator is safe; but 70.123 is read as 70123, which is then rejected as out of range rather than treated as 70.123.
Need a calorie target first? Use Calorie Calculator, then enter the result here.
How this tool is checked
- The logic behind this tool is covered by 22 automated test cases (hand-checked examples, edge cases and invalid input), and they run again before every release.
- Formulas, figures and definitions are checked against the sources listed at the end of this page.
Frequently asked questions
- How do I calculate my macros in grams?
- Multiply your daily calories by each macro's percentage, then divide by 4 kcal/g for protein and carbs and by 9 kcal/g for fat. At 2,000 kcal on a 30/40/30 split that is 150 g protein, 200 g carbs and 67 g fat.
- Does this macro calculator tell me how many calories to eat?
- No — the calorie figure is something you type in. Work it out first with the Calorie Calculator, the TDEE Calculator or the BMR Calculator, then enter that number here to split it into protein, carbs and fat.
- Why don't my macro grams add back up to my calorie target?
- Because grams and calories are rounded separately. At 2,000 kcal on Balanced the grams multiply back to 2,003 kcal and on Low fat, high carb to 1,996 kcal; at 1,800 kcal on Balanced they land exactly on target.
- Can I use this as a keto macro calculator?
- Yes. The Keto preset is 20% protein, 5% carbs and 75% fat, which at 2,000 kcal means 100 g protein, 25 g carbs and 167 g fat. Carbs and fat fall outside the AMDR ranges there, so a note appears below the table, but the targets are still shown.
- How does the calculator show protein per kilogram?
- Add your body weight and the table shows g/kg for each macronutrient. The page marks protein under 1.2 g/kg as low and over 2.2 g/kg as more than most people need; 2,400 kcal on High protein at 80 kg works out to 2.25 g/kg.
- Can I set my own macro percentages instead of a preset?
- Yes, choose Custom and enter three percentages above 0 and at most 100. Invalid fields show a field-specific error; if the valid percentages do not total 100%, the page shows their current total instead of results. Fixed presets cannot be edited.
- Which macro split is best for losing weight?
- This calculator does not select a weight-loss split for you. At 2000 kcal, Balanced provides 100 g protein and High protein provides 150 g; both are within AMDR. Set your calorie target first, then compare the gram targets.
Related tools
Cite this tool
Using a result in a report, paper or assignment? Copy a ready-made reference.
Gingertool. (2026). Macro Calculator [Online tool]. Retrieved November 30, 2026, from https://gingertool.com/en/health/macro-calculator/
“Macro Calculator.” Gingertool, November 30, 2026, https://gingertool.com/en/health/macro-calculator/. Accessed November 30, 2026.
@misc{gingertool-macros,
author = {{Gingertool}},
title = {Macro Calculator},
year = {2026},
url = {https://gingertool.com/en/health/macro-calculator/},
note = {Accessed: 2026-11-30}
}