Macro Calculator (Grams of Carbs, Protein and Fat)
HealthType in your daily calories, pick a split or enter your own percentages, and get grams of carbs, protein and fat for the day. Each share is divided by 4, 4 and 9 calories per gram. Not sure of your calories? Start with the TDEE calculator.
Step by step
2,000 calories split 50% / 20% / 30% = 250 / 100 / 67 g
- Carbs get 50% of your calories: 1,000 calories. Divide by 4 calories per gram: 250 g.
- Protein gets 20%: 400 calories. Divide by 4: 100 g.
- Fat gets 30%: 600 calories. Divide by 9: 67 g.
- Compared with the adult ranges in the Dietary Guidelines, carbs are inside the range, protein is inside the range and fat is inside the range.
Once every entry is valid, you’ll see each step of the calculation here.
Formula
- calories
- your daily calories
- share
- the part of your calories from that macro, as a fraction: 40% is 0.40
- 4
- calories in one gram of carbohydrate or of protein
- 9
- calories in one gram of fat
- Fat share
- part of the split in a preset; in Custom it is what the carbs and protein shares leave of the 100%
How it works
A macro calculator turns a calorie target into gram targets for the three macronutrients: carbohydrate, protein and fat. You choose how your calories are split, and each share is converted to grams with the calories in one gram of that nutrient: 4 for carbohydrate, 4 for protein and 9 for fat. These are the general factors that US food labeling rules allow for the calories on a Nutrition Facts label (21 CFR 101.9). So 2,000 calories at a 40/40/20 split means 800 calories from carbs (200 g), 800 from protein (200 g) and 400 from fat (44 g).
The split is your choice. The presets are example starting points, not recommendations, and Custom takes your own percentages for carbs and protein, with fat getting the rest. For orientation the calculator compares each share with the Acceptable Macronutrient Distribution Ranges for adults that appear in the Dietary Guidelines for Americans 2020 to 2025: 45 to 65% of calories from carbohydrate, 10 to 35% from protein and 20 to 35% from fat. The balanced preset sits inside all three ranges. The 40/40/20 split is below the carbohydrate range and above the protein range. The ranges are for adults; the Guidelines list different ones for children and teenagers.
Calories come first. If you do not know yours, the TDEE calculator estimates how many calories you burn in a day from your age, height, weight and activity, and the result is the number to type in here. To count macros in practice, log your food in grams. US Nutrition Facts labels list grams of total fat, total carbohydrate and protein per serving, so you can weigh a portion, scale the label and add up the day; the grams to pounds converter helps with food weights in pounds and ounces. Tracking macros shows what your calories are made of, which a calorie count alone does not.
The formula
Worked by hand for 2,000 calories at the balanced split (50% carbs, 20% protein, 30% fat): carbs 2,000 × 0.50 = 1,000 calories ÷ 4 = 250 g; protein 2,000 × 0.20 = 400 calories ÷ 4 = 100 g; fat 2,000 × 0.30 = 600 calories ÷ 9 = 66.7 g. Check: 250 × 4 + 100 × 4 + 66.7 × 9 comes to 2,000 calories.
The big result lists carbs, protein and fat in that order, each rounded to a whole gram (halves round up). The individual amounts below it use the same rounding, but the calculation itself is not rounded, so the three rounded amounts can differ from your calorie target by a few calories. Food labels may use specific Atwater factors or subtract non-digestible carbohydrate instead of the general 4, 4 and 9 (21 CFR 101.9(c)(1)(i)), so the calories on a label can differ a little from this arithmetic.
Example
You plan to eat 2,200 calories a day and choose the 40/40/20 split. How many grams of carbs, protein and fat is that?
- Carbs: 40% of 2,200 calories is 880 calories, and 880 ÷ 4 = 220 g.
- Protein: 40% is 880 calories, and 880 ÷ 4 = 220 g.
- Fat: 20% is 440 calories, and 440 ÷ 9 = 49 g.
- Check: 220 g × 4 + 220 g × 4 + 48.9 g × 9 comes to about 2,200 calories, and the headline reads 220 / 220 / 49 in grams.
At 2,200 calories a day, getting 40% of calories from carbs, 40% from protein and 20% from fat comes to 220 g of carbs, 220 g of protein and 49 g of fat. At least one share is outside the adult ranges in the Dietary Guidelines, so treat this as a starting point and ask a doctor or registered dietitian before you adopt it.
Load this example into the calculatorFrequently asked questions
What is a macro calculator?
A macro calculator turns your daily calorie target into grams of the three macronutrients: carbohydrate, protein and fat. You give it your calories and a split, for example 50% carbs, 20% protein and 30% fat, and it converts each share into grams with 4, 4 and 9 calories per gram. It does not set your calories or tell you which split to follow.
How do I use the macro calculator?
Enter the calories you plan to eat in a day, pick a split from the list or choose Custom and type the percent for carbs and protein (fat gets the rest), and read your grams. The lines next to the result show how each share compares with the adult ranges in the Dietary Guidelines. Then log your food in grams and aim for those totals over the day.
What are macronutrients?
Macronutrients are carbohydrate, protein and fat, the three nutrients your food supplies in gram amounts and that carry its calories: 4 calories per gram for carbohydrate and protein and 9 for fat. For adults the Dietary Guidelines for Americans give an acceptable range of shares of daily calories for each one.
How do I count my macros properly?
Set your calorie target, choose a split and read your gram targets. Then log what you eat in grams: US Nutrition Facts labels list grams of total fat, total carbohydrate and protein per serving (21 CFR 101.9(c)), so weigh your portion and scale the label. Add up the day and compare it with your targets. Label amounts are rounded, so expect small differences.
What does the 4/4/9 rule for calories mean?
It is the calories in a gram of each macronutrient: 4 for carbohydrate, 4 for protein and 9 for fat. US food labeling rules allow these general factors for the calories on a Nutrition Facts label (21 CFR 101.9(c)(1)). Multiply the grams of each by its factor and add them up to get calories, or go the other way: 800 calories of protein is 800 ÷ 4 = 200 g.
What does the 40/40/20 macro rule mean?
It splits your calories 40% carbohydrate, 40% protein and 20% fat. At 2,000 calories that is 200 g of carbs, 200 g of protein and about 44 g of fat. It is a rule of thumb, not part of the Dietary Guidelines: its carbohydrate share is below the adult range of 45 to 65% and its protein share is above the adult range of 10 to 35%.
How do I convert macro percentages to grams?
Multiply your daily calories by the percentage to get the calories from that macro, then divide by its calories per gram: 4 for carbs and protein, 9 for fat. For 2,500 calories with 30% from protein: 2,500 × 0.30 = 750 calories, and 750 ÷ 4 = 187.5 g of protein. The calculator does this for all three macros at once.
What are the recommended ranges for macronutrients?
For adults the Dietary Guidelines for Americans 2020 to 2025 list 45 to 65% of calories from carbohydrate, 10 to 35% from protein and 20 to 35% from fat. These Acceptable Macronutrient Distribution Ranges were set by the National Academies, and the Guidelines give different ones for children and teenagers. The Dietary Guidelines site now points to a newer edition.
Can I customize my macro ratios?
Yes. Choose Custom in the split list, then type the percent of calories for carbs and protein. Fat gets the remainder, so the three shares always add up to 100%. If carbs and protein add up to more than 100%, the calculator asks you to lower one of them.
What diet types does the calculator support?
The list has seven example splits, written carbs / protein / fat: balanced (50/20/30), higher carb (60/15/25), moderate carb (40/30/30), 40/40/20, higher protein (35/35/30), lower carb (25/35/40) and keto, a very low carb split (5/20/75). Custom takes your own numbers. They are splits of calories, not complete diet plans.
How do I know my daily calorie requirement?
Estimate it with the TDEE calculator, which finds your resting calories from age, height and weight and scales them by your activity level. It is an estimate: if your weight holds steady for a few weeks at a given intake, that intake is your maintenance level. Type that number in as your daily calories here.
How do I use the macro calculator for weight loss?
Enter a calorie target meant for weight loss, then pick a split. The calculator turns whatever calories you type in into grams; it does not decide how much you should eat. For a target, choose one of the Lose options in the Goal list of the TDEE calculator, which take 250 to 1,000 calories a day off your estimated maintenance calories, and enter the result here. The Gain options work the same way if you want to gain weight. A very low target, or a split outside the adult ranges, is a decision for you and your doctor or registered dietitian.
Are all diet presets suitable for everyone?
No. The presets are example splits, not prescriptions, and several fall outside the adult ranges in the Dietary Guidelines. The right split depends on your health, medications, goals and preferences. If you have a medical condition, are pregnant or take medication, ask your doctor or a registered dietitian before you change how you eat.
Why track macros instead of just counting calories?
Calories tell you how much energy you eat; macros also show what it is made of. At 2,000 calories, a protein share of 10% is 50 g and a share of 30% is 150 g, so the same calorie count can hide a 100 g difference in protein. The benefit of tracking macros is more control over that mix and a way to check it against the Dietary Guidelines ranges. Calories still matter.
- Dietary Guidelines for Americans, 2020-2025 (Appendix 1, Table A1-2: Daily Nutritional Goals, Ages 2 and Older) (U.S. Department of Agriculture and U.S. Department of Health and Human Services)
- Dietary Guidelines for Americans (home page, previous editions and the newer edition) (U.S. Department of Agriculture and U.S. Department of Health and Human Services)
- 21 CFR § 101.9 - Nutrition labeling of food (Legal Information Institute, Cornell Law School)