Macro Calculator

Calculate your daily protein, carbohydrate, and fat targets based on your body stats and goal. Choose from fat loss, maintenance, or muscle gain with goal-optimized macro splits.

This calculator estimates your TDEE using the Mifflin-St Jeor equation, applies your goal's calorie adjustment, then splits the result into protein, carb, and fat grams using a goal-specific percentage split. Goal calories are floored at safe minimums (1,200 cal/day for women, 1,500 for men).

Your stats IIFYM approach
yrs
ft
in
lbs

"Macros" — short for macronutrients — are the three nutrients that make up nearly all the calories you eat: protein, carbohydrates, and fat. While total calories determine whether you lose, maintain, or gain weight, how those calories are split between the three macros shapes muscle preservation, energy levels, and hunger along the way. This calculator estimates a full set of daily gram targets from your TDEE and a goal-specific macro split.

What macros are and why the split matters

Every calorie you eat comes from one of three macronutrients, each with a fixed energy value: protein and carbohydrates both provide 4 calories per gram, while fat provides 9 calories per gram (alcohol, a less commonly discussed fourth source, provides 7 calories per gram but isn’t a macronutrient the body needs). Two diets with identical total calories can still produce meaningfully different results depending on how those calories are divided — a higher-protein diet during a calorie deficit, for instance, tends to preserve more muscle tissue than a lower-protein diet at the same total calorie level, even though both diets create the same calorie deficit on paper.

This is why calorie counting alone is an incomplete picture for anyone with a specific body composition goal. Total calories set the direction (lose, maintain, gain), while the macro split influences what kind of weight is lost or gained along the way, and how the day-to-day experience of the diet feels — protein and fiber-rich carbohydrates tend to be more satiating per calorie than fat, for example, which is part of why higher-protein diets are often reported as easier to sustain despite being in a deficit.

There’s also a fourth number worth understanding alongside the three macros: fiber. Fiber is technically a subtype of carbohydrate, but it isn’t digested and absorbed the way other carbs are, so it doesn’t contribute meaningfully to calorie totals despite being counted within total carb grams on a nutrition label. This calculator, like most macro tools, reports total carbohydrate grams rather than separately tracking fiber — worth keeping in mind when comparing “net carbs” figures (total carbs minus fiber) that some other tools and food trackers use instead. This site’s dedicated Fiber Calculator covers daily fiber targets in more detail.

How this calculator estimates your targets

The calculation happens in two steps. First, TDEE (Total Daily Energy Expenditure) is estimated using the Mifflin-St Jeor equation and your activity level — the same method used by this site’s Calorie Calculator. Second, a goal-specific calorie adjustment is applied (a deficit for fat loss, a surplus for muscle gain, no change for maintenance), and the resulting calorie target is split into protein, carb, and fat grams using goal-specific percentages.

Gram conversionProtein grams = (Goal calories × protein%) ÷ 4
Carb grams = (Goal calories × carb%) ÷ 4
Fat grams = (Goal calories × fat%) ÷ 9

Like the Calorie Calculator, goal calories are floored at a safe minimum — 1,200 cal/day for women, 1,500 cal/day for men — even when a larger deficit would otherwise compute to a lower number. This matters slightly more here than on the plain Calorie Calculator, since a floored calorie total changes the macro math too: hitting the floor means your actual deficit is smaller than the goal you selected implies, which the results panel notes directly when it happens.

Macro splits by goal

GoalCalorie adjustmentProteinCarbsFat
Aggressive fat loss−1,000 cal/day40%30%30%
Moderate fat loss−500 cal/day35%35%30%
MaintenanceNo change30%40%30%
Lean muscle gain+500 cal/day30%45%25%
Aggressive bulk+1,000 cal/day25%50%25%

The protein percentage climbs as the calorie deficit gets larger, for a specific reason covered in more detail below: keeping absolute protein grams high while total calories fall requires protein to claim a bigger share of a smaller total. Carbohydrate percentage tends to rise with surplus-based goals, since carbs are the body’s preferred fuel for the higher training volume that typically accompanies a muscle-building phase, and there’s more calorie “room” to include them once the deficit is removed.

Worked example

Using this calculator’s own default example — a 30-year-old man, 175 lbs, 5’10” tall, moderately active, goal: moderate fat loss:

Step by stepBMR ≈ 1,760 cal/day · TDEE ≈ 1,760 × 1.55 = 2,728 cal/day
Goal calories = 2,728 − 500 = 2,228 cal/day (moderate fat loss split: 35% protein / 35% carbs / 30% fat)
Protein: (2,228 × 0.35) ÷ 4 ≈ 195g · Carbs: (2,228 × 0.35) ÷ 4 ≈ 195g · Fat: (2,228 × 0.30) ÷ 9 ≈ 74g

Notice that 195g of protein at this body weight works out to roughly 2.5g per kg of body weight — higher than the general 1.6–2.0 g/kg range this site’s Protein Calculator shows for “moderately active, fat loss.” This isn’t a contradiction between the two tools: it’s a direct result of applying a fixed protein percentage to a reduced-calorie total, and it lands within the higher end of the range that sports nutrition research supports specifically for preserving muscle during more aggressive calorie deficits (commonly cited up to roughly 2.3–3.1 g/kg/d in that specific context). If a computed protein gram target looks unusually high or low compared to a body-weight-based estimate elsewhere on this site, this percentage-vs-absolute distinction is almost always why.

Why protein gets priority treatment

Among the three macros, protein is the one nutrition research treats as least flexible — it’s the macro most directly tied to preserving lean muscle tissue during a calorie deficit and supporting muscle repair during a surplus. Carbohydrate and fat percentages, by contrast, are more a matter of personal preference and performance context than a hard requirement: some people perform and feel better on higher-carb, lower-fat diets, and others do fine the other way, as long as both remain within reasonable, health-supporting ranges and total calories are correct for the goal.

This is why every split in the table above keeps protein at 25% or higher even during an aggressive bulk (where it would be easiest to shift more calories toward carbs), and pushes it to 40% during an aggressive cut. If time is limited and only one macro can be actively tracked, protein is generally the one worth prioritizing — hitting a solid protein target consistently, while eating reasonably otherwise, captures most of the practical benefit of full macro tracking for most people.

Carbohydrate and fat, by contrast, function more as a “fill the rest of the calorie budget” pair, and the balance between them can reasonably shift based on personal preference and how someone responds subjectively — energy levels, training performance, hunger, digestion — without much evidence that one specific carb-to-fat ratio outperforms another for body composition at a matched calorie and protein intake. This is a genuinely different situation from protein, where the research base is much clearer that going meaningfully below the recommended range costs muscle tissue during a deficit, regardless of personal preference.

Why the percentage split shifts between goals

It can look inconsistent at first that protein’s percentage changes across goals (25–40%) — shouldn’t it just be a fixed number? The reason comes back to the fact that percentages are relative to a moving target (total calories), while the underlying protein need in grams stays comparatively stable across a modest calorie range for a given body weight and activity level. As calories fall during a cut, protein’s percentage has to rise just to keep the absolute gram amount from falling too. As calories rise during a bulk, protein’s percentage can fall somewhat while the gram amount stays flat or even increases slightly, because there’s now more total calorie room for the same protein target.

Carb and fat percentages shift for more goal-specific reasons: carbs get a larger share during muscle-building phases both because there’s more calorie budget once the deficit is gone and because carbohydrate availability supports higher training volume and recovery; fat’s percentage stays comparatively stable across goals (25–30% throughout the table above) since it has more fixed, non-negotiable functions — hormone production and fat-soluble vitamin absorption chief among them — that don’t scale up or down as sharply with training goal the way protein and carb needs do.

IIFYM and flexible dieting

This calculator’s badge — “IIFYM approach” — refers to “If It Fits Your Macros,” a style of eating where the specific foods matter less than hitting daily protein, carb, and fat gram targets. Under a strict IIFYM approach, a donut and a serving of chicken and rice with the same macro totals are treated as interchangeable, since both “fit the macros” for the day.

The flexibility is real and can be genuinely useful for people who find rigid meal plans hard to sustain, but it’s worth treating macro targets as a floor for structure, not a ceiling that excuses poor food quality entirely. Two meals with identical protein/carb/fat totals can differ substantially in fiber, micronutrients (vitamins and minerals), and satiety — factors IIFYM doesn’t directly track but that still affect health and how sustainable the approach feels day to day. Most practitioners of flexible dieting land somewhere in the middle: hitting macro targets primarily with whole, minimally processed foods, while leaving room for foods that don’t fit a “clean eating” mold without treating every meal as an opportunity to maximize processed-food volume within the macro budget.

A practical middle ground some people use is a rough “80/20” guideline — roughly 80% of daily calories from minimally processed, nutrient-dense foods, with the remaining 20% left flexible for whatever fits the remaining macro budget and sounds appealing that day. This isn’t a rule with strong research backing behind the specific 80/20 split itself, but it captures the general principle reasonably well: food quality and macro totals aren’t actually competing goals, and a sustainable approach usually accounts for both rather than optimizing for macros alone at the total expense of nutrient density, or optimizing for “clean eating” so rigidly that the plan becomes hard to sustain socially and psychologically.

Tracking macros in practice

Hitting precise macro targets by memory alone is difficult for almost anyone — a food-logging app that looks up nutrition data and tallies your totals through the day is the practical way most people actually track macros, at least for the first few weeks while learning typical portion sizes and the macro content of regularly-eaten foods. After a few weeks, many people find they can hit their targets reasonably closely without logging every meal, having internalized rough macro counts for their usual foods.

A kitchen scale tends to make the learning phase noticeably faster and more accurate than eyeballing portions, since visual portion estimates (a “palm-sized” piece of chicken, a “cupped handful” of rice) can be off by a meaningful margin in either direction, and small per-meal errors compound across a full day of eating. Weighing food is most useful early on, purely as a calibration tool — most people don’t need to weigh every meal indefinitely once they’ve built an accurate mental reference for their regular foods.

It’s worth treating any macro calculator’s output — including this one — as a well-reasoned starting point rather than a fixed prescription. Individual response to a given macro split varies, and the “right” split is ultimately whatever combination of protein, carbs, and fat helps someone hit their calorie target consistently, train and recover well, and sustain the approach long enough to see results. Anyone with a complicated relationship with food or body image, or considering a significant, sustained calorie restriction, is better served working with a doctor or registered dietitian who can tailor guidance to individual circumstances in a way a calculator cannot.

Frequently asked questions
How are macro targets calculated from my TDEE?
First, TDEE is estimated using the Mifflin-St Jeor equation and your activity level. Then a goal-specific calorie adjustment is applied (a deficit for fat loss, a surplus for muscle gain), and the resulting calorie target is split into protein, carb, and fat grams using goal-specific percentages — for example, 35% protein / 35% carbs / 30% fat for moderate fat loss.
Why does my protein percentage change between goals?
Protein's percentage rises as the calorie deficit gets larger (25% during a bulk up to 40% during an aggressive cut) because keeping absolute protein grams high while total calories fall requires protein to claim a bigger share of a smaller total. The underlying protein need in grams stays comparatively stable for your body weight — it's the percentage that has to shift to match it.
What is IIFYM (If It Fits Your Macros)?
IIFYM is a flexible dieting approach that tracks total macronutrient grams rather than following specific meal plans — as long as you hit your protein, carb, and fat targets, the specific foods matter less. It's a useful tool for sustainability, but food quality, fiber, and micronutrients still matter for health, so most people combine IIFYM with a general emphasis on whole foods rather than using it to justify unlimited processed food.
Why is my protein target higher here than on the Protein Calculator?
This calculator applies a fixed protein percentage to your goal calories, while the Protein Calculator uses a body-weight-based gram range. During a calorie deficit, a percentage-based approach naturally produces a higher g/kg figure than a simple body-weight range, since protein must claim a larger share of fewer total calories — this is within the higher end of ranges sports nutrition research supports for preserving muscle during more aggressive cuts, not an error.
Do I need to hit my macros exactly every day?
No — treat daily targets as a reasonable range to aim for rather than an exact number that must be hit precisely. Weekly averages matter more than any single day, and most people find macro tracking most useful as a learning tool for portion sizes and food composition rather than a rule that needs to be followed with zero flexibility.
Should I track macros or just calories?
Total calories determine whether you lose, maintain, or gain weight; macros influence what kind of weight changes (muscle vs. fat) and how sustainable the process feels. Tracking calories alone is simpler and sufficient for many people, especially early on; adding macro tracking — protein in particular — becomes more valuable for anyone with a specific body composition or performance goal.

This calculator provides general health information only and is not a substitute for professional medical advice, diagnosis, or treatment. If you have health concerns, please speak with a qualified healthcare provider.