Macro Calculator

Convert a daily calorie target into protein, carbohydrate, and fat grams using the standard 4/4/9 kcal-per-gram Atwater factors.

Reviewed by the Calcura editorial team · Last reviewed

Question
How do I calculate daily protein, carbs, and fat from my calorie target?
Answer
Protein and carbs are 4 kcal per gram; fat is 9 kcal per gram (Atwater values). For a 2,000 kcal day at 30% protein / 40% carbs / 30% fat: protein = 2000 × 0.30 / 4 = 150 g; carbs = 2000 × 0.40 / 4 = 200 g; fat = 2000 × 0.30 / 9 = 67 g. The ISSN recommends 1.6-2.2 g protein per kg of body weight for trained individuals.
▸Show formula & caveats
Formula
grams = calories × percent / kcal_per_gram (protein=4, carbs=4, fat=9)
Caveats
  • Fiber is counted within carbs but contributes fewer net calories — labels vary on this.
  • Alcohol is 7 kcal/g and is not macro-tracked here; subtract it from the calorie target separately.
  • Protein needs scale with body weight and training status, not just calorie total.
Fats: 30%

What This Calculator Does

This calculator turns a daily calorie target and a chosen percent split into grams of protein, carbohydrates, and fats. It uses the standard Atwater energy values — 4 kcal/g for protein and carbs, 9 kcal/g for fat — and returns the gram amounts that add up to your calorie total. Use it to translate a nutrition plan into numbers you can track against food labels or a logging app.

When To Use This Calculator

Turning a calorie target into a food plan

You've landed on 2,200 kcal/day from a TDEE calculation and want 30% protein, 40% carbs, 30% fat. The calculator returns 165 g protein, 220 g carbs, 73 g fat — the numbers you can match against nutrition labels.

Comparing two diet styles at the same calories

Same 2,000 kcal target, once at 40/30/30 (higher protein) and once at 20/55/25 (higher carbohydrate). Compare gram totals to see what each plan actually asks you to eat.

Setting a protein floor first, then filling the rest

Start with a protein target (e.g. 1.6 g/kg body weight × 75 kg = 120 g = 480 kcal). Set calories to your total, then adjust the protein percent until the grams match your floor. The remaining calories split between carbs and fats.

Planning a cut, maintenance, or bulk phase

Use a lower calorie total for a deficit, a higher one for a surplus. Keeping protein percentage higher during a cut helps preserve lean mass even as total calories drop.

How It Works

Each macronutrient supplies a known number of calories per gram — the Atwater factors used by the USDA and food labels worldwide. Protein and carbohydrates each provide about 4 kcal/g, and fat provides about 9 kcal/g. The calculator multiplies your calorie total by each percentage, then divides by the energy value of that macro to get grams. Fat percent is whatever is left after protein and carbs — the calculator flags an error if the two entered percentages exceed 100%.

Formula

grams = (total kcal × macro %) ÷ kcal per gram. Protein: ÷4. Carbs: ÷4. Fat: ÷9.

Real-World Example

Scenario

A 75 kg lifter eating 2,400 kcal/day wants 35% protein, 40% carbs, 25% fat during a mild cut.

Calculation

Protein: 2,400 × 0.35 = 840 kcal ÷ 4 = 210 g Carbs: 2,400 × 0.40 = 960 kcal ÷ 4 = 240 g Fat: 2,400 × 0.25 = 600 kcal ÷ 9 ≈ 67 g

Result

Daily target: 210 g protein, 240 g carbs, 67 g fat. Protein works out to 2.8 g/kg body weight, comfortably above the 1.6–2.2 g/kg range commonly cited for resistance-trained athletes during energy restriction.

Common Mistakes to Avoid

Mistake: Setting protein too low during a calorie deficit

Solution: When calories drop, protein needs rise in grams-per-kg terms to preserve lean mass. Aim for roughly 1.6–2.2 g/kg of body weight during a cut, then fit the percentage to that gram total rather than the other way around.

Mistake: Dropping fat below 20% of calories

Solution: Dietary fat supports hormone production and absorption of fat-soluble vitamins (A, D, E, K). Sustained very-low-fat intake can affect these pathways. Keep fat at 20% of calories or above unless a clinician has directed otherwise.

Mistake: Treating percentages as exact

Solution: Food labels round, portions vary, and tracking apps estimate. Hitting macros within ±5–10 g daily — and consistent over the week — is more realistic than aiming for exact grams every meal.

Mistake: Ignoring fiber and micronutrients

Solution: Two meal plans can hit identical macros while differing enormously in fiber, vitamins, and minerals. After the macros are set, build the plan around vegetables, fruits, whole grains, and minimally processed protein sources.

Macro Calculator vs. Related Calculators

When This Isn't the Right Tool

Medical nutrition therapy

Use instead: If you have diabetes, kidney disease, an eating disorder history, or any condition where macro composition is clinically relevant, work with a registered dietitian rather than a generic calculator.

Children and adolescents

Use instead: Growth-phase nutrition is different. Pediatric calorie and protein needs should come from a pediatrician or pediatric dietitian, not from adult macro splits.

Precise energy balance research

Use instead: Atwater factors are averages; actual metabolizable energy varies by food. For research-grade precision, reference USDA FoodData Central entries for each specific food rather than calculated macro percentages.

How to Verify This Calculation

Multiply each gram total back by its kcal-per-gram value and sum: protein_g × 4 + carbs_g × 4 + fat_g × 9 should equal your calorie input within a few calories of rounding. If it doesn't, a percent was entered wrong or fat percent was computed from a protein+carbs total above 100%.

Sources

Reviewed by the Calcura editorial team · Last reviewed

Related Calculators

Frequently Asked Questions