HisabCalc

Macro Calculator

Splits a daily calorie target into protein, carbohydrate, and fat grams from your chosen percentages.

Enter your numbers

Example: 2000

Example: 30

Example: 40

Example: 30

Result
Share on WhatsApp

Figures are computed on your device; nothing is sent anywhere.

Formula

grams = calories * pct / 100 / (4 for protein and carbohydrate, 9 for fat); also returns the calorie share of each macro

How the calculation works

This split takes a total daily calorie target and divides it among protein, carbohydrate, and fat according to the percentage you assign to each macronutrient.

Protein and carbohydrate both provide about 4 kcal per gram while fat provides about 9 kcal per gram, so the grams differ even when two macros share the same percentage.

At 2000 kcal with 30 percent protein, 40 percent carbohydrate, and 30 percent fat you get 600, 800, and 600 calories, which become 150 g, 200 g, and about 66.7 g.

Common mistakes

When to use it

Worked example

At 2000 calories with 30% protein, 40% carbohydrate and 30% fat you get 150 g protein, 200 g carbohydrate and about 66.7 g fat.

Protein (g) 150.00
Carbs (g) 200.00
Fat (g) 66.67
Protein calories 600.00
Carb calories 800.00
Fat calories 600.00

Common questions

Why do equal percentages give different gram amounts?

Protein and carbohydrate supply about 4 kcal per gram while fat supplies about 9 kcal per gram, so a 30% fat share weighs far fewer grams than a 30% protein share.

What happens if my percentages do not add up to 100?

The calculator refuses the input and reports an error, so you should adjust the three values until protein, carbohydrate and fat together total exactly 100%.

Last updated: 2026-10-03