CalcCafe

Macro Calculator

Split your total daily calories into grams of protein, carbs, and fat based on your chosen macro ratio.

Daily macro targets
-
-
Protein
-
Carbs
-
Fat
-

Macros use 4 kcal/g for protein and carbs, 9 kcal/g for fat. Custom percentages should total 100%.

Example

With 2,000 kcal/day on a balanced 40/30/30 split (carbs/protein/fat):

Protein: 2000 x 0.30 / 4 = 150 g
Carbs:  2000 x 0.40 / 4 = 200 g
Fat:   2000 x 0.30 / 9 = 67 g

How it works

Pick a preset macro split (or set custom percentages), enter your daily calories, and the tool divides the calories by each macro's energy value (4 kcal/g protein, 4 kcal/g carbs, 9 kcal/g fat).

Good to know

The Macro Calculator converts a single number you already know — your total daily calorie target — into concrete daily gram goals for protein, carbohydrates, and fat. It is built for people who track their food and want to translate a calorie number into something they can actually log in a food diary, plan meals around, or compare against a nutrition label. Pick a preset split (balanced 40/30/30, low-carb 20/40/40, or high-protein 30/40/30) or switch to Custom to enter your own percentages.

You'd typically reach for this after you've estimated your daily calories elsewhere (for example from a maintenance or weight-loss calorie figure) and now need a per-macro breakdown to follow. It's useful when starting a new eating pattern, dialing in a training diet, or simply checking whether the meals you already eat fit a ratio you're aiming for. Because everything runs in your browser, you can experiment with different calorie levels and ratios instantly without anything being saved or sent.

Read the result as three independent gram targets plus a kcal/day badge confirming the calorie figure used. Remember the units differ: protein and carb grams are calculated at 4 kcal per gram, while fat is at 9 kcal per gram, which is why your fat gram number looks small even when fat is a large slice of calories. If you choose Custom and your three percentages don't add to 100, the tool still calculates grams from each percentage exactly as typed and flags the mismatch in the note line — so always sanity-check that your custom split totals 100%.

A practical tip: the grams are rounded for readability, so adding protein-kcal + carb-kcal + fat-kcal back up may land a few calories off your input — that's rounding, not an error. Use the output as planning targets rather than exact prescriptions, and keep in mind these are general estimates, not personalized nutrition guidance.

Frequently asked questions

Why is fat divided by 9 instead of 4?
Fat contains about 9 calories per gram, while protein and carbohydrates each contain about 4 calories per gram. Using 9 for fat is why a smaller number of fat grams covers the same calorie share as a larger number of carb or protein grams.
What do the preset ratios mean?
Each preset is a percentage of total calories from carbs/protein/fat: balanced is 40/30/30, low-carb is 20/40/40, and high-protein is 30/40/30. Choose Custom to enter your own percentages, which should add up to 100%.
Is my data uploaded anywhere?
No — this calculator runs entirely in your browser; nothing is uploaded.
Is this a substitute for medical advice?
No. These are educational estimates — consult a qualified health professional for medical decisions.

People also ask

How do I calculate macros from my calories by hand?
Multiply your total daily calories by each macro's percentage, then divide by that macro's energy value: 4 kcal per gram for protein and carbs, 9 kcal per gram for fat. For example, 30% protein of 2,000 kcal is 2000 x 0.30 / 4 = 150 g protein.
What is a good macro ratio for weight loss?
There is no single best ratio, and outcomes depend mainly on total calories rather than the exact split. Higher-protein ratios are often discussed for satiety and muscle retention, but what's appropriate varies by individual; consult a qualified professional for personalized targets.
Does this calculator set my calorie target for me?
No. You enter your own total daily calories, and the tool only divides that number into protein, carb, and fat grams based on the ratio you choose. It does not estimate your calorie needs.
How many grams of protein are in 2,000 calories on a 30% protein split?
About 150 grams. The math is 2000 x 0.30 / 4 = 150, since protein provides roughly 4 calories per gram.
Why don't my macro grams add back up to my exact calorie total?
The gram values are rounded to whole numbers for readability, so converting them back to calories can differ from your input by a few kcal. This is normal rounding behavior, not a calculation error.
Can I use custom macro percentages instead of the presets?
Yes. Selecting Custom reveals fields for your own carb, protein, and fat percentages. They should add up to 100%, and if they don't the tool still calculates grams from each percentage as entered while showing a notice.
What's the difference between net carbs and total carbs for macro tracking?
Total carbs count all carbohydrate grams, while net carbs subtract fiber (and sometimes sugar alcohols). This calculator works from total carbohydrate calories at 4 kcal per gram and does not separate fiber out.
Should fat really be a small number of grams compared to carbs?
Yes, that's expected. Fat carries about 9 calories per gram versus 4 for carbs and protein, so the same share of calories produces fewer fat grams than carb or protein grams.

Related calculators