Skip to content
Get the app

Flexible Dieting (IIFYM): Macros First, Food Second

Flexible dieting, or IIFYM (if it fits your macros), sets daily calorie and macro targets and lets any food count as long as the day lands inside them.

By CalorTracker Team. Published .

How flexible dieting works

IIFYM treats the day as a budget. You get a calorie target and a protein, carbohydrate and fat target, and no food is banned. A bowl of rice and a slice of cake are both items to log, and the question is whether the sum fits. The appeal is that it makes eating out, social meals and favourite foods easier to keep.

The label is shorthand for a method, not a claim that food quality is irrelevant. Most people who use it eat mostly whole foods and keep room for a few treats, which is the practical meaning of flexible.

Setting up the budget

Begin with a calorie target from the TDEE and deficit calculators. Then set protein from your weight and goal, fat as a share of calories, and carbohydrate as the remainder, which the macro calculator does in one step. Each gram is worth four, four or nine calories, so every food on the log changes the three numbers in a known way.

Protein is usually the one to hit, calories the one to stay near, and carbohydrate and fat the ones that trade against each other. Cutting and bulking versions of the calculator shift the target for each goal.

Fitting foods in without losing the plot

Plan the anchors early in the day, then see what is left for the flexible part. A treat that is mostly carbohydrate and fat will leave little for protein, and the log shows that clearly. Doing the arithmetic before you eat is what separates flexible dieting from just eating anything.

A weekly view helps, since a single heavy day can be balanced across the week. Do not chase exact daily numbers when your estimates are rough.

Foods that fit, per 100 g

Flexible dieting is about trade-offs, so the table pairs staples with a few treats. Compare how much protein each calorie buys.

Flexible dieting (IIFYM): foods and their USDA values per 100 g
FoodCaloriesProtein (g)Carbs (g)Fat (g)Fibre (g)Note
Chicken Breast (Roasted)1653103.60A protein anchor for the day.
White Rice (Cooked)1302.728.20.30.4A carbohydrate base that is easy to weigh.
Greek Yogurt979450A protein snack that doubles as dessert.
Banana891.122.80.32.6A quick carbohydrate.
Peanut Butter59822.222.351.45Fat and calories in a spoon.
Dark Chocolate (60-69% Cacao)5796.152.438.38A treat that is mostly fat and carbohydrate.
Ice Cream (Vanilla)2073.523.6110.7A treat that fits when you plan for it.
Cheese Pizza26611.433.39.72.3A restaurant favourite with a wide range of estimates.
Eggs14312.60.79.50A protein anchor with fat.

Values are USDA FoodData Central figures for the food as listed, per 100 g. Each food name opens its own page with portions and every nutrient.

Calculators for this way of eating

These run on the same formulas as the rest of the site, so the numbers match what you see in the app.

Food lists to browse

Ranked tables of foods by a nutrient, computed from the same USDA data.

Side-by-side food comparisons

Two foods at the same weight, so a swap is one glance.

Read next

Guides from the CalorTracker blog.

Terms used on this page

Short definitions with worked examples.

Safety and who this is not for

Detailed macro tracking suits some people and not others. If counting grams makes eating stressful, or you have a history of disordered eating, stop and talk to a professional. Hitting your macros with highly processed food does not make the rest of the day balanced.

This page is general information, not medical advice. If you have a medical condition, take medication, are pregnant or are under eighteen, talk to a doctor or registered dietitian before you change how you eat.

Tracking flexible dieting (iifym) in CalorTracker

  • Set your goal and the app creates calorie, protein, carbohydrate and fat targets you can edit.
  • Log a meal by photo, text or voice and read the macro estimate on the review screen before saving it.
  • Watch the dashboard's remaining macros before you choose the next meal, and ask Pepperly what would fit.

Flexible dieting (IIFYM): common questions

Does IIFYM mean I can eat anything?
Technically yes, within the targets. In practice the targets are hard to hit on only processed foods, and most people mix whole foods with treats.
How exact do the macros have to be?
Estimates are rough, so aim to land near the numbers across a week and treat a single day as a draft.

Sources

Count flexible dieting (iifym) without the arithmetic

Log a meal from a photo, by text or by voice, check the estimate, and watch the day against your own targets. Free to start, no card needed to explore.

Start free on the web

All diet guides