ToolJutsu
All tools
Calculator Tools

Macro Calculator

Calculate a daily macronutrient split.

Diet split

Presets are carbohydrate / protein / fat as a share of total calories.

Daily macronutrient split

200 / 150 / 66.7 g

Carbohydrate / protein / fat per day

Breakdown per macronutrient
MacronutrientShareGrams / daykcal / day
Carbohydrate40%200800
Protein30%150600
Fat30%66.7600

Energy density used: carbohydrate 4 kcal/g, protein 4 kcal/g, fat 9 kcal/g.

Processed on your device. We never see your files.

How to use Macro Calculator

What this calculator does

A macro calculator translates a daily calorie target into grams of the three macronutrients that supply energy: carbohydrate, protein and fat. You enter the number of calories you want the day to contain, choose how that energy is divided, and the tool instantly shows how many grams of each macronutrient correspond to that split, along with the calories each one contributes. The word “macro” is short for macronutrient — the nutrients the body needs in large amounts, as opposed to micronutrients such as vitamins and minerals. Everything is computed in your browser as you type.

Why you might need it

Calorie targets are usually expressed as a single number, but food labels and meal plans list grams of carbohydrate, protein and fat. Converting between the two by hand means remembering each macronutrient’s energy value and doing three separate divisions. A macro calculator removes that friction. It is useful when you are reading a recipe and want to know how it fits a particular ratio, when you are comparing how a balanced split differs from a low-carbohydrate one at the same calorie level, or when you simply want to see the gram figures behind a percentage-based plan. Because the presets are explicit, it also makes the arithmetic of popular diet ratios transparent rather than mysterious.

How to use it

  1. Enter your daily calorie target in kilocalories.
  2. Choose a diet split. The presets are Balanced (40% carbohydrate, 30% protein, 30% fat), Low-carb (25/35/40), High-protein (30/40/30) and Keto (5/30/65).
  3. To set your own ratio, pick Custom and type three percentages. They must add up to exactly 100%; a warning appears until they do.
  4. Read the headline split and the per-macronutrient table — grams per day and the calories each macronutrient contributes update immediately.
  5. Use the copy button to save the result, or Reset to return to the defaults.

How it’s calculated

The calculation uses the Atwater general factors, the energy values used on nutrition labels worldwide. Carbohydrate and protein each provide about 4 kilocalories per gram, and fat provides about 9 kilocalories per gram. For each macronutrient the calculator first finds how many calories the split assigns to it — calorie target multiplied by that macronutrient’s percentage, divided by 100. It then converts those calories to grams by dividing by the macronutrient’s energy value. For example, at a 2,000 kcal target with a Balanced 40/30/30 split, carbohydrate receives 800 kcal, which is 800 ÷ 4 = 200 g; protein receives 600 kcal, or 150 g; and fat receives 600 kcal, or 600 ÷ 9 ≈ 66.7 g. The three calorie figures always sum back to the original target, which is why a custom split has to total 100%.

Common pitfalls

A frequent misunderstanding is treating the percentages as a share of grams rather than a share of calories. Because fat carries more than twice the energy per gram, a 30% fat split produces far fewer grams of fat than 30% carbohydrate produces grams of carbohydrate. Another pitfall is rounding: the displayed gram figures are rounded to one decimal place, so adding them back up and multiplying by the energy values may land a calorie or two away from the target — that is rounding, not an error. Finally, alcohol contributes roughly 7 kilocalories per gram and is not a macronutrient tracked here, so calorie targets that include alcoholic drinks will not be fully represented by the three macros.

The macro split is only the second half of the planning arithmetic. The first half is the calorie target itself, which is typically estimated from basal metabolic rate and an activity factor — a separate calorie calculation. Once you have grams, you can compare presets side by side by switching between them with the same calorie target, which makes the trade-off between higher carbohydrate and higher fat easy to see numerically. Because the conversion is pure arithmetic running locally, you can experiment freely, and none of the numbers you enter ever leave your browser.

Frequently asked questions

What do the 4, 4 and 9 numbers mean?
They are the standard Atwater energy values: one gram of carbohydrate yields about 4 kilocalories, one gram of protein about 4 kilocalories, and one gram of fat about 9 kilocalories. The calculator multiplies your calorie target by each macro's percentage, then divides by these figures to get grams.
Why don't my custom percentages add up automatically?
Carbohydrate, protein and fat percentages describe how a fixed calorie total is divided, so they must sum to exactly 100%. When they don't, the calculator shows a warning and pauses the gram output, because any other total would either lose or invent calories.
What is the difference between the preset splits?
Each preset is just a different carbohydrate / protein / fat ratio: Balanced is 40/30/30, Low-carb is 25/35/40, High-protein is 30/40/30 and Keto is 5/30/65. They all consume the same calorie target — only the proportion assigned to each macronutrient changes.
Does the calculator need my weight or activity level?
No. It starts from a calorie target you already have and only converts that number into grams. Working out the calorie target itself is a separate calculation that depends on factors such as body size and activity.
Is my data sent anywhere?
No. Every figure is multiplied and divided by JavaScript running inside your browser. Your calorie target and custom percentages are never uploaded, stored on a server, or shared.

Related tools