Atwater factors: protein 4 kcal/g, carbs 4 kcal/g, fat 9 kcal/g.
Total energy
1940 kcal
Protein
150 g
600 kcal · 30.9% of calories
Carbs
200 g
800 kcal · 41.2% of calories
Fat
60 g
540 kcal · 27.8% of calories
Disclaimer: Illustrative energy math from fixed factors only — not medical nutrition therapy or individualized requirements.
Two modes use the same Atwater general factors common on nutrition labels: protein 4 kcal/g, carbohydrate 4 kcal/g, fat 9 kcal/g. Forward: enter grams → total and per-macro kcal. Reverse: enter a calorie budget and (optionally) the share of calories from protein, carbs and fat → approximate grams for each macro. The split is by calories, not by grams, and is scaled to 100% if it does not already add up.
Alcohol, sugar alcohols, and fiber-specific rules are not included — this is a compact worksheet, not a substitute for a detailed food database or lab-measured energy values.