Skip to content

Macro Calculator

Split any daily calorie target into carb, protein, and fat grams using the Atwater 4/4/9 kcal/g factors.

Privacy: your files never leave your device. All processing happens locally in your browser.

How to use

  1. 1.Enter your daily calorie target in kilocalories.
  2. 2.Pick a split preset (Balanced, High-protein, or Low-carb) or type custom Carbs, Protein, and Fat percentages that add up to 100%.
  3. 3.Read the carb, protein, and fat grams per day, calculated instantly with the Atwater 4/4/9 factors.

About Macro Calculator

The macro calculator converts a daily calorie target into grams of carbohydrate, protein, and fat, so you can turn an abstract kcal number into a concrete plate. Enter the calories you want to eat each day, choose a split preset β€” Balanced 40/30/30, High-protein 40/40/20, or Low-carb 20/40/40 (Carbs / Protein / Fat) β€” or type your own percentages, and the grams update instantly as you edit any field. A running total tells you whether your three percentages add up to a valid 100 percent.

The math is the Atwater system, the same energy-conversion factors printed on nutrition labels worldwide: carbohydrate and protein each release about 4 kilocalories per gram, and fat releases about 9. For each macronutrient the tool takes your calorie target, multiplies by that macro's percentage, then divides by its kcal-per-gram factor. So on a 2000 kcal, 40/30/30 split you get 200 g carbs (2000 x 0.40 / 4), 150 g protein (2000 x 0.30 / 4), and about 67 g fat (2000 x 0.30 / 9). Because fat is more than twice as energy-dense as carbs or protein, an equal calorie share always yields far fewer fat grams β€” a detail this calculator makes obvious at a glance and one that surprises people used to thinking only in percentages.

Seeing the presets side by side is instructive. On a 2000 kcal budget, the Balanced 40/30/30 split gives 200 g carbs, 150 g protein, and 67 g fat; the High-protein 40/40/20 split shifts that to 200 g carbs, 200 g protein, and 44 g fat; the Low-carb 20/40/40 split lands at 100 g carbs, 200 g protein, and 89 g fat. The calorie total is identical in all three cases β€” only the distribution changes β€” which is exactly the trade-off a macro plan is meant to control. Athletes chasing protein, people managing blood sugar with fewer carbs, and anyone simply balancing a plate can all read their targets in seconds.

This is a splitter, not a needs estimator. It does not decide how many calories you should eat; it assumes you already have a target β€” from a diet plan, a coach, or our calorie calculator β€” and only distributes that number across the three macronutrients. If you still need the calorie figure itself, start with the calorie calculator for total daily energy or the BMR calculator for resting metabolism, then bring the result here to translate it into grams you can actually shop and cook for.

A few practical notes. The tool counts only the three energy-yielding macronutrients; alcohol (about 7 kcal/g) and fiber are not modeled separately, and micronutrients carry no calories. Everything runs locally in your browser, so nothing you type is uploaded. Results are a general nutrition estimate for planning, not a personalized diet prescription β€” a registered dietitian or doctor can tailor ratios to your goals, training load, and medical history.

Methodology & sources

Grams are derived with the Atwater system, the physiological energy-conversion factors used on nutrition labels: carbohydrate 4 kcal/g, protein 4 kcal/g, and fat 9 kcal/g. For each macronutrient the tool computes calories x (percentage / 100) / kcal-per-gram, and requires the carb, protein, and fat percentages to sum to 100 (within a small rounding tolerance). Preset ratios (40/30/30, 40/40/20, 20/40/40) are common general starting points, not individualized targets. Results are a general nutrition estimate for planning and are not medical or dietary advice; consult a registered dietitian or doctor for a personalized plan.

Frequently asked questions

How does the macro calculator turn calories into grams?
It uses the Atwater energy factors: carbohydrate and protein each provide about 4 kcal per gram and fat provides about 9 kcal per gram. For each macro it multiplies your calorie target by that macro's percentage and divides by its kcal-per-gram factor.
Why is the fat number so much smaller than carbs and protein?
Fat is more energy-dense: 9 kcal per gram versus 4 for carbs and protein. An equal share of calories therefore converts into roughly half as many grams of fat, so a 30% fat allocation always shows fewer grams than a 30% carb allocation.
How is this different from a calorie calculator?
A calorie calculator estimates how many total calories you need per day (your TDEE). This macro calculator takes a calorie number you already have and splits it into carb, protein, and fat grams by ratio. Use them together: calories first, then macros.

Calculators guides

View all