Health & Fitness

Macro calculator

This macro calculator turns your daily calorie target into grams of protein, carbs, and fat: grams = calories × percentage ÷ 4 for protein and carbs, or ÷ 9 for fat, so 2,000 kcal on a balanced 30 / 40 / 30 split is 150 g protein, 200 g carbs, and 67 g fat. Sometimes called a protein carbs fat calculator or macronutrient calculator, it works out your grams per day from a split you choose from five presets, including keto, or set yourself.

Macro calculator bar showing protein, carbs, and fat split
How this macro calculator visualizes your protein, carb, and fat split.
Don’t know your daily calorie target yet? Calculate that first with the Calorie Calculator or TDEE Calculator, and enter the result below.

Enter your details

The percentages don’t add up to 100%.
Enter your details

How to use this macro calculator

  1. Enter your daily calorie target. If you don’t have one yet, the Calorie or TDEE calculator linked above will give you a starting number to calculate macros from.
  2. Pick a preset split, or choose “Custom.” Selecting a preset fills in the three percentage fields for you; editing any percentage field automatically switches the dropdown to Custom.
  3. Press Calculate. You’ll see grams and calories for protein, carbs, and fat, plus a visual bar showing the split. If your custom percentages don’t add up to exactly 100%, the macro calculator shows the current total instead of results, so you can correct one of the fields.

How are macros calculated?

The macro calculator uses the general Atwater energy factors listed by the FAO report on food energy conversion factors: protein and carbs each provide 4 kcal per gram, fat provides 9 kcal per gram. Based on your total calorie target and the desired percentage per macro, the number of calories per macro is calculated first, then divided by those factors to get grams.

grams = calorie target × percentage ÷ kcal per gram
1 g protein = 4 kcal  ·  1 g carbs = 4 kcal  ·  1 g fat = 9 kcal

Worked examples

Both examples below use a 2,200 kcal daily target, matching the exact math this macro calculator runs in your browser.

Balanced split (30 / 40 / 30)

MacroCaloriesGrams
Protein660 kcal165 g
Carbs880 kcal220 g
Fat660 kcal73 g

Keto split (20 / 5 / 75)

MacroCaloriesGrams
Protein440 kcal110 g
Carbs110 kcal28 g
Fat1,650 kcal183 g

Common macro splits

SplitProteinCarbsFatCharacteristic
Balanced30%40%30%General starting point for most people
Low-carb35%20%45%Fewer carbs, more fat and protein
Keto20%5%75%Very low carb, aimed at ketosis
High-protein40%35%25%Popular for muscle building and strength training
Low-fat30%55%15%Emphasis on carbs, low fat

For context, the U.S. Dietary Guidelines’ Acceptable Macronutrient Distribution Range for the general adult population is roughly 10–35% of calories from protein, 45–65% from carbs, and 20–35% from fat. Several presets above, especially low-carb and keto, are deliberately built outside that general-population range because they’re designed for a specific goal rather than everyday eating — that’s expected, not a sign anything is wrong with the split.

Macro calculator vs. calorie counting alone

Counting total calories tells you whether you’re in a surplus or deficit, but says nothing about where those calories come from. A macro calculator adds a second layer: two people eating the same 2,200 kcal can end up with very different results depending on whether that’s mostly protein and fat or mostly carbs, which matters for muscle retention, satiety, and how a specific approach like keto is defined in the first place.

Macros for common calorie targets

Grams of protein / carbs / fat per day for three of the presets, rounded to whole grams the same way the macro calculator rounds them.

Calories per dayBalanced (30 / 40 / 30)High-protein (40 / 35 / 25)Keto (20 / 5 / 75)
1,200 kcal90 / 120 / 40 g120 / 105 / 33 g60 / 15 / 100 g
1,500 kcal113 / 150 / 50 g150 / 131 / 42 g75 / 19 / 125 g
1,800 kcal135 / 180 / 60 g180 / 158 / 50 g90 / 23 / 150 g
2,000 kcal150 / 200 / 67 g200 / 175 / 56 g100 / 25 / 167 g
2,200 kcal165 / 220 / 73 g220 / 193 / 61 g110 / 28 / 183 g
2,500 kcal188 / 250 / 83 g250 / 219 / 69 g125 / 31 / 208 g
3,000 kcal225 / 300 / 100 g300 / 263 / 83 g150 / 38 / 250 g

How to calculate macros for weight loss

Start from the calories you burn per day. The BMR Calculator estimates your resting burn and the TDEE Calculator adds your activity. Then eat somewhat less than that and split the result into macros.

Example: an 80 kg (about 176 lb) person has a TDEE of 2,400 kcal and sets a 500 kcal deficit, so the target is 1,900 kcal. On the balanced split the macro calculator gives 1,900 × 0.30 ÷ 4 = 142.5, shown as 143 g protein; 1,900 × 0.40 ÷ 4 = 190 g carbs; and 1,900 × 0.30 ÷ 9 = 63 g fat.

Then check protein in grams per kilogram of body weight, because a fixed percentage gives fewer grams as calories go down: 142.5 ÷ 80 ≈ 1.8 g/kg. The U.S. RDA for adults is 0.8 g/kg, and the International Society of Sports Nutrition suggests 1.4–2.0 g/kg a day for most people who exercise, so this target sits in a sensible range. If yours comes out low, switch to the high-protein preset or raise the protein percentage in Custom. The Weight Converter turns pounds into kilograms, and if you carry a lot of body fat, some people base protein on a goal weight from the Ideal Weight Calculator instead of current weight.

Common mistakes when counting macros

Confusing percent with grams. 30 % protein at 2,000 kcal is 150 g, not 30 g. Underestimating fat. At 9 kcal per gram, an extra 10 g of oil or butter adds 90 kcal, more than twice as much as 10 g of protein or carbs. Mixing total and net carbs. Decide whether you count total carbs or net carbs (total minus fiber) and stick to one; at a keto target of 25 g, the fiber in a few servings of vegetables or nuts can be a large share of it. Forgetting alcohol. At 7 kcal per gram it counts toward your calories but fills none of the three macro targets. Weighing food inconsistently. Meat and rice change weight when cooked, so weigh food the same way, raw or cooked, as the nutrition data you use. Never updating the numbers. Recalculate when your weight or activity changes noticeably, because your calorie target and therefore every gram figure moves with it.

Frequently asked questions

Which macro split is best?

There is no universal “best” split — it depends on your goal, preferences, and how your body responds to different eating patterns. A balanced split is a good starting point for most people.

Do I need to hit the percentages exactly?

No, the numbers from a macro calculator are a guideline. Small day-to-day variation has little impact; what matters most is the average over a longer period.

How many macros do I need for 2,000 calories?

On the balanced 30 / 40 / 30 split, 2,000 kcal is 150 g protein, 200 g carbs, and 67 g fat. The high-protein split (40 / 35 / 25) gives 200 g, 175 g, and 56 g, and the keto split (20 / 5 / 75) gives 100 g, 25 g, and 167 g.

How do I calculate macros for weight loss?

Estimate your daily calorie burn with a TDEE calculator, subtract a moderate deficit such as 500 kcal, and enter that target in the macro calculator. Then check that protein lands around 1.4–2.0 g per kg of body weight if you exercise; at 1,900 kcal on the balanced split that is 143 g, or about 1.8 g/kg for an 80 kg person.

How many grams of carbs is keto?

The Keto preset puts carbs at 5 % of calories, which is 25 g at 2,000 kcal and 23 g at 1,800 kcal. Many ketogenic plans set a daily carb limit of roughly 20 to 50 g, so check the gram figure, not only the percentage.

Why do protein and carbs provide the same calories per gram, but not fat?

These are the general Atwater factors, average energy values per gram used on food labels and in nutrition tables: protein and carbs each provide about 4 kcal per gram, while fat, at about 9 kcal per gram, contains more than twice as much energy. They are averages, so the energy you absorb from a specific food can differ slightly. Alcohol (7 kcal per gram) and fiber are not part of the three macros in this macro calculator.

Is this a reliable keto macro calculator specifically?

The Keto preset (20/5/75) reflects the very-low-carb ratio most keto plans target, and the underlying gram math is the same regardless of preset. Whether that specific split gets you into ketosis still depends on your total carb intake in grams, not just the percentage, so people on a strict ketogenic diet often track carb grams directly alongside this calculator.

This calculator provides a general guideline, not medical or nutritional advice. If you have concerns about your diet, consult a doctor or dietitian. Back to CalcSwiftly home.

Reviewed by: CalcSwiftly · Last reviewed: