CalcCafe

Macro Calculator

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

Reviewed by the CalcCafe editorial team · Last updated 1 July 2026 · How we test our tools

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.
What is the 40-40-20 rule for macros?
A 40-40-20 split means 40% of calories from carbohydrates, 40% from protein, and 20% from fat; it is a popular high-protein, lower-fat ratio for people trying to build or keep muscle while cutting. On 2,000 kcal that is 2000 x 0.40 / 4 = 200 g of carbs, 2000 x 0.40 / 4 = 200 g of protein, and 2000 x 0.20 / 9 = 44 g of fat. It is not one of the three presets here, so choose Custom and enter 40, 40, and 20.
Which macro calculator is most accurate?
Every macro calculator does the same arithmetic: calories x percentage, divided by 4 for protein and carbs or 9 for fat, so the gram outputs are identical for the same inputs. What differs is the calorie number you feed in, which is the estimate that carries the real uncertainty, and the ratio you choose. Accuracy therefore comes from a good calorie estimate (from a BMR or TDEE calculator) and from adjusting the ratio based on how your weight actually changes over a few weeks.
What macros are best for losing belly fat?
No macro ratio targets belly fat specifically; fat is lost from the whole body when you eat fewer calories than you burn, and where it comes off first is largely genetic. A higher-protein split such as the 30/40/30 preset helps because protein keeps you fuller and protects muscle in a deficit, and moderate carbs and fat are then set to fit your calorie target. The calorie deficit does the work; the ratio mainly affects how sustainable the diet feels. This is general information, not personal advice.
Why am I not losing weight eating 1500 calories a day?
The most common reasons are that actual intake is higher than logged (untracked oils, sauces, drinks, and portion estimates add up), that 1,500 kcal is close to maintenance for a smaller or less active person, or that water retention is hiding fat loss on the scale for a few weeks. Weight loss is also not linear, so compare two- to four-week averages rather than daily readings. If intake is truly accurate and the trend is flat for a month, a modest calorie reduction or more activity is the usual next step; persistent unexplained plateaus are worth raising with a doctor. This is general information, not medical advice.

Related calculators

Sources & references

These tools follow our methodology and provide educational estimates only — verify important figures with a qualified professional.