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.
Common Macro Splits by Goal
Typical protein, carb, and fat percentage splits used for different training and diet goals. Use these as a starting point, then adjust based on how your body responds.
| Goal | Protein % | Carbs % | Fat % |
|---|---|---|---|
| Balanced / general health | 30% | 40% | 30% |
| Fat loss / cutting | 35-40% | 25-35% | 25-30% |
| Muscle gain / bulking | 25-30% | 45-55% | 20-25% |
| Endurance training | 20-25% | 55-65% | 15-20% |
| Low-carb / keto | 20-25% | 5-10% | 65-75% |
These ranges are common starting points, not fixed prescriptions. Individual needs vary by body size, activity level, and training goal.
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. They do not account for individual factors such as medical conditions, digestion, food sensitivities, medication interactions, 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
Drop this single line where you want the calculator to appear. It is responsive, mobile-friendly, resizes automatically, and is free to use with attribution.
<script src="https://calctide.com/embed.js" data-tool="macro-calculator" async></script>Preview the embed at /embed/macro-calculator/.