IIFYM Calculator

The “If It Fits Your Macros” (IIFYM) approach shifts the focus of weight management from restrictive caloric dieting to precise macronutrient composition. By calculating your total daily energy expenditure and distributing it among protein, fats, and carbohydrates, you can maintain a flexible, sustainable approach to improving body composition.

Personal Information
Activity Level
Goal
Your Daily Macros
How are these calculated?

The Mifflin‑St Jeor equation estimates your Basal Metabolic Rate (BMR). It is multiplied by your activity factor to obtain Total Daily Energy Expenditure (TDEE). Then a calorie surplus or deficit is applied based on your goal. Protein is set according to your body weight and goal (1.8–2.2 g/kg). Fat is allocated as a percentage of target calories, and the remaining calories are assigned to carbohydrates.

Disclaimer: These calculations are for informational purposes only and do not replace professional dietary advice. Consult a registered dietitian before making significant changes to your nutrition.

Disclaimer: This information is for educational purposes only and does not constitute medical advice. Consult with a healthcare professional or registered dietitian before making significant changes to your diet.

What is the IIFYM approach?

IIFYM, commonly known as flexible dieting, operates on the principle that the body is primarily concerned with the total intake of macronutrients rather than the source of the calories. While micronutrients (vitamins and minerals) and fiber remain important for overall health, your body composition–specifically fat loss or muscle gain–is dictated by the balance of:

  • Protein: Essential for muscle protein synthesis and repair.
  • Carbohydrates: The primary fuel source for high-intensity physical activity and brain function.
  • Fats: Necessary for hormonal regulation, vitamin absorption, and cell health.

Unlike traditional diets that ban specific foods, IIFYM allows you to incorporate a variety of foods as long as your daily total (the “macro budget”) is met.

How the IIFYM calculator works

The calculator above determines your macronutrient requirements using the Mifflin-St Jeor equation. This formula is widely recognized as one of the most accurate methods for calculating Basal Metabolic Rate (BMR) for the general population.

  1. BMR Calculation: The formula uses your age, weight, height, and gender to estimate the calories your body burns at rest.
  2. TDEE Estimation: Your BMR is multiplied by an activity factor to determine your Total Daily Energy Expenditure (TDEE). This represents the number of calories burned through daily movement and exercise.
  3. Macro Distribution: Once the target calorie intake is set based on your goal (cutting, maintenance, or bulking), the calculator distributes those calories across the three macronutrients.

Macronutrient math

Caloric values for macronutrients are standardized:

  • Protein: 4 calories per gram
  • Carbohydrates: 4 calories per gram
  • Fats: 9 calories per gram

Setting your macronutrient targets

Determining the ideal ratio depends on your specific goals and activity level. While the IIFYM calculator provides a standard starting point, these targets can be adjusted based on performance and lifestyle.

For weight loss

Targets prioritize high protein intake to preserve lean muscle mass while in a caloric deficit.

  • Protein: Generally set higher (1.6g to 2.2g per kg of body weight).
  • Fats: Maintained at a moderate level (often 20% to 30% of total calories).
  • Carbohydrates: Reduced to create the necessary caloric deficit while maintaining energy for essential activities.

For muscle gain

Targets prioritize a caloric surplus and sufficient carbohydrates to fuel training.

  • Protein: Sufficient for muscle synthesis (1.6g to 2.0g per kg of body weight).
  • Fats: Typically kept lower to allow for a higher carbohydrate intake.
  • Carbohydrates: Increased significantly to support training volume and glycogen replenishment.

Tips for success with IIFYM

To get the most out of your macro targets, consistency is the primary variable.

  • Track accurately: Use a food scale. Estimating portion sizes often leads to underreporting calories and overestimating portion sizes, which can stall progress.
  • Focus on food quality: While the IIFYM philosophy allows for “flexible” food choices, prioritize nutrient-dense whole foods (lean meats, vegetables, whole grains) to ensure you are also getting necessary fiber and micronutrients.
  • Monitor and adjust: Use the results of your tracking over 2 to 4 weeks. If weight loss or gain is not moving in the desired direction, adjust the total caloric intake by 200–300 calories and observe the trend for another cycle.
  • Hydration: Water intake impacts physical performance and digestion. Ensure adequate hydration, especially if you increase protein or fiber intake.

Frequently Asked Questions

What does IIFYM stand for?
IIFYM stands for “If It Fits Your Macros.” It is a dietary approach that focuses on consuming a specific number of grams of protein, carbohydrates, and fats rather than strictly counting calories to achieve body composition goals.
Is IIFYM better for weight loss?
IIFYM is highly effective for weight loss because it emphasizes high-protein intake, which promotes satiety and muscle retention. When combined with a caloric deficit, it allows for dietary flexibility, improving long-term adherence.
How do I adjust my macros for muscle gain?
To build muscle, you need a caloric surplus and higher carbohydrate intake to fuel training sessions. Keep protein consistent, increase carbohydrates, and adjust fats to achieve the necessary calorie surplus without excessive weight gain.
Do I need to track every single calorie?
With IIFYM, tracking macros effectively covers your calorie intake. Since protein and carbs provide 4 calories per gram and fat provides 9 calories per gram, hitting your macro targets ensures you are hitting your caloric targets simultaneously.
  1. Keto Macro Calculator: Calculate Your Daily Macros for Ketosis
  2. Calorie Calculator to Lose Weight – Free & Accurate
  3. TDEE Calculator: Calculate Your Daily Calorie Needs
  4. Metabolic Rate Calculator | BMR & TDEE 2026
  5. Macronutrient Calculator – Calculate Your Macros Free (2026)
  6. Calorie Intake Calculator: Find Your Daily Needs