Beginner

Macronutrient Calculator

Turn your daily calorie target into gram goals for carbs, protein, and fat.

kcal

Macro split

Carbohydrate / Protein / Fat
Carbohydrates
250g/day
Carbs
250 g
Protein
100 g
Fat
67 g
grams

Carbohydrates

60%

Protein

24%

Fat

16%

Step by step
  1. 1

    Carbohydrate calories

    2,000 × 50% = 1,000
    50% of daily calories allocated to carbohydrate.
  2. 2

    Carbohydrates in grams

    1,000 ÷ 4 = 250
    Carbohydrate provides 4 kcal per gram (Atwater factor).
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. This is not medical, health or fitness advice; consult a qualified healthcare professional. Read the full disclaimer.
Formula
Carbs (g) = cal·carb% / 4; Protein (g) = cal·protein% / 4; Fat (g) = cal·fat% / 9.
How this is calculated

You supply two inputs: a daily calorie target (kcal) and a macro split. The split sets what percentage of those calories should come from carbohydrate, protein, and fat — for example the balanced preset is 50% carbs, 20% protein, 30% fat. The three percentages always sum to 100%, so the calculator simply partitions your single calorie number into three energy buckets.

Each bucket of calories is then divided by that macronutrient's energy density (its Atwater factor) to convert energy back into mass in grams: carbohydrate and protein both yield about 4 kcal per gram, while fat yields about 9 kcal per gram. So grams = (calories × percent) ÷ 4 for carbs and protein, and ÷ 9 for fat.

The Atwater values are rounded population averages, and results are shown to the nearest gram. The tool assumes your calorie target is already correct — it does not estimate your needs — and it ignores alcohol, fiber adjustments, and individual metabolic variation. Use it to translate a goal, not to define one.

Examples
InputResult
2,000 kcal, balanced (50/20/30)Carbs 250 g, Protein 100 g, Fat 67 g

About this calculator

Macronutrients — carbohydrates, protein, and fat — are the energy-providing components of food. Each gram of carbohydrate or protein supplies about 4 calories, while each gram of fat supplies about 9 calories. By choosing a percentage split and dividing your calorie target by these factors, you can translate a calorie goal into concrete daily gram targets.

Different goals favor different splits. A balanced split suits general health, low-carb plans raise fat and protein, and high-protein splits support muscle retention while dieting or building lean mass. There is no single best ratio; consistency and total calories matter most, so pick a split you can sustain and adjust protein upward if you train hard.

Frequently asked questions

Fat is more energy-dense than carbohydrate or protein, providing about 9 calories per gram versus 4, so it is divided by 9 to get grams.

It depends on your goals and preferences. Higher protein helps preserve muscle; total calories remain the main driver of weight change.

Use a TDEE or daily calorie calculator first, then feed that total here to break it into macronutrient grams.

Also known as

macro calculator
carb protein fat grams
iifym calculator
diet macro split
macros calculator
macro split
protein carbs fat
flexible dieting

APA

TG we-Calculate Editorial Team. (2026). Macronutrient Calculator [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/macro-calculator

Chicago

TG we-Calculate Editorial Team. "Macronutrient Calculator." TG we-Calculate. 2026. https://we-calculate.com/calculator/macro-calculator.

IEEE

TG we-Calculate Editorial Team, "Macronutrient Calculator," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/macro-calculator

BibTeX

@misc{wecalculate_macro_calculator, title = {Macronutrient Calculator}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/macro-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?