1,778
kcal
2,755
kcal
2,755
kcal
160
g
77
g
357
g
640
kcal
689
kcal
1,426
kcal
23.2
%
25
%
51.8
%
2,115
kcal
1,778
kcal
2,755
kcal
2,755
kcal
160
g
77
g
357
g
640
kcal
689
kcal
1,426
kcal
23.2
%
25
%
51.8
%
2,115
kcal
IIFYM (If It Fits Your Macros) is a flexible dieting approach that focuses on meeting specific macronutrient targets rather than restricting food choices. Also known as flexible dieting, IIFYM holds that body composition outcomes are determined primarily by total calorie and macronutrient intake rather than the specific foods consumed. This approach has gained enormous popularity because it allows dietary freedom while still producing measurable results for fat loss, muscle gain, and body recomposition.
This IIFYM Calculator uses a protein-priority approach, which is considered the most effective method for setting macronutrient targets. First, protein is calculated based on body weight (using grams per kilogram), ensuring adequate intake for muscle preservation and growth. Next, fat is set as a percentage of total calories to maintain hormonal health and nutrient absorption. Finally, remaining calories are allocated to carbohydrates, which serve as the flexible variable that adjusts based on the other two macronutrients.
The protein-priority method is superior to simple percentage-based macro splitting because protein needs scale with body weight, not total calorie intake. A 90 kg athlete and a 55 kg sedentary person eating the same number of calories have very different protein needs. By setting protein per kilogram of body weight (typically 1.6-2.2 g/kg for active individuals), this calculator ensures adequate protein regardless of calorie level, then distributes the remaining calories between fat and carbohydrates.
The IIFYM philosophy does not mean eating nothing but junk food that fits your numbers. Most practitioners follow an 80/20 approach: 80% of calories from nutrient-dense whole foods and 20% from flexible choices. This ensures micronutrient adequacy, fiber intake, and overall diet quality while allowing the psychological freedom to include any food without guilt. Research shows that flexible dietary approaches produce equal or better long-term adherence compared to rigid meal plans.
To use this calculator, set your protein based on your training goals (1.6-2.2 g/kg for muscle-focused goals, 0.8-1.2 g/kg for sedentary adults), choose a fat percentage (minimum 20% for hormonal health, up to 35-40% for preference), and the calculator automatically fills the remainder with carbohydrates. This gives you a complete, balanced macronutrient plan that you can hit with any combination of foods that appeal to you. Track your intake using a food logging app and focus on consistency over perfection.
TDEE is calculated using the Mifflin-St Jeor equation. Target calories = TDEE + goal adjustment. Protein is set first: Protein (g) = Body Weight (kg) x Protein Factor (g/kg). Fat is set next: Fat (g) = Target Calories x Fat% / 9. Carbs fill the remainder: Carb (g) = (Target Calories - Protein Calories - Fat Calories) / 4. The calculator also shows the resulting percentage breakdown for all three macros.
Your protein target is the most important number to hit consistently. Fat should be at least 20% for hormonal health. Carbs are the flexible variable — if carbs seem too low, reduce fat percentage slightly. The percentage breakdown shows how your macros compare to standard recommendations. Track daily using a food app and aim for plus or minus 5g accuracy on protein and within 10g on carbs and fat.
Inputs
Results
An 85 kg male bulking gets 170g protein, 94g fat, and 463g carbs for 3372 kcal.
Inputs
Results
A 60 kg female cutting at 1499 kcal gets 132g protein, 47g fat, 143g carbs.
IIFYM stands for If It Fits Your Macros. It is a flexible dieting approach where you can eat any foods as long as you meet your daily macronutrient (protein, carbs, fat) and calorie targets. The focus is on hitting numbers, not restricting food types.
Yes. Weight loss is driven by a caloric deficit regardless of food choice. IIFYM ensures adequate protein to preserve muscle while creating a deficit. Studies show flexible dieting produces equal or better long-term results compared to rigid meal plans due to improved adherence.
Traditional macro counting often uses percentage-based splits (e.g., 30/40/30). IIFYM typically prioritizes protein per body weight first, then fills remaining calories with fat and carbs. The philosophy also emphasizes dietary flexibility over food restriction.
Technically yes, but most successful IIFYM practitioners follow an 80/20 rule — 80% nutrient-dense whole foods, 20% flexible choices. This ensures adequate micronutrient and fiber intake while allowing dietary freedom.
For sedentary adults: 0.8-1.0 g/kg. For recreational exercisers: 1.2-1.6 g/kg. For active muscle building: 1.6-2.2 g/kg. For athletes in a caloric deficit: 2.0-2.4 g/kg. Higher protein helps preserve muscle during weight loss.
If the remaining carb calculation yields very few grams, you can either lower your fat percentage (minimum 20%), slightly reduce protein (but not below 1.6 g/kg for active individuals), or accept that your calorie target may be too aggressive.
For best results, track consistently for at least 4-8 weeks to learn portion sizes and develop habits. After that, many people can estimate portions accurately. However, during aggressive cuts or dedicated building phases, continued tracking is recommended.
IIFYM can be very healthy when implemented correctly with emphasis on whole foods, adequate fiber (25-38g), and varied nutrient sources. It can also be unhealthy if taken to the extreme of eating only processed foods that technically fit the numbers.
Consistency is ideal for beginners. Advanced practitioners may use calorie and carb cycling (higher carbs on training days, lower on rest days) while keeping weekly averages consistent. Protein should remain consistent daily regardless.
TDEE equations are estimates with approximately plus or minus 10% accuracy. Use the calculated values as a starting point, then adjust based on actual weight changes over 2-3 weeks. If weight is not changing as expected, adjust calories by 200-300 kcal.
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!
Macro Calculator
Macronutrient & Micronutrient Calculators
Protein Calculator
Macronutrient & Micronutrient Calculators
Carb Calculator
Macronutrient & Micronutrient Calculators
Fat Intake Calculator
Macronutrient & Micronutrient Calculators
Fiber Calculator
Macronutrient & Micronutrient Calculators
Net Carbs Calculator
Macronutrient & Micronutrient Calculators