Macro Calculator
A macro calculator converts your daily calorie target into grams of protein, carbohydrates, and fat based on the percentage split you choose. Instead of guessing how much of each macronutrient to eat, you enter a calorie goal and a percentage breakdown, and the tool handles the conversion math for you. This is useful whether you are cutting, bulking, maintaining, or simply trying to eat a more balanced diet. Lifters tracking a higher-protein split, endurance athletes fueling with more carbohydrate, and anyone following a lower-carb eating pattern can all use the same calculator by adjusting the percentages to match their plan. The result is three gram targets you can log in a food tracking app or use to build meals around. This tool performs the arithmetic only. It does not diagnose, treat, or replace guidance from a registered dietitian or physician.
Quick answer
Protein and carbohydrates each supply 4 calories per gram.
What this tells you
- •Protein and carbohydrates each supply 4 calories per gram.
- •Fat supplies 9 calories per gram, more than double protein or carbs.
- •Your protein, carb, and fat percentages must add up to 100% for the math to work.
- •Common splits range from balanced (30/40/30) to high-protein (40/30/30) to low-carb (25/5/70).
- •Macro grams are a planning target, not a fixed rule. Small day-to-day variation is normal.
How to Use
- 1Enter your daily calorie target. This usually comes from a TDEE or calorie calculator adjusted for your goal.
- 2Set a protein percentage based on your body weight and training goal.
- 3Set a carbohydrate percentage based on activity level and preference.
- 4Set a fat percentage. The three percentages must total 100%.
- 5Calculate to see your daily protein, carbohydrate, and fat targets in grams.
- 6Adjust any percentage and recalculate if the total does not add up to 100%.
How It Works
Formula
Macro grams = (calories x macro percentage) / calories-per-gram (4 for protein/carbs, 9 for fat)The calculator first splits your total calories across the three macronutrients using the percentages you set, so a 2000-calorie target with a 30% protein share allocates 600 calories to protein. Each macro's calories are then divided by its calorie density: 4 calories per gram for protein and carbohydrates, and 9 calories per gram for fat, since fat is more calorie-dense than the other two. The three percentages must sum to 100%, otherwise the calorie allocation would not account for your full calorie target, so the calculator will not return a result until the split is fixed.
Calculation note: values are processed in the order shown above, using the current input units.
Worked Examples
2200 Calories, Balanced 30/40/30 Split
Protein gets 30% of 2200 calories, or 660 calories, and 660 divided by 4 equals 165 grams. Carbs get 40%, or 880 calories, which is 220 grams. Fat gets the remaining 30%, or 660 calories, and 660 divided by 9 is about 73.3 grams. This balanced split works well as a general starting point for maintenance or overall health.
1800 Calories, High-Protein Cutting Split (40/30/30)
At 1800 calories, a 40% protein share allocates 720 calories, and 720 divided by 4 equals 180 grams, a higher protein target commonly used during a calorie deficit to help preserve muscle. Carbs at 30% allocate 540 calories, or 135 grams, and fat at 30% allocates 540 calories, or 60 grams.
2800 Calories, High-Carb Bulking Split (25/50/25)
A 25% protein share of 2800 calories is 700 calories, or 175 grams. Carbs take the largest share at 50%, or 1400 calories, which converts to 350 grams to fuel training volume during a calorie surplus. Fat at 25% is 700 calories, or about 77.8 grams.
2000 Calories, Low-Carb Split (25/5/70)
Protein at 25% of 2000 calories is 500 calories, or 125 grams. Carbs are kept minimal at 5%, or 100 calories, which is 25 grams. Fat carries most of the calorie load at 70%, or 1400 calories, which equals about 155.6 grams since fat holds 9 calories per gram instead of 4.
Jonah, 84 kg, cutting on 2100 calories with a 40/30/30 split
Jonah weighs 84 kg and has set a 500-calorie deficit that lands him at 2100 calories a day. Protein at 40% is 840 calories, and 840 ÷ 4 = 210 grams. Carbs at 30% are 630 calories, or 157.5 grams. Fat at 30% is also 630 calories, and 630 ÷ 9 = 70 grams. The useful check is protein per kilogram: 210 ÷ 84 = 2.5 g per kg, which sits inside the 2.3 to 3.1 g per kg range the ISSN 2017 position stand describes for resistance-trained people holding onto muscle during a calorie deficit. If Jonah later moves to maintenance at 2600 calories and keeps the same split, protein would climb to 260 g, more than he needs, which is why percentages should be rechecked whenever the calorie target changes.
Macro grams at common calorie targets and splits
Each cell lists protein, carbohydrate, and fat grams in that order for the split in the column header, written as protein / carbs / fat percent. Values are the tool's own output, rounded to one decimal place.
| Daily calories | Balanced 30/40/30 | High protein 40/30/30 | High carb 25/50/25 | Low carb 25/5/70 |
|---|---|---|---|---|
| 1500 | P 112.5 g, C 150 g, F 50 g | P 150 g, C 112.5 g, F 50 g | P 93.8 g, C 187.5 g, F 41.7 g | P 93.8 g, C 18.8 g, F 116.7 g |
| 1800 | P 135 g, C 180 g, F 60 g | P 180 g, C 135 g, F 60 g | P 112.5 g, C 225 g, F 50 g | P 112.5 g, C 22.5 g, F 140 g |
| 2000 | P 150 g, C 200 g, F 66.7 g | P 200 g, C 150 g, F 66.7 g | P 125 g, C 250 g, F 55.6 g | P 125 g, C 25 g, F 155.6 g |
| 2200 | P 165 g, C 220 g, F 73.3 g | P 220 g, C 165 g, F 73.3 g | P 137.5 g, C 275 g, F 61.1 g | P 137.5 g, C 27.5 g, F 171.1 g |
| 2500 | P 187.5 g, C 250 g, F 83.3 g | P 250 g, C 187.5 g, F 83.3 g | P 156.3 g, C 312.5 g, F 69.4 g | P 156.3 g, C 31.3 g, F 194.4 g |
| 2800 | P 210 g, C 280 g, F 93.3 g | P 280 g, C 210 g, F 93.3 g | P 175 g, C 350 g, F 77.8 g | P 175 g, C 35 g, F 217.8 g |
| 3000 | P 225 g, C 300 g, F 100 g | P 300 g, C 225 g, F 100 g | P 187.5 g, C 375 g, F 83.3 g | P 187.5 g, C 37.5 g, F 233.3 g |
| 3200 | P 240 g, C 320 g, F 106.7 g | P 320 g, C 240 g, F 106.7 g | P 200 g, C 400 g, F 88.9 g | P 200 g, C 40 g, F 248.9 g |
Computed with the formula above: grams = calories × percent ÷ 4 for protein and carbohydrate, ÷ 9 for fat, using the Atwater general factors. The 25/5/70 column falls below the 45 to 65 percent carbohydrate range and above the 20 to 35 percent fat range in the Institute of Medicine 2005 Acceptable Macronutrient Distribution Ranges, and the 40/30/30 column sits above the 10 to 35 percent protein range. The IOM ranges were checked against the Health Canada DRI tables on the update date because the National Academies page could not be reached.
Where the 4, 4 and 9 come from, and how to sanity-check a split
The calculator converts calories to grams with the Atwater general factors: 4 kcal per gram of protein, 4 per gram of carbohydrate and 9 per gram of fat. Wilbur Atwater derived them in the 1890s from the heat of combustion of each nutrient, corrected for how much is digested and, for protein, for the energy lost in urea. Food labels in the United States and most other countries still use them, so the grams this tool returns line up with the grams on a package. The factors are averages across typical mixed diets. Fiber contributes less than 4 kcal per gram, alcohol contributes about 7, and individual foods can be a few percent off, which is why a day logged at exactly 2000 calories rarely is.
A percentage split is only as sensible as the calorie target behind it, so two reference ranges help. The Institute of Medicine's 2005 Dietary Reference Intakes set Acceptable Macronutrient Distribution Ranges for adults of 45 to 65 percent of calories from carbohydrate, 20 to 35 percent from fat and 10 to 35 percent from protein, with a protein RDA of 0.8 g per kg of body weight and 130 g per day of carbohydrate as the amount that covers the brain's glucose use. Those ranges describe intakes associated with lower chronic disease risk in the general population, not targets for a training phase. A 40/30/30 cut and a 25/5/70 low-carb plan both sit outside them, which is allowed, but it is worth knowing when a split is outside the population range rather than inside it.
For protein specifically, grams per kilogram is a better check than percent of calories. The International Society of Sports Nutrition's 2017 position stand on protein and exercise concludes that 1.4 to 2.0 g per kg per day is sufficient for most people who train, that 2.3 to 3.1 g per kg per day may be needed to hold onto lean mass in a calorie deficit, and that spreading intake in doses of about 0.25 g per kg, or 20 to 40 g, every three to four hours supports muscle protein synthesis. Divide the protein grams from this tool by your weight in kilograms. A 60 kg person on 1500 calories at 30 percent protein gets 112.5 g, or about 1.9 g per kg, which is plenty. A 100 kg person on the same split and calories gets 1.1 g per kg, which is below the ISSN training range even though the percentage looked reasonable.
The tool does arithmetic, not nutrition assessment. It cannot see body weight, training load, medical conditions, or the fiber, essential fatty acid and micronutrient content behind the gram totals, and it will happily return a 10 percent fat split that leaves no room for essential fatty acids. Very low carbohydrate plans, very high protein plans, pregnancy, kidney disease, diabetes managed with insulin, and any eating-disorder history all change what a safe split looks like. Use the grams here as a starting point to log against, revisit the percentages whenever the calorie target moves, and take questions about whether a split is right for you to a registered dietitian.
Common mistakes
- Entering percentages that do not add up to 100%, which the calculator will reject
- Confusing the percentage split with the gram result, since they are not the same number
- Setting a very low fat percentage without accounting for essential fatty acid needs
- Using a generic macro split without first setting a calorie goal that matches an actual weight loss, gain, or maintenance target
- Treating a single day's macro numbers as a strict rule rather than a flexible weekly average
Limitations
Macro grams are a planning estimate built from the calorie target and percentages you enter. The conversion uses the Atwater general factors of 4, 4 and 9 kcal per gram, which are averages across mixed diets, so fiber, alcohol and individual foods can shift real intake by a few percent. The tool does not check your split against the Institute of Medicine 2005 Acceptable Macronutrient Distribution Ranges (45 to 65 percent carbohydrate, 20 to 35 percent fat, 10 to 35 percent protein) or against protein needs in grams per kilogram, which the ISSN 2017 position stand puts at 1.4 to 2.0 g per kg for most people who train, so a split that looks reasonable as percentages can still under- or overshoot protein for your body weight. It does not account for medical conditions, digestion, food sensitivities, medication interactions, essential fatty acid and micronutrient needs, or how your body responds to specific training. Two people with identical macro targets can see different results based on genetics, sleep, stress, and consistency.
Embed this calculator on your site
Paste this code where you want the calculator to appear. It is responsive, mobile-friendly, resizes automatically, and is free to use as long as the credit line stays in place.
<script src="https://calctide.com/embed.js" data-tool="macro-calculator" async></script>
<p style="font-size:12px;margin:4px 0 0">Macro Calculator by <a href="https://calctide.com/health/macro-calculator/">CalcTide</a></p>Preview the embed at /embed/macro-calculator/.