Macronutrient Calculator
Enter the requested values and units to calculate the numeric result using the stated formula.
Calculation only
The output is produced only from the values, units, and formula shown by this tool.
This tool does not compare the number with a clinical range, assign a category, diagnose a condition, or recommend an action. Check that your input units match the form and use your laboratory report or a qualified medical professional for interpretation.
How the calculation works
The tool returns a daily calorie figure and grams of protein, carbohydrate and fat from sex, age, height, weight, activity level and a goal option, and splits those amounts across four meals. All offsets and percentages are fixed constants in the code.
Formula
- BMR, male option (kcal/day) = 10 × weight (kg) + 6.25 × height (cm) - 5 × age (years) + 5; female option: the same terms with - 161 in place of + 5
- TDEE = BMR × activity factor (1.2, 1.375, 1.55, 1.725 or 1.9), rounded to a whole number
- Daily calories = TDEE (Maintain), TDEE - 500 (Lose Weight) or TDEE + 300 (Build Muscle); a result below 1200 is replaced by 1200
- Shares of daily calories as protein / carbohydrate / fat: Maintain 30% / 40% / 30%; Lose Weight 40% / 30% / 30%; Build Muscle 30% / 45% / 25%
- Protein (g) = protein kcal ÷ 4; carbohydrate (g) = carbohydrate kcal ÷ 4; fat (g) = fat kcal ÷ 9; each rounded to a whole gram
- Per-meal values = daily calories and each gram amount × 0.25 (Breakfast), 0.30 (Lunch), 0.30 (Dinner) and 0.15 (Snack), rounded to whole numbers
Units
Metric input is in centimeters and kilograms. Imperial input is converted with 1 in = 2.54 cm and 1 lb = 0.453592 kg. Energy is in kcal; the divisors 4, 4 and 9 kcal per gram are the general Atwater factors.
Source
- Mifflin MD, St Jeor ST, Hill LA, Scott BJ, Daugherty SA, Koh YO. Am J Clin Nutr. 1990;51(2):241-247.
- Merrill AL, Watt BK. US Department of Agriculture, Agriculture Handbook No. 74. Washington, DC; 1973.
Limits of the calculation
- The calorie offsets (-500 and +300), the 1200 kcal floor, the percentage splits and the meal shares are fixed constants in the code; no publication is cited for them.
- The Mifflin-St Jeor equation was derived from indirect calorimetry in 498 adults aged 19 to 78 years; the activity factors are not part of that equation.
- Gram amounts and per-meal values are rounded to whole numbers, so the meal rows do not always add up exactly to the daily amounts.
- Age is read as a whole number and the code accepts ages 15 to 120; imperial height is entered in inches only.