How it works
Carbohydrate provides about 4 kcal per gram. The calculator estimates daily energy needs and converts the selected percentage into grams.
Input query strings and outputs
Use an input name in this page’s URL as ?name=value, and join additional inputs with &. Portable shared links may instead use the compact ?ac= state parameter.
Input query strings
12-
?unitSystem=UnitsChoice · Required · Default: metric · Accepted values: metric, imperial
-
?sex=Sex used by equationChoice · Required · Default: male · Accepted values: male, female
-
?age=AgeNumber · Required · Default: 30
-
?formula=BMR equationChoice · Required · Default: mifflin · Accepted values: mifflin, harris, katch
-
?bodyFatPercent=Body fatPercentage · Required · Default: 20 · Used when formula = katch
-
?weightKg=WeightNumber · Required · Default: 70 · Used when unitSystem = metric
-
?heightCm=HeightNumber · Required · Default: 175 · Used when unitSystem = metric
-
?weightLb=WeightNumber · Required · Default: 154 · Used when unitSystem = imperial
-
?feet=Height feetNumber · Required · Default: 5 · Used when unitSystem = imperial
-
?inches=Height inchesNumber · Required · Default: 9 · Used when unitSystem = imperial
-
?activity=Activity levelChoice · Required · Default: moderate · Accepted values: sedentary, light, moderate, active, veryActive, extraActive
-
?carbPercent=Target carbohydrate sharePercentage · Required · Default: 50
Outputs
5-
targetCarbsTarget carbohydrate amountNumber · Primary output · Suffix: g/day
-
referenceRange45–65% reference rangeText
-
caloriesEstimated daily energyNumber · Suffix: kcal/day
-
targetCaloriesFromCarbsCalories from carbohydrateNumber · Suffix: kcal/day
-
minimumComparison130 g comparisonText
Reference interval
A 45–65% energy interval is displayed for context, along with a 130-gram adult comparison. Dietary quality and individual medical needs are not captured.