CalculatorForEver
HEALTH & FITNESS / CALCULATOR

Macro Calculator

Convert a calorie allocation into grams of macronutrients.

This macro calculator converts a calorie total and your chosen percentages into grams of protein, carbohydrate and fat. It does not choose a nutritional allocation for you.

Your numbers

BROWSER-LOCAL INPUTS

Your inputs stay in this browser. No account needed.

RESULT

Your result

Enter your values and select Calculate.

Check the units and assumptions before using this result.

METHOD

How the macro calculator works

How to use this calculator

Enter an energy scenario and percentages you want to compare. The percentages must add to 100.

What the result means

This page converts an energy split you choose into grams. Protein and carbohydrate use 4 kcal per gram; fat uses 9. The percentages must total 100, otherwise they do not allocate the full entered energy amount.

The formula

Protein and carbohydrate grams = allocated kcal/4; fat grams = allocated kcal/9

A worked example

At 2,000 kcal with a 25/50/25 split, the amounts are 125 g protein, 250 g carbohydrate and 55.56 g fat.

Assumptions & methodology

The 4/4/9 kcal-per-gram factors are approximations. This tool is not for medical nutrition planning or eating-disorder care. Results are rounded for display; intermediate calculations retain precision. This tool is informational and does not replace institutional or professional guidance.

References

21 CFR 101.9: energy factors used in nutrition labeling.

INTERPRETATION

Understanding macro results

Calories and grams have different shares

Protein and carbohydrate use approximately four kilocalories per gram; fat uses nine. A 25% share of calories from fat therefore contains fewer grams than a 25% share from protein. The ring chart displays calorie shares so it matches the entered percentages.

The allocation must cover the whole amount

Percentages must sum to 100. The displayed gram values are rounded, so reversing the conversion from displayed values can produce a small difference. This model does not tailor requirements to a medical condition or provide eating-disorder care or a clinical meal plan.

Example: the same calorie share means different grams

Illustration: 2,000 kcal, allocated 25% protein, 50% carbohydrate and 25% fat.
MacronutrientEnergyGrams
Protein500 kcal125 g
Carbohydrate1,000 kcal250 g
Fat500 kcal55.56 g
RELATED GUIDES

Macro questions and examples

Read a worked explanation before trying another calculation.

QUESTIONS

Macro questions

Are the displayed percentages a diet recommendation?+

No. They are editable example inputs. The calculator does not decide which split is appropriate for you.

Why do rounded grams not add back perfectly?+

The displayed amounts are rounded. Food energy factors are also approximations, so exact food-label totals can differ.