Homeโ€บGlossaryโ€บIIFYM

IIFYM

General

If It Fits Your Macros

A flexible dieting approach where any food is allowed as long as it fits your daily macronutrient targets, rather than following a fixed list of allowed or forbidden foods.

Definition

IIFYM (If It Fits Your Macros) is a dieting philosophy where food choices are unrestricted as long as your daily intake matches your target grams of fat, protein, and carbohydrates. Rather than following a fixed list of allowed foods (as diets like keto or paleo do), IIFYM treats any food as fair game provided the macro totals for the day come out right.

The approach still requires calculating a calorie target and macro split, the same underlying process used by more restrictive diets โ€” the difference is in food selection freedom, not in the calculation itself. The IIFYM Calculator sets these targets using the same logic as the Keto Calculator, just without a forced high-fat ratio.

Formula

Calories from each macro = Total daily calories ร— macro percentage

Grams of fat = Fat calories รท 9 Grams of protein or carbs = Calories รท 4

Macro percentages under IIFYM are flexible and commonly set based on goal (fat loss, muscle gain, maintenance) rather than a fixed ketogenic ratio.

Worked Example

For a 2,200-calorie target with a 30% protein / 35% fat / 35% carb split:

  • Protein: 2,200 ร— 0.30 = 660 calories รท 4 = 165g protein
  • Fat: 2,200 ร— 0.35 = 770 calories รท 9 = 86g fat
  • Carbs: 2,200 ร— 0.35 = 770 calories รท 4 = 193g carbs

Key Things to Know

  • Flexibility doesn't mean unlimited freedom in practice: hitting daily protein and micronutrient needs still generally requires prioritising whole foods most of the time.
  • Start from a calorie target, not macros directly: use the TDEE Calculator first, then set macro percentages from that baseline.
  • Different from keto: IIFYM doesn't force a specific carb ceiling, so it doesn't guarantee ketosis the way a strict keto macro split does.
  • Works for any goal: the same IIFYM framework applies whether the goal is fat loss, muscle gain, or maintenance โ€” only the percentage split changes.

Frequently Asked Questions

IIFYM sets macro targets without forcing a specific fat percentage the way keto does, giving more flexibility in food choices as long as the daily fat, protein, and carb grams add up correctly. Keto specifically requires carbs low enough to reach ketosis; IIFYM doesn't have that constraint.
Technically yes, but doing so consistently tends to leave micronutrient needs (vitamins, minerals, fiber) unmet, since whole foods generally deliver more nutritional value per calorie than processed foods. Most IIFYM practitioners still prioritise whole foods most of the time while allowing flexibility for treats.
Start with your [TDEE](/tdee-calculator/) to establish a calorie target, then use the [IIFYM Calculator](/iifym-calculator/) to convert that into fat, protein, and carb gram targets based on your goal.
IIFYM is popular among people who want the structure of macro tracking without the food restrictions of diets like keto or paleo, including many recreational lifters and general weight management dieters who prioritise dietary flexibility.
Yes โ€” IIFYM is often used interchangeably with the broader term 'flexible dieting,' both describing the same macro-target-based approach rather than a fixed food list.