Macro Calculator
By Jason Smith · Updated October 25, 2026
Split a calorie target into protein, fat, and carbohydrate grams, or add up the grams on a recipe.
Daily mode uses a calorie number, a body weight, a protein setting, and a fat percent. Recipe mode only multiplies the grams you type. Neither mode is a meal plan.
Estimate only, not medical advice. Informational only. This page does not diagnose, treat, or prevent any condition or replace a doctor or registered dietitian. If you are pregnant, under 19, managing a medical condition or an eating disorder, or on a prescribed diet, get individual guidance.
Protein first, then fat, then whatever calories remain
Daily mode starts from a calorie target you type, or from the unrounded calories the TDEE calculator put on the link. Protein grams equal kilograms times the grams-per-kilogram setting. Protein calories equal those grams times 4. Fat calories equal the fat percent times the calorie target. Fat grams equal fat calories divided by 9. Carbohydrate calories equal the target minus protein calories minus fat calories. Carbohydrate grams equal that remainder divided by 4. If the remainder is negative, protein and fat already use more energy than the target, and the page says so instead of hiding the negative carbohydrate number.
The 4, 4, and 9 factors are the general factors in 21 CFR 101.9(c)(1)(i), read here from the Cornell mirror of the Code of Federal Regulations because the eCFR host blocked an automated request: 4 calories per gram of protein, 4 calories per gram of total carbohydrate, and 9 calories per gram of total fat, as described in USDA Handbook No. 74. The same section allows other methods. This page uses only the plain 4, 4, and 9 path. It does not store a food database. The official section is 21 CFR 101.9 on eCFR. If the regulation and this page ever disagree, the regulation controls, and a printed Nutrition Facts calorie figure controls for that package.
The protein menu defaults to 0.8 grams per kilogram. That default is the adult basis in the footnote of the National Academies macronutrient DRI table: 0.8 g/kg/day for adults. The sheet says an RDA is set to meet the needs of almost all (97 to 98 percent) individuals in a group. The 1.2 and 1.6 options are the ends of the protein serving range in the Dietary Guidelines for Americans, 2025 to 2030: 1.2 to 1.6 grams per kilogram of body weight per day, adjusting as needed based on individual caloric requirements. Custom is whatever number you type, labeled as your choice. The fat field starts at 25, inside the adult fat AMDR of 20 to 35 percent on that DRI table. Meals start at 3 so the page can divide the daily grams. Three is not advice about how often to eat.
Recipe mode ignores weight, the protein setting, the fat percent, meals, and BMR. You type protein, carbohydrate, and fat grams for one serving, and a serving count. Calories per serving equal 4 times protein, plus 4 times carbohydrate, plus 9 times fat. Total calories equal that result times servings. The recipe scaler changes ingredient amounts. It does not know protein grams.
A 1,350 kcal target the warning will not treat as a plan
The female TDEE example with an offset of minus 500 headlines at 1,350 kcal, against a BMR of 1,345.25 that also headlines at 1,350. Type calories 1350, weight 65 kg, protein 1.2 grams per kilogram, fat 30 percent, and BMR 1345.25. The closeness rule returns the near case, because nearest 10 calories are not above nearest 10 BMR. The result label switches to arithmetic that is not a target. The grams are still computed. Protein is 78 g. Fat is 45 g. Carbohydrate is 158.3 g. Protein's share of 1,350 kcal is 23.1 percent. Carbohydrate's share is 46.9 percent. The page does not drop those numbers. It refuses to present them as a plan. That refusal is the same display rule as the TDEE page. It is not a diagnosis.
Grams this form prints
| Calories | Weight and protein | Fat percent | Protein | Fat | Carbohydrate |
|---|---|---|---|---|---|
| 2,759 | 80 kg, 1.6 g/kg | 25 | 128 g, 18.6 percent | 76.6 g | 389.3 g, 56.4 percent |
| 1,600 | 65 kg, 1.2 g/kg | 30 | 78 g, 19.5 percent | 53.3 g | 202 g, 50.5 percent |
| 1,350, near a BMR of 1,345.25 | 65 kg, 1.2 g/kg | 30 | 78 g, 23.1 percent | 45 g | 158.3 g, 46.9 percent |
| Recipe, 1 serving | 30 g protein, 45 g carbohydrate, 12 g fat | 408 kcal | |||
On the 2,759 kcal row, protein is 1.6 times 80, which is 128 g, and 128 times 4 is 512 kcal, which is 18.6 percent of 2,759. Fat calories are 0.25 times 2,759, which is 689.75, and fat grams are 689.75 divided by 9, shown as 76.6 g. Carbohydrate calories are 2,759 minus 512 minus 689.75, which is 1,557.25, and carbohydrate grams are 1,557.25 divided by 4, shown as 389.3 g. Carbohydrate's share is 56.4 percent. All three percents sit inside the adult AMDR bands. Meals set to 4 divides that row into 32 g protein, 19.2 g fat, and 97.3 g carbohydrate per meal. That split is division by the meal count you type.
The 1,600 kcal row types 1600 directly. Protein is 1.2 times 65, which is 78 g and 19.5 percent of 1,600. Fat is 53.3 g. Carbohydrate is 202 g, 50.5 percent of calories. The recipe row is 30 times 4, plus 45 times 4, plus 12 times 9, which is 120 plus 180 plus 108, which is 408 kcal for one serving. Two servings would double that product. A label that prints a different calorie number can still be right under the rounding rule or under a method other than plain 4, 4, and 9.
Where the factors come from
- 21 CFR 101.9. General factors of 4, 4, and 9, the other allowed calorie methods, and calorie rounding to the nearest 5-calorie increment up to and including 50 calories and the nearest 10-calorie increment above 50. Text checked on the Cornell LII copy of the section.
- National Academies macronutrient DRI table, source stated on the sheet as Dietary Reference Intakes for Energy, Carbohydrate, Fiber, Fat, Fatty Acids, Cholesterol, Protein, and Amino Acids (2002 and 2005). Adult protein basis 0.8 g/kg/day, the 97 to 98 percent RDA note, and adult AMDR bands.
- Dietary Guidelines for Americans, 2025 to 2030. Protein serving goals of 1.2 to 1.6 grams per kilogram of body weight per day.
FAQ
Why is carbohydrate the leftover?
Protein grams are body weight times the grams-per-kilogram setting, and fat calories are the fat percent times the calorie target. Carbohydrate calories are the target minus those two, divided by 4. If you wanted a carbohydrate percent solved the other way, this form is the wrong shape.
Why can a label's calories disagree with 4, 4, and 9?
21 CFR 101.9 allows several methods, including specific Atwater factors and the general factors of 4, 4, and 9. One method removes non-digestible carbohydrate and sugar alcohols before those general factors and uses other factors for those ingredients. Declared calories round to the nearest 5-calorie increment up to and including 50 calories, and the nearest 10-calorie increment above 50. Recipe mode on this page uses only 4, 4, and 9 on the grams you type.
Is 25 percent fat a recommendation?
No. Twenty-five is the field's starting value so a run can be repeated. It sits inside the adult fat AMDR of 20 to 35 percent of energy on the National Academies table. Change it if you meant a different percent. The page does not call the default a prescribed intake.
What does an AMDR flag mean?
After the grams are known, each nutrient is shown as a percent of the calorie target and compared with the adult bands on the DRI table: protein 10 to 35, carbohydrate 45 to 65, and fat 20 to 35. Outside means outside that published band. The page does not say the result is unhealthy. The sheet uses different bands for children and teens. This form does not switch bands by age.
What if the calorie target sits on the BMR I pasted?
If you fill in a BMR, and the calorie target is below it, or nearest 10 rounding leaves the target no higher than nearest 10 BMR, the result label switches to arithmetic that is not a target. The grams still print. They are marked as not a target to follow. The 1,350 kcal row next to a BMR of 1,345.25 is that case.
Related calculators
- TDEE calculator for the calorie figure and the optional BMR
- Protein intake calculator when the question is the reference rate, not the remainder
- Weekly meal planner after the grams are numbers you want on a grid
- Recipe scaler for ingredient amounts when the yield changes
- BMI calculator