Turn a daily calorie target into grams of carbohydrate, protein, and fat by multiplying each macro's percentage by the target and dividing by its Atwater factor: 4 kcal/g for carbs, 4 for protein, and 9 for fat. That single formula — calories × percent ÷ kcal-per-gram — is what every macro calculator runs, and it is also what you can do on paper. The result is three numbers you can weigh, log, and turn into actual food, which is the point of moving past abstract kilocalories. On a 1,500 kcal target with a 40/30/30 split, for example, you get 150 g of carbs, roughly 113 g of protein, and 50 g of fat, because 1,500 × 0.40 ÷ 4 = 150, 1,500 × 0.30 ÷ 4 ≈ 112.5, and 1,500 × 0.30 ÷ 9 = 50. The 4/4/9 factors are not arbitrary — they come from the Atwater system, the physiological energy-conversion factors printed on nutrition labels worldwide — so the same math applies whether you use a free online tool, a phone app, or a spreadsheet. A macro calculator simply automates the multiplications and tracks the running percentage total so a typo cannot break the result.

The Atwater 4/4/9 method behind every macro split
Behind every macro split is one conversion table with three rows: carbohydrate at 4 kilocalories per gram, protein at 4 kilocalories per gram, and fat at 9 kilocalories per gram. These are the Atwater factors, a set of physiological averages the food industry adopted in the late 19th century and that nutrition labels still print today. The "carbs 4, protein 4, fat 9" rule of thumb that circulates in fitness writing is just a restatement of the same numbers, and it is exactly the constants the macro calculator plugs into each computation.
The math runs once per macro. Take your daily calorie target, multiply it by the percent allocated to that macro (as a decimal), and divide by that macro's Atwater factor. Carbs and protein always divide by 4, so a 30% carb share and a 30% protein share of the same calorie target produce identical gram counts. Fat always divides by 9, so the same 30% share produces a smaller gram number. The three percentages you type in must add up to 100 (within a small rounding tolerance), or the displayed gram counts will not correspond to a real calorie budget; the running total in the tool tells you immediately whether they do.
How to calculate macros for weight loss
Once you have a daily calorie target that matches your weight-loss plan, the rest is mechanical:
- Enter the daily calorie target in kilocalories (for example, 1,500, 1,800, or 2,000).
- Pick a split preset — Balanced (40/30/30), High-protein (40/40/20), or Low-carb (20/40/40) — or type your own Carbs, Protein, and Fat percentages that add up to 100.
- Read the carb, protein, and fat grams per day, which update instantly as you edit any field, calculated with the Atwater 4/4/9 factors.
Edit any percentage and the three gram numbers recompute at once, so you can compare presets side by side without retyping the calorie target. A small status indicator confirms that your three percentages still add up to 100; if they don't, the gram display does not match your calorie budget, so you can correct the split. Everything runs locally in your browser, meaning nothing you type is uploaded, which keeps day-to-day use private.
Three preset splits the calculator offers
You do not need to invent a ratio from scratch. The macro calculator ships with three preset splits you can use as starting points before customizing:
| Preset | Carbs % | Protein % | Fat % |
|---|---|---|---|
| Balanced | 40 | 30 | 30 |
| High-protein | 40 | 40 | 20 |
| Low-carb | 20 | 40 | 40 |
The Atwater factors guarantee one thing across all three presets: with the same calorie target, the total energy is identical — only the distribution changes. Selecting a preset is therefore about trading off carb and fat grams against protein grams, not about raising or lowering overall intake. Many readers use the presets as benchmarks to compare against a custom split they read about in a plan, because the tool updates the gram counts in real time as the percentages move.
Anyone matching a prescribed plan from a coach or a diet book can also punch in the published percentages directly; the calculator treats each percent field as editable the moment you click it. The output is the same grams the plan describes, just delivered without the manual arithmetic.
Why the fat grams are always the smallest
On any 30% calorie share, the calculator hands out roughly 2.25× fewer grams of fat than it does of carbs or protein. The cause is the kcal-per-gram factor: fat is more energy-dense than the other two, so the same calorie share converts into a smaller gram count. Stated another way, 9 kcal/g is roughly 2.25× the 4 kcal/g used for carbs and protein, so dividing by 9 (instead of 4) compresses the gram output. A 30% fat share of 1,500 kcal yields about 50 g of fat; a 30% carb share of the same target yields roughly 113 g; the calculator makes that side-by-side difference visible at a glance.
The visual asymmetry often surprises readers who only think in percentages. Two plans that give fat the same 30% share but differ on the carb–protein split will still show very different fat grams only if the absolute calorie target moves — fat grams track the absolute kcal × percent ÷ 9, not the percent alone. Changing the percent does change fat grams (a 20% fat share of 1,500 kcal yields about 33 g, versus 50 g at 30%), but never enough to match the carb or protein gram counts on equal shares. The tool is essentially making the Atwater asymmetry visible at a glance.
From total daily energy to macro grams
The macro calculator is the second half of a two-step workflow. Step one is choosing a daily calorie target that fits your weight-loss pace — a modest deficit from your maintenance energy. Step two is splitting that target into grams, which is what the macro calculator does. Readers who already have a target from a diet plan, a coach, or an existing app can plug straight into the macro calculator and stop here.
Readers who do not yet have a calorie target can derive one from their total daily energy expenditure (TDEE), and they have two reasonable starting points. A calorie calculator can estimate TDEE in one step from age, sex, height, weight, and activity level, then subtract the deficit your plan calls for. A BMR calculator gives the smaller resting-energy number, useful as a sanity floor below which most plans should not push the intake. For a deeper walkthrough of how resting metabolism sits inside a weight-loss plan, see our guide on calculating BMR for a weight-loss plan. Both numbers become the input the macro calculator needs — once you have the kilocalories, the grams fall out of the same 4/4/9 formula every time.
Limits and assumptions of the macro calculator
- It is a splitter, not a needs estimator. It does not decide how many calories you should eat; it only distributes a calorie target you already have.
- It models only the three energy-yielding macronutrients. Alcohol contributes about 7 kcal per gram and is not separately tracked; dietary fiber is not modeled separately.
- Micronutrients carry no calories and therefore do not appear in the output. A plan that meets your macro grams can still be nutritionally thin, which is the job of food choices and variety to solve.
- The preset ratios (40/30/30, 40/40/20, 20/40/40) are general starting points, not individualized targets. A registered dietitian or doctor can tailor ratios to your training load, medical history, and specific weight-loss pace.
- All computation stays in your browser; the tool does not upload your calorie target or percentages, so you can experiment freely with custom splits.
If you're weighing options, Metal Weight Calculator: How Volume and Density Combine covers this in detail.