Back to Blog
Tutorials

IIFYM and Flexible Dieting: The Complete Guide

MacroChat Team

MacroChat Team

AI Nutrition Tracking

IIFYM — "If It Fits Your Macros" — is the idea that you can eat any food you want as long as it fits within your daily protein, carb, and fat targets. It started in bodybuilding forums in the early 2010s as a pushback against rigid "clean eating" meal plans (chicken, rice, and broccoli on repeat), and has since become one of the most popular approaches to nutrition.

The concept is simple, but it's often misunderstood. IIFYM doesn't mean you should eat junk food all day. It means that no food is inherently off-limits — what matters is the total amount of each macronutrient you consume over the course of the day, not the specific foods you choose.

This guide covers what the research actually says about flexible vs. rigid dieting, how to do IIFYM correctly, and where most people go wrong.

What the Research Says: Flexible vs. Rigid Dieting

The scientific foundation for IIFYM comes from over two decades of research comparing "flexible dietary restraint" (eating a variety of foods while hitting targets) vs. "rigid dietary restraint" (following strict rules about what you can and can't eat).

The results consistently favor flexibility:

  • A landmark 1999 study of 54,517 participants found that rigid control was associated with higher BMI, more binge eating, and greater difficulty maintaining weight loss, while flexible control was associated with lower BMI, less binge eating, and more successful long-term weight management (Westenhoefer et al., International Journal of Eating Disorders).
  • Smith et al. (1999) found that rigid dieting was positively associated with disinhibited eating, higher BMI, depression, and anxiety, while flexible dieting was inversely related to all of these (Appetite).
  • Stewart et al. (2002) found that women using rigid dieting strategies reported higher eating disorder symptoms, greater mood disturbances, and increased food cravings compared to those using flexible approaches (Appetite).
  • A 2021 randomized controlled trial by Conlin et al. directly compared flexible and rigid dieting in resistance-trained individuals over 20 weeks. Both groups lost similar amounts of fat during the diet phase, but the flexible group gained significantly more lean mass during the post-diet recovery period (JISSN).

The mechanism appears to be straightforward: rigid "all-or-nothing" rules trigger food cravings that eventually lead to overeating. A 2011 study confirmed that food cravings mediate the relationship between rigid control and dieting failure, but no such relationship exists for flexible control (Meule et al., Appetite).

The Best Diet Is the One You Can Stick To

Multiple large-scale studies have confirmed that when it comes to weight loss, adherence matters more than the specific diet:

  • Dansinger et al. (2005) randomized 160 adults to Atkins, Ornish, Weight Watchers, or Zone diets. All four produced similar modest weight loss. The strongest predictor of success was not which diet they followed, but how consistently they followed it (JAMA).
  • The DIETFITS trial (Gardner et al., 2018) randomized 609 adults to low-fat or low-carb for 12 months. No significant difference in weight loss between groups. Individual results ranged from losing 30 kg to gaining 10 kg in both groups — individual adherence explained far more variance than diet type (JAMA).
  • The POUNDS LOST trial (Sacks et al., 2009) tested 4 diets with different macro compositions in 811 adults for 2 years. All diets produced similar weight loss. Participants who attended counseling sessions regularly lost more than twice as much weight as the average (New England Journal of Medicine).

This is the scientific case for IIFYM: if adherence is the primary driver of results, and flexible approaches are easier to adhere to than rigid ones, then flexible dieting should produce better long-term outcomes. The research supports this.

How to Do IIFYM Correctly

1. Calculate Your Macros

Before you can fit foods into your macros, you need to know what your macros are. Use our free macro calculator or read our guides on how to count macros and macros for weight loss.

2. Follow the 80/20 Rule

The 80/20 approach is the practical sweet spot: get roughly 80% of your calories from whole, nutrient-dense foods and allow 20% for whatever you want. This ensures you're getting adequate micronutrients, fiber, and phytonutrients while still having the flexibility that makes IIFYM sustainable.

Why? Because a 2010 micronutrient analysis of popular diets found that focusing on macronutrients without attention to food quality led to measurable risks of micronutrient inadequacy (Gardner et al., American Journal of Clinical Nutrition).

3. Hit Protein First

Protein is the macro most people struggle to hit. Plan your protein sources for each meal first, then fill in carbs and fats around them. If you nail your protein and calories, you're 80% of the way there.

4. Track Fiber Too

IIFYM typically tracks three macros (protein, carbs, fat), but you should also monitor fiber intake. Aim for 25-38 g of fiber per day (the recommendation from the Dietary Guidelines for Americans). If you're filling your carb target with mostly refined sources, your fiber will suffer.

5. Be Flexible, Not Obsessive

Hitting your macros within ±5-10 grams is close enough. You don't need to land on the exact number every day. The goal is consistency over weeks, not perfection every meal.

Common IIFYM Mistakes

  • "Pop-tart dieting." The social media version of IIFYM — posting junk food that "fits your macros" — gives the impression that food quality doesn't matter at all. It does. Micronutrients, fiber, and overall diet quality still affect your health, energy, and performance. Flexibility isn't the same as eating poorly.
  • Ignoring micronutrients. You can hit your protein, carb, and fat targets while being deficient in iron, vitamin D, or B12. Eating a variety of whole foods prevents this.
  • Turning flexibility into rigidity. If you panic over being 3 grams over your fat target, you've replaced food-based rigidity with number-based rigidity. That's not the point. Close enough is good enough.
  • Not eating enough vegetables. When you're focused on hitting macro numbers, vegetables (which are low in all macros) can get neglected. Make a habit of including vegetables at every meal regardless of their macro contribution.
  • Using IIFYM to justify a bad diet. Eating 1,800 calories of ice cream and protein powder "fits your macros," but it's obviously not a good idea. IIFYM is about flexibility within a framework, not about optimizing for junk.

Who Is IIFYM Good For?

  • People who've failed rigid diets. If you've tried "clean eating" or elimination diets and always end up bingeing, a flexible approach may break that cycle.
  • People who eat out regularly. IIFYM makes dining out manageable — you adjust your other meals to accommodate the restaurant meal.
  • People who want to build a sustainable relationship with food. No "good" or "bad" foods. No guilt. Just numbers.
  • Athletes and lifters. Performance requires adequate fuel. IIFYM lets you eat enough carbs for training while still controlling your weight.

Who Should Be Careful?

  • People with a history of eating disorders. While flexible dieting is associated with fewer eating disorder symptoms than rigid dieting, any form of tracking can be triggering for some people. If tracking macros feels obsessive or causes anxiety, work with a healthcare professional.
  • Complete beginners. If you've never paid attention to nutrition before, jumping straight into macro tracking might be overwhelming. Start with simpler habits (eating more protein, more vegetables) before adding the complexity of tracking three numbers.

Make IIFYM Easy with AI Tracking

The biggest barrier to IIFYM is the tracking itself. Weighing food, searching databases, and logging every ingredient takes time. AI tracking removes most of that friction.

Try MacroChat free for 3 days — log meals by voice, photo, or text in seconds. Say "burrito bowl with chicken, rice, beans, and guac" and get an instant macro breakdown. Use the macro calculator to set your targets.

Sources

  • Westenhoefer J, Stunkard AJ, Pudel V. "Validation of the flexible and rigid control dimensions of dietary restraint." International Journal of Eating Disorders, 1999. Read study
  • Smith CF, et al. "Flexible vs. Rigid dieting strategies: relationship with adverse behavioral outcomes." Appetite, 1999. Read study
  • Stewart TM, Williamson DA, White MA. "Rigid vs. flexible dieting: association with eating disorder symptoms in nonobese women." Appetite, 2002. Read study
  • Dansinger ML, et al. "Comparison of the Atkins, Ornish, Weight Watchers, and Zone diets for weight loss and heart disease risk reduction." JAMA, 2005. Read study
  • Gardner CD, et al. "Micronutrient quality of weight-loss diets that focus on macronutrients: results from the A TO Z study." American Journal of Clinical Nutrition, 2010. Read study
  • Meule A, Westenhoefer J, Kubler A. "Food cravings mediate the relationship between rigid, but not flexible control of eating behavior and dieting success." Appetite, 2011. Read study
  • Gardner CD, et al. "Effect of Low-Fat vs Low-Carbohydrate Diet on 12-Month Weight Loss in Overweight Adults (DIETFITS)." JAMA, 2018. Read study
  • Sacks FM, et al. "Comparison of Weight-Loss Diets with Different Compositions of Fat, Protein, and Carbohydrates." New England Journal of Medicine, 2009. Read study
  • Conlin LA, et al. "Flexible vs. rigid dieting in resistance-trained individuals seeking to optimize their physiques: A randomized controlled trial." Journal of the International Society of Sports Nutrition, 2021. Read study