Macro Calculator
Get your ideal protein, carbohydrates, and fat breakdown
Quick Answer
A balanced macro split is roughly 30% protein, 40% carbs, and 30% fat — but your ideal ratio depends on your goals.
Macro Calculator: formula, worked examples and limitations
A complete reference answer — readable without using the calculator.
Definition
Macronutrient targets divide a calorie budget between protein, carbohydrate and fat according to the training and body-composition goal.
What it measures
It converts a calorie target into grams per macronutrient. It does not assess micronutrients, food quality or meal timing.
Formula
- Protein (g) = calories × protein% ÷ 4
- Carbohydrate (g) = calories × carb% ÷ 4
- Fat (g) = calories × fat% ÷ 9
- Splits used: fat loss 40/30/30, maintenance 30/40/30, muscle gain 30/50/20 (protein/carbs/fat)
Worked examples
Computed with the same engine as the calculator above.
Fat loss at 2200 kcal
Inputs: calories = 2200, split = 40% protein / 30% carbs / 30% fat
Protein = 2200×0.40÷4, Carbs = 2200×0.30÷4, Fat = 2200×0.30÷9
220 g protein, 165 g carbs, 73 g fat
| Goal | Split (P/C/F) | Protein | Carbs | Fat |
|---|---|---|---|---|
| Fat loss | 40/30/30 | 220 g | 165 g | 73 g |
| Maintenance | 30/40/30 | 165 g | 220 g | 73 g |
| Muscle gain | 30/50/20 | 165 g | 275 g | 49 g |
Method
The calorie total is multiplied by each macronutrient's percentage and divided by its energy density (4, 4 and 9 kcal per gram).
Limitations
- Percentage splits are heuristics, not clinical prescriptions; protein per kilogram of body weight is a more precise target.
- Very low fat intake (below about 0.5 g/kg) can impair hormone production.
- Rounding each macro independently can make the reconstructed calorie total differ by up to about 10 kcal.
Rounding rules
Grams are rounded to the nearest whole gram.
Evidence level
Guideline-based, not a validated formula. The splits sit inside the IOM Acceptable Macronutrient Distribution Ranges and ISSN protein guidance. Several different splits can be equally valid for the same person.
Sources
- Morton RW et al. A systematic review, meta-analysis and meta-regression of the effect of protein supplementation on resistance training-induced gains in muscle mass and strength. Br J Sports Med. 2018;52:376–384
- Institute of Medicine — Dietary Reference Intakes: Acceptable Macronutrient Distribution Ranges, 2005
- Jäger R et al. ISSN Position Stand: Protein and exercise. J Int Soc Sports Nutr. 2017;14:20
Method and reference values last reviewed by the SnapBodyCalc editorial team.
Enter Your Information
All calculations happen in your browser — your data stays private
Learn more
Macros Made Simple: Protein, Carbs, and Fat ExplainedMacronutrients are the building blocks of your diet. Understanding how to balance protein, carbs, and fat can transform your nutrition and help you reach your goals.
Read articleRelated Calculators
Frequently Asked Questions
Understanding Macronutrients: The Complete Guide to Macro Tracking
Macronutrients — protein, carbohydrates, and fat — are the three nutrients your body needs in large quantities for energy, growth, and repair. While total calorie intake determines whether you gain or lose weight, your macro distribution profoundly affects body composition, energy levels, hormonal balance, and overall health. Understanding and tracking macros gives you far more control over your results than counting calories alone.
The Three Macronutrients Explained
Protein (4 calories per gram) is essential for building and repairing muscle, producing enzymes and hormones, supporting immune function, and maintaining skin, hair, and nails. It has the highest thermic effect of food (TEF), meaning your body burns 20–30% of protein calories just digesting it. Carbohydrates (4 calories per gram) are your body's preferred energy source, fueling your brain, central nervous system, and muscles during exercise. They also play a role in mood regulation through serotonin production. Fat (9 calories per gram) is crucial for hormone production (including testosterone and estrogen), vitamin absorption (vitamins A, D, E, K are fat-soluble), brain function, and cell membrane integrity.
How Our Macro Calculator Works
Our calculator takes your total daily calorie target and distributes it across protein, carbs, and fat based on your selected goal. First, calculate your calories using our Calorie Calculator or TDEE Calculator. Then enter that target here along with your goal to get personalized macro recommendations in both grams and percentages.
Optimal Macro Ratios by Goal
For fat loss, a higher protein ratio (40% protein, 30% carbs, 30% fat) helps preserve muscle during a calorie deficit and increases satiety. For muscle building, moderate-to-high carbs fuel intense training (30% protein, 45% carbs, 25% fat). For maintenance, a balanced approach (30% protein, 40% carbs, 30% fat) supports overall health. These are starting points — individual responses vary, and our calculator adjusts these ratios based on your selected goal.
Why Protein Gets Priority
Regardless of your goal, protein should be your first macro priority. Research consistently shows that adequate protein (1.6–2.2 g/kg body weight for active individuals) preserves lean mass during dieting, supports muscle growth, increases metabolic rate through TEF, and improves satiety. Our Protein Calculator can help you determine your specific protein needs before setting your other macros.
Flexible Dieting and Macro Tracking
Macro tracking, sometimes called "flexible dieting" or "IIFYM" (If It Fits Your Macros), allows you to eat a variety of foods while meeting your nutritional targets. This approach is more sustainable than rigid meal plans because no foods are completely off-limits — as long as they fit your daily macro budget. However, prioritizing whole, nutrient-dense foods is still important for micronutrient intake and overall health.
Common Macro Tracking Mistakes
The most common mistakes include: not weighing food (eyeballing portions can be off by 30–50%), forgetting to log cooking oils and sauces (which can add 100–300 hidden calories), setting macros too rigidly (aim for weekly averages, not daily perfection), and neglecting fiber intake. Aim for at least 25–30 g of fiber per day from carbohydrate sources like vegetables, fruits, and whole grains.
Adjusting Your Macros Over Time
Your macro needs aren't static. As your body composition changes, your calorie needs shift, and your macros should be recalculated. If weight loss stalls, consider reducing carbs or fat by 5–10% while keeping protein stable. If you're not gaining muscle, increase carbs for more workout energy. Reassess every 4–6 weeks using your TDEE Calculator results.
Macros for Special Diets
Whether you follow a ketogenic diet (high fat, very low carb), vegetarian, vegan, or Mediterranean diet, macro tracking applies. Keto typically uses 70% fat, 25% protein, 5% carbs. Plant-based diets may require slightly higher total protein to compensate for lower amino acid bioavailability. The key is matching your macro distribution to both your goal and your dietary preferences for long-term adherence.
Your Data Stays Private
All calculations are performed locally in your browser. SnapBodyCalc does not send to our servers or store your calorie targets, macro ratios, or any other personal information. Analytics and web fonts still make standard requests that include your IP address and the page URL — but never your measurements.