Formula or algorithm and variables.
carbohydrate g = kcal × share ÷ 4; protein g = kcal × share ÷ 4; fat g = kcal × share ÷ 9Carbohydrate and protein provide 4 kcal per gram and fat 9 kcal per gram in this planning model. Shares must total exactly 100%.
Equation, units, and population
carbohydrate g = kcal × share ÷ 4; protein g = kcal × share ÷ 4; fat g = kcal × share ÷ 9. Carbohydrate and protein provide 4 kcal per gram and fat 9 kcal per gram in this planning model. Shares must total exactly 100%. This page names the equation rather than presenting an unexplained score. Check that every value uses the displayed unit and that you belong to the population for which the method is described. The calculation retains full precision internally and rounds only the visible result. A reproducible estimate should let another reader use the same inputs and reach the same arithmetic answer, while still recognizing that mathematical reproducibility does not prove medical suitability.
Worked example
At 2,000 kcal with a 50% carbohydrate, 20% protein, and 30% fat split, the calculation gives 250 g carbohydrate, 100 g protein, and about 66.7 g fat. Work through the example by writing the equation, substituting each labeled input, and preserving units at every step. The example demonstrates arithmetic only; it is not a recommended body measurement, intake, exercise level, laboratory value, or date. Replace every example input with the values from the situation being considered, and retain those inputs with any result you copy. Small differences can arise from rounding, equation versions, atomic-weight conventions, or date boundaries.
Interpreting the estimate
The gram results translate a chosen calorie split. The page also shows broad adult distribution ranges and a 0.8 g/kg protein reference for comparison, not as an individualized target. Health calculations compress complex biology into a few inputs, so the result should be read as context rather than a verdict. Do not compare two people as though the higher or lower number is automatically better. Look for changes over time only when the method, units, and conditions are consistent. If a result conflicts with symptoms, a laboratory report, a clinician’s instructions, or a validated measurement, rely on the appropriate professional evidence rather than this calculator.
Validation and edge cases
Calories must be 1,000–6,000, weight 30–300 kg, percentages 0–100 and total 100%. Pregnancy or breastfeeding selection stops the generic calculation. Blank, malformed, nonfinite, and out-of-domain inputs fail explicitly without producing NaN or infinity. The bounds prevent obviously implausible values from being mistaken for meaningful answers, but passing a range check does not make an input medically correct. Recheck dates, decimal separators, unit conversions, coefficient choices, and whether a laboratory value uses the expected assay and unit. Contact a qualified professional when a result could affect treatment, medication, pregnancy care, nutrition therapy, or exercise safety.
Limitations and responsible use
Energy needs and nutrient needs vary with age, health, activity, culture, food access, medicines, training, and clinical goals. Percent ranges do not guarantee nutritional adequacy or food quality. This is meal-planning arithmetic, not a diet prescription. Do not use it for extreme restriction, an eating disorder, pregnancy, breastfeeding, kidney disease, diabetes treatment, or pediatric nutrition. FigureNest processes these inputs locally in the browser and does not send them to a calculation service. The page does not create a medical record, assess symptoms, or know personal history. Avoid using estimates to shame a body, pursue unsafe restriction, delay care, determine legal fitness, or replace contraception. Authoritative source links are provided so readers can check the equation version and current guidance before making a consequential decision.
Check assumptions and sources.
Energy needs and nutrient needs vary with age, health, activity, culture, food access, medicines, training, and clinical goals. Percent ranges do not guarantee nutritional adequacy or food quality.
Common questions.
What does the Macronutrient, Carbohydrate & Protein Calculator estimate?
Convert a daily calorie estimate into carbohydrate, protein, and fat grams while showing adult reference ranges and pregnancy exclusions.
Which equation and units does it use?
carbohydrate g = kcal × share ÷ 4; protein g = kcal × share ÷ 4; fat g = kcal × share ÷ 9. Carbohydrate and protein provide 4 kcal per gram and fat 9 kcal per gram in this planning model. Shares must total exactly 100%.
Is this medical advice or a diagnosis?
No. This is meal-planning arithmetic, not a diet prescription. Do not use it for extreme restriction, an eating disorder, pregnancy, breastfeeding, kidney disease, diabetes treatment, or pediatric nutrition.
Which limitations matter most?
Energy needs and nutrient needs vary with age, health, activity, culture, food access, medicines, training, and clinical goals. Percent ranges do not guarantee nutritional adequacy or food quality.