Macro calculator: turn percentages into grams
Explore how a chosen energy scenario divides into carbohydrate, protein and fat. Enter your own percentages and see the arithmetic, without receiving a prescribed intake.
How to use the calculator
Enter an energy scenario in kilocalories, then set carbohydrate, protein and fat percentages. The percentages must add up to exactly 100. Select Calculate grams. Adjusting one percentage usually means changing another to keep the same total. The initial 2,000 kcal and 50/20/30 split demonstrate the controls; they are not a recommendation for your body or goals.
The calculation
For each nutrient, multiply energy by its percentage divided by 100. Divide carbohydrate and protein energy by 4 kcal per gram, and fat energy by 9 kcal per gram. These are general energy factors used in nutrition labeling. The output rounds grams to one decimal only at display. Alcohol, fiber and specific food labeling rules can involve different factors; this simple scenario is not a food-label analysis.
A worked example
At 2,000 kcal with a 50% carbohydrate, 20% protein and 30% fat split, the arithmetic gives 250 g carbohydrate, 100 g protein and about 66.7 g fat. Changing the protein share to 25% while reducing carbohydrate to 45% gives 125 g protein and 225 g carbohydrate, with fat unchanged. The example explains a conversion, not a suggested menu.
Choosing a scenario responsibly
This tool does not determine energy needs, nutrient adequacy or a suitable diet. Percentage splits omit food quality, micronutrients, preferences and medical context. If you need an individual target, ask a qualified dietitian. Children, pregnancy, breastfeeding, eating-disorder concerns and medical nutrition therapy are outside the purpose of this calculator.
Why does the form reject my percentages?
A total above or below 100 would allocate more or less than the energy you entered. Check all three fields, including decimal values. A zero share is allowed to explore the arithmetic; it is not an endorsement of excluding a nutrient.
Sources and next steps
General calorie factors are described by the FDA Nutrition Facts guidance. For a practical food outline, use the meal planner; for the meaning of resting energy, read the calorie calculator.
Editorial information
Prepared with AI assistance for Everyday Wellness Planner. Last checked: 9 October 2026. No independent clinical review is claimed. Read our editorial policy and educational disclaimer. Calculator inputs remain in this browser tab; ordinary site logs and analytics are described in the privacy notice.
Explore related tools
Return to Nutrition tools, browse the tool directory, or build a weekly routine.