1,709
kcal
2,649
kcal
2,649
kcal
150
g
60
g
377
g
37
g
600
kcal
540
kcal
1,509
kcal
1,709
kcal
2,649
kcal
2,649
kcal
150
g
60
g
377
g
37
g
600
kcal
540
kcal
1,509
kcal
The IIFYM Calculator — based on the flexible dieting philosophy of "If It Fits Your Macros" — calculates your personalized daily targets for protein, fat, and carbohydrates while allowing complete food freedom within those numbers. Unlike rigid meal plans that prescribe specific foods, IIFYM treats food as interchangeable within macronutrient categories, empowering you to eat foods you enjoy as long as your daily macro totals are met.
IIFYM was popularized in online fitness communities in the early 2010s as a reaction against unnecessarily restrictive "clean eating" dogma. The underlying science is straightforward: body composition is primarily determined by total caloric intake and macronutrient distribution, not by the specific foods consumed. A gram of protein from chicken breast and a gram of protein from Greek yogurt have the same effect on muscle protein synthesis. This does not mean all foods are equally healthful (micronutrients, fiber, and phytochemicals still matter), but it democratizes the dietary experience and dramatically improves long-term adherence.
This calculator uses the Mifflin-St Jeor equation for BMR and your activity factor to compute TDEE. It then applies your goal adjustment — from an aggressive 750 kcal cut to a 500 kcal lean bulk surplus. Protein is set at 2.2g per kg of lean body mass (calculated from your body fat percentage), which is at the high end of evidence-based recommendations and ensures maximum muscle retention during a cut or optimal synthesis during a bulk. Fat is set at a minimum of 1.0g per kg body weight to support hormonal function, fat-soluble vitamin absorption, and cell membrane integrity. Carbohydrates fill the remaining calories after protein and fat are accounted for, making them the "flexible" macro that adjusts automatically based on your goal.
A key IIFYM requirement — sometimes overlooked — is hitting your minimum fiber target (25g/day women, 38g/day men per the Institute of Medicine). Fiber is essential for gut health, satiety, blood sugar regulation, and microbiome diversity. Meeting fiber targets within your macro budget naturally encourages inclusion of vegetables, legumes, and whole grains, ensuring nutritional quality despite food flexibility.
IIFYM has been shown in research to be as effective as traditional meal plans for weight loss and muscle gain when total protein and calorie targets are matched, with superior adherence rates due to reduced dietary boredom and social restriction.
BMR (Mifflin-St Jeor): Male = 10W + 6.25H − 5A + 5; Female = 10W + 6.25H − 5A − 161. TDEE = BMR × Activity Factor. Target = TDEE + goal adjustment. Lean Mass = Weight × (1 − BF%/100). Protein = Lean Mass × 2.2g/kg. Fat = Weight × 1.0g/kg. Carbs = (Target − Protein×4 − Fat×9) / 4. Fiber minimum = 38g (men) / 25g (women).
Hit your protein target first — it is the most critical macro for body composition. Fat minimum supports hormone production; do not drop below it. Carbs are flexible — fill the remaining calories from any food source. Always meet minimum fiber. If carbs come out negative, reduce fat slightly or increase calories. Track with a food logging app daily.
Inputs
Results
Lean mass = 80 × 0.82 = 65.6 kg. Protein = 65.6 × 2.2 = 144g. Fat = 80 × 1.0 = 80g. Carbs = (2437 − 144×4 − 80×9) / 4 = (2437 − 576 − 720) / 4 = 285g. Fiber ≥ 38g.
Inputs
Results
Lean mass = 58 × 0.75 = 43.5 kg. Protein = 43.5 × 2.2 = 96g. Fat = 58 × 1.0 = 58g. Carbs = (2104 − 96×4 − 58×9) / 4 = (2104 − 384 − 522) / 4 = 300g. Fiber ≥ 25g.
IIFYM emphasizes food freedom — you can eat any foods as long as you hit your macro targets. It sets protein based on lean body mass (more precise than total body weight) and explicitly calculates carbs as the residual after protein and fat are allocated, reflecting how most flexible dieters structure their eating.
Yes. IIFYM requires consistent tracking to work. Apps like MyFitnessPal, Cronometer, or MacroFactor allow you to log foods by scanning barcodes or searching a database. Tracking builds nutritional awareness; many people naturally internalize portions after 3–6 months and need less rigid tracking over time.
Technically yes, if it fits your macros. However, meeting fiber (25–38g/day), micronutrient, and vegetable targets within a limited caloric budget naturally limits how much processed food is feasible. IIFYM is not a license to eat only junk food — it simply removes the moral stigma around specific foods while keeping metabolic targets central.
Lean mass (fat-free mass) is the metabolically active tissue that requires protein for maintenance and growth. Setting protein relative to lean mass rather than total body weight produces more accurate targets, especially for individuals with higher body fat percentages who would otherwise be recommended excess protein that merely increases calories without additional benefit.
If carbs are very low (under 50g) or negative, your calorie target may be too low to accommodate both protein and fat minimums. Either increase your calorie target (less aggressive deficit) or reduce fat slightly above the 1g/kg minimum. Never sacrifice protein below 1.6g/kg lean mass.
Yes. Protein targets can be met through plant sources (legumes, tofu, tempeh, seitan, edamame, protein powders). Vegans may need to pay closer attention to total protein distribution across meals and ensure intake of all essential amino acids by combining complementary protein sources or using complete protein foods.
Meal timing is secondary to daily totals for most people. Research shows that distributing protein across 3–5 meals (20–40g per meal) may optimize muscle protein synthesis, but missing a meal or eating late does not negate progress as long as daily totals are met. This flexibility is one of IIFYM's practical advantages.
Choose the factor matching your typical week: sedentary (desk job, no exercise), lightly active (1–3 days casual exercise), moderately active (3–5 days gym), very active (daily training or physical job), extra active (2-a-day sessions, very intense training, or heavy labor). Overestimating activity is the most common error leading to insufficient fat loss.
Carb cycling (higher carbs on training days, lower on rest days) is an advanced IIFYM strategy. For beginners, using the same daily targets is simpler and equally effective. Carb cycling may improve glycogen replenishment and fat oxidation for advanced athletes but requires more precise tracking.
Give targets 3–4 weeks before adjusting. Track weekly average weight (weigh daily, average the week) to account for water fluctuations. If weight trends do not match your goal after 3 weeks, adjust calories by 100–150 kcal in the appropriate direction. Reassess macros every 4–6 kg of weight change.
Roboculator Team
The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.
How helpful was this calculator?
Be the first to rate!