IIFYM Calculator
Find your flexible dieting macros the classic IIFYM way — protein and fat set from your bodyweight, carbs filling in the rest — plus a weekly calorie bank and a flex-treat allowance.
Carbs fill in whatever calories are left — that's what makes them the flexible macro.
4 meals a day — macros will be split evenly.
15% of carb + fat calories can come from any food, as long as protein stays fixed.
Weekly total stays fixed — the other days trim slightly to fund your boost days.
Try an example
Your calorie target for lose fat, split into macros below.
Protein
31%
Carbs
48%
Fat
21%
Macro Breakdown, Weekly Bank & Meals
See your split visually, bank extra calories onto chosen days without changing your weekly total, and view your per-meal targets.
Protein and fat come straight from your bodyweight; carbs fill whatever calories are left of your 2,119 kcal/day target.
Fiber target: 30 g/day
Added sugar limit: under 53 g/day
Water guideline: ~2.5 L/day
Roughly 219 flex kcal/day fits into:
Step-by-Step Solution
Here's exactly how this answer was calculated, one step at a time.
Given: Male, 28 yrs, 75 kg, 175 cm, Moderately active (3–5 days/week), goal: Lose Fat
Step 1: Convert your measurements to metric
Weight = 75 kg = 75 kg (165.3 lb) Height = 175 cm = 175 cmStep 2: Calculate BMR using the Mifflin-St Jeor equation
For men, add 5 to the base calculation.
BMR = 10 × 75 + 6.25 × 175 − 5 × 28 + 5 = 1,709 kcal/dayStep 3: Multiply by your activity multiplier to find TDEE
Activity level: Moderately active (3–5 days/week). This is your maintenance calorie intake.
TDEE = 1,709 kcal/day × activity factor = 2,649 kcal/dayStep 4: Adjust TDEE for your goal (Lose Fat, Moderate)
A calorie deficit is subtracted from TDEE so your body draws on stored fat for energy.
Target calories = 2,649 kcal × goal adjustment = 2,119 kcal/dayStep 5: Set protein directly from bodyweight — the classic IIFYM step
IIFYM anchors protein to bodyweight first, rather than to a percentage of calories, so it stays consistent even as your calorie target changes.
Protein = 1 g/lb × 165.3 lb = 165 g (661 kcal)Step 6: Set fat directly from bodyweight
Fat is set the same way, giving your body a fixed minimum for hormone health regardless of how carbs move around.
Fat = 0.3 g/lb × 165.3 lb = 50 g (446 kcal)Step 7: Fill the remaining calories with carbs
Whatever calories are left after protein and fat are covered become your carb budget — this is what makes carbs the flexible macro in IIFYM.
Carbs = (2,119 − 661 − 446) ÷ 4 = 253 gStep 8: Final answer
165g protein · 253g carbs · 50g fat = 2,119 kcal/day
Your daily IIFYM macro target:
165P / 253C / 50F
IIFYM Calculator - Find Your Flexible Dieting Macros In Seconds
IIFYM stands for "if it fits your macros," and it is one of the simplest ideas in all of nutrition: hit your daily protein, carb, and fat numbers, and the specific foods you eat to get there are entirely up to you. No banned foods, no rigid meal plan, no guilt over a slice of pizza, as long as it fits inside the numbers this calculator gives you. This tool builds those numbers the way the IIFYM community actually does it, by anchoring protein and fat directly to your bodyweight first, then letting carbs fill in whatever calories are left over.
Just enter your age, weight, height, activity level, and goal, and you get a full daily macro target in grams, ready to plug straight into MyFitnessPal, Cronometer, or a plain notebook. Past that, this calculator goes further than a basic macro split: it includes an advanced Katch-McArdle option for lean, tracked lifters, a weekly calorie bank so you can eat more on weekends without blowing your progress, and a flex-treat allowance that tells you how many cookies, slices, or scoops of ice cream still fit your day.
What Does IIFYM Actually Mean?
IIFYM grew out of the bodybuilding and physique world in the early 2010s as a pushback against overly strict "clean eating" plans that banned entire food groups. The core insight is that your body responds to total protein, carbs, and fat over the day, not to whether a gram of carbohydrate came from brown rice or a doughnut. Get the totals right, consistently, and the day-to-day food choices become a matter of personal preference rather than a moral test.
That does not mean food quality is irrelevant. Whole, minimally processed food still tends to come packed with fiber, vitamins, and minerals that a doughnut simply does not have, and this calculator's fiber, sugar, and water guidelines are there to keep that side of things in check. IIFYM is best understood as flexibility inside a structure, not a free pass to eat only junk food while technically hitting a protein number.
Why This Calculator Uses Bodyweight, Not Percentages
Most macro calculators split your calories using fixed percentages, like 30% protein, 40% carbs, 30% fat. The problem is that a percentage means something completely different depending on your bodyweight. A 30% protein target is a very different number of grams for someone who weighs 55 kg compared to someone who weighs 100 kg, even though both people might need roughly the same grams of protein per kilogram of bodyweight to build or hold onto muscle.
This calculator fixes that by using the method the original IIFYM community actually built: protein and fat are calculated directly in grams per pound of bodyweight, and carbs simply absorb whatever calories are left once those two are covered. That keeps your protein and fat targets stable and personal to you, no matter how your calorie target shifts between a cut, a bulk, or a maintenance phase.
How This IIFYM Calculator Works, Step By Step
The math runs in four stages, and you can see every step worked out live in the solution panel below the calculator.
- BMR: your Basal Metabolic Rate is estimated with the Mifflin-St Jeor equation by default, or with Katch-McArdle if you enter a body fat percentage, since Katch-McArdle uses lean body mass and tends to be more accurate for leaner, more muscular people.
- TDEE: your BMR is multiplied by an activity factor that matches your weekly movement, giving your Total Daily Energy Expenditure, the calories that keep your weight steady right now.
- Target calories: your TDEE is adjusted up or down based on your goal and how aggressive you want to be, creating a deficit for fat loss or a surplus for muscle gain.
- Macros: protein and fat are set in grams per pound of your bodyweight, and every remaining calorie becomes carbs, which is the classic IIFYM formula in its simplest form.
Choosing Your Protein and Fat Numbers
The defaults change automatically with your goal, but you can override either slider at any time. For fat loss, a higher protein target (around 1.0 grams per pound of bodyweight) helps protect muscle while calories are restricted, alongside a slightly lower fat intake to leave more room for carbs and training performance. For maintenance and muscle gain, protein can sit a touch lower per pound since you are not fighting a calorie deficit, while fat rises slightly to support hormone production over the long run.
Fat should almost never be pushed dramatically low. Somewhere around 0.3 to 0.5 grams per pound of bodyweight, or roughly 20-30% of total calories, is a sensible floor for most people, since dietary fat plays a direct role in hormone health, vitamin absorption, and general wellbeing. Once protein and fat are locked in, whatever calories remain become your carb target automatically, which is exactly why carbs are described as the flexible macro in IIFYM.
The Weekly Calorie Bank: Eat More Where It Counts
Strict identical macros every single day works for some people, but plenty of others do better shifting calories around the week, eating a little tighter on quiet weekdays and a little looser around a Saturday dinner or a Sunday brunch. The weekly bank feature does exactly that: pick which days should get a boost, choose how much extra those days should receive, and the calculator automatically trims the remaining days just enough to keep your weekly total completely unchanged.
This is the same principle serious dieters use manually with a spreadsheet, just automated. Your weekly calorie and macro total for fat loss or muscle gain stays identical either way, only the daily distribution changes, which can make a stubborn diet noticeably easier to stick to without any negative effect on your actual results.
The Flex-Treat Allowance: How Many Cookies Actually Fit?
One of the most practical parts of IIFYM is knowing exactly how much room you have for something that is not exactly "clean." The flex-treat slider sets aside a percentage of your carb and fat calories, while protein stays completely untouched, and converts that leftover budget into real food examples like cookies, pizza slices, and scoops of ice cream, so the number on screen actually means something at the grocery store or a birthday party.
This is intentionally an estimate rather than an exact prescription, since real food never lines up perfectly with round numbers. Treat it as a sanity check: if your flex allowance comfortably covers a slice of pizza on a Friday night, you can enjoy it without derailing the week, and if it barely covers half a cookie, that is a useful signal to either adjust the slider or plan your treat for a boosted weekend day instead.
IIFYM Macros for Cutting, Bulking, and Maintenance
For a cut, combine a moderate deficit with a higher protein target (close to 1.0 g/lb) and a slightly leaner fat intake, which keeps hunger and muscle loss under control while calories are restricted. Avoid stacking an aggressive deficit on top of an aggressive protein and fat cut at the same time, since that combination usually leaves very few carbs for training energy and makes the whole plan hard to sustain.
For a lean bulk, a mild to moderate surplus with slightly lower protein per pound (since total calories are higher already) and a touch more fat works well, leaving plenty of carbs to fuel harder training sessions and support recovery. For maintenance, matching intake to TDEE with moderate protein and fat settings is the simplest, most sustainable long-term setup, and a good starting point if you are brand new to macro tracking and just want an accurate baseline before changing anything.
Common IIFYM Mistakes To Avoid
A correct set of numbers only helps if it is followed with reasonable consistency, and a handful of habits quietly undo otherwise solid macro targets.
- Treating IIFYM as permission to eat only processed food, which leaves you short on fiber, vitamins, and minerals even while technically hitting your macros.
- Guessing portions instead of weighing food, since eyeballed servings are routinely off by 20-30%, enough to stall progress for weeks without an obvious cause.
- Ignoring the fat minimum to squeeze in more carbs, which can affect energy, hormones, and how you feel over a period of months.
- Not recalculating after meaningful weight change, since your TDEE moves as your bodyweight does, and stale numbers slowly become inaccurate.
- Skipping protein tracking on "good" days because carbs and fat felt easy to hit, when protein is usually the macro that matters most for body composition.
Who Should Use This IIFYM Calculator
This tool works well for lifters and physique athletes who already understand macro basics and want the classic bodyweight-anchored method instead of a generic percentage split, as well as for complete beginners who want a genuine, food-freedom-friendly starting point instead of a restrictive meal plan. Coaches can use it to generate a fast, personalized starting point for a new client before fine-tuning based on real-world progress.
This calculator produces an estimate based on established formulas and widely used sports-nutrition guidelines, not personalized medical advice. Anyone pregnant or breastfeeding, managing diabetes or another metabolic condition, or working with a doctor or registered dietitian for any reason should treat these numbers as a general reference point and follow individualized professional guidance instead.
Frequently Asked Questions
What does IIFYM stand for?
IIFYM stands for "if it fits your macros," a flexible dieting approach where you can eat any food you like as long as it fits within your daily protein, carb, and fat targets. It focuses on hitting total daily numbers rather than following a fixed list of approved and banned foods.
How is an IIFYM calculator different from a regular macro calculator?
A regular macro calculator usually splits your calories using fixed percentages for protein, carbs, and fat. This IIFYM calculator instead sets protein and fat directly from your bodyweight in grams per pound, which is the classic method the IIFYM community actually uses, and lets carbs fill in whatever calories are left over.
How much protein should I eat on IIFYM?
A common starting point is around 0.8 to 1.0 grams of protein per pound of bodyweight, with people in a calorie deficit often doing better near the higher end of that range to help protect muscle mass. You can adjust the protein slider in this calculator directly instead of relying on a percentage.
Can I really eat junk food on IIFYM and still lose weight?
Yes, as long as the calories and macros still add up correctly over the day, since your body responds to total intake rather than the specific source of a gram of carbohydrate or fat. That said, whole foods bring fiber, vitamins, and minerals that heavily processed food usually lacks, so most successful IIFYM dieters build most meals around whole food and use a smaller flex allowance for treats.
What is the weekly calorie bank feature for?
It lets you shift extra calories onto specific days, like a Saturday dinner or a weekend brunch, by trimming the remaining days slightly, while your total weekly calories and macros stay exactly the same. It is a way to make a diet easier to stick to without changing your actual weekly results.
How is the flex-treat calorie allowance calculated?
It takes a percentage of your carb and fat calories, based on the slider you set, while leaving your protein target completely untouched, and converts that budget into a carb-equivalent gram figure. The calculator then shows roughly how many cookies, pizza slices, or scoops of ice cream that budget could realistically cover in a day.
Should I use Mifflin-St Jeor or Katch-McArdle for my BMR?
Mifflin-St Jeor is the better default for most people since it only needs age, weight, height, and gender. Katch-McArdle becomes more accurate once you know your body fat percentage, because it calculates BMR from lean body mass instead of total weight, which suits leaner or more muscular individuals better.
How accurate is this IIFYM calculator?
It is built on the Mifflin-St Jeor and Katch-McArdle equations, both generally accurate within about 10% for healthy adults, combined with widely used bodyweight-based protein and fat guidelines from sports nutrition. Like any formula it is an estimate, so track your real-world results for a few weeks and adjust the numbers if progress stalls.