Macro

IIFYM Calculator: If It Fits Your Macros Targets and Flexible Dieting

IIFYM means "if it fits your macros." This calculator sets the targets; the guide below shows how to use them without turning every meal into a spreadsheet.

  • Flexible dieting targets
  • 80/20 rule explained
  • Fibre and micronutrient guardrails
  • Weekly flexibility
Macro Studio

Free macro calculator that shows its work

Move the sliders, pick a goal and your calories and macros update instantly. Compare four equations, see a week plan, test goal scenarios, log today's food against your targets and download a share card. Nothing leaves your device.

  • 4 equations
  • 7 eating styles
  • Week plan
  • Goal scenarios
  • Today log + gap filler
  • 16-week curve
  • Share card

Your details

Live results. Nothing leaves your device.
1About you
yrs
ft
in
lb
%

With body fat entered, the calculator switches to lean-mass equations and sizes protein from lean mass.

2Daily activity

Unsure? Choose the lower level. Most people overestimate how much they move.

3Your goal

0.5% to 0.75% per week suits most people. Faster costs muscle and mood.

The more training experience you have, the slower the surplus should be.

4Eating style
Advanced settings
Your daily target
0kcal

0BMR
0Maintenance
0Daily change
0BMI
0kcal / day
Protein
0 g
Carbs
0 g
Fat
0 g

. Carbs: . Healthy weight range for your height: .

Where your split sits

Micronutrient reference targets

General adult reference intakes (US Dietary Reference Intakes). Not medical advice; needs differ with pregnancy, illness and medication.

After two or three weeks, enter your average weekly weight change. We suggest the calorie nudge.

MacroCalculatorPro Editorial Team
Updated November 3, 2026 ยท 4 min read ยท Sources listed at the end

An IIFYM calculator turns a calorie target into daily protein, carb and fat goals, then leaves the food choices to you.

What is IIFYM?

Definition

IIFYM ("if it fits your macros") is a flexible dieting approach where you hit daily targets for protein, carbohydrate and fat, and allow any food to fit as long as it keeps you inside those numbers.

The idea came out of bodybuilding forums in the late 2000s as a reaction to rigid "clean eating" lists. Its core insight holds up: a calorie deficit and adequate protein drive body composition, and no single food ruins a plan. Its weakness is also clear: if every day is pizza and protein bars, you may hit the macros while missing fibre, vitamins and satiety.

Calculator in action

How to use the calculator for IIFYM

  1. Enter your details and pick a goal.
  2. Keep the Balanced eating style unless you have a reason to change.
  3. Read the fibre number in the Overview tab. This is your first guardrail.
  4. Use the Sample day tab to see what a macro-matched day looks like, then swap foods freely.
  5. Log meals in the food macro calculator or any tracker.

The three-layer IIFYM method

Layer Rule Why
1. Protein Hit your protein number first, every day Muscle, fullness, recovery
2. Calories Land within about 5% The main driver of weight change
3. Quality About 80% of calories from minimally processed foods Fibre, vitamins and fullness

The 80/20 rule is the quality layer. If your daily budget is 2,000 kcal, about 1,600 kcal come from foods like meat, fish, eggs, dairy, vegetables, fruit, beans, whole grains and nuts, and about 400 kcal can be anything: ice cream, chips, cake. It is flexible without being reckless.

Fitting a treat into your day

Say your target is about 1,960 kcal with 150 g protein, 200 g carbs and 62 g fat. You want two slices of pizza (about 590 kcal, 26 g protein, 68 g carbs, 24 g fat) for dinner.

Calories Protein Carbs Fat
Daily target 1,960 150 g 200 g 62 g
Breakfast + lunch + snack 1,370 124 g 132 g 38 g
Pizza dinner 590 26 g 68 g 24 g
Total 1,960 150 g 200 g 62 g

To make that work, breakfast and lunch were built around lean protein, fruit and vegetables, leaving fat and carb room for the pizza. This is the skill IIFYM teaches: planning the day, not just logging it.

Whole foods that fill 80 percent of the day in an IIFYM calculator plan
The 80% of an IIFYM day: whole, filling foods. Original illustration.

Common IIFYM pitfalls

  • Fibre falls short. Aim for about 14 g per 1,000 kcal; add beans, berries and vegetables.
  • Micronutrients get ignored. A daily fruit and vegetable serving rule fixes most of it.
  • Alcohol sneaks in. Alcohol has 7 kcal per gram and no macro slot. Count it as fat or carbs, or use the macro to calorie calculator.
  • All-or-nothing thinking. Missing by 10 g of carbs is fine; the rest of the week still works.
Gauge for an IIFYM calculator plan showing an eight hour eating window with three meals, protein 45 g and carbs 80 g each

What the research says

  • Flexible versus rigid restraint. A 1999 study by Westenhoefer and colleagues found that rigid dietary control was associated with more overeating and higher body weight, whereas flexible control was associated with healthier eating behaviour and lower body weight.
  • Macro tracking can help. Studies of dietary self-monitoring consistently link logging to better weight outcomes (Burke et al., 2011 systematic review), though it is not necessary for everyone.
  • Quality counts. The 2025-2030 US Dietary Guidelines emphasise fibre-rich whole grains and limiting highly processed refined carbohydrates, which supports the 80/20 approach.

Original data: protein bars versus real food

We compared the same 30 g of protein from three sources, per the food list in our calculator: chicken breast (about 100 g cooked) delivers around 165 kcal; Greek yogurt (about 300 g) about 180 kcal and a lot of volume; a typical protein bar delivers 200-250 kcal. All fit macros, but the first two fill the plate and the stomach with fewer calories. Fit is the minimum standard, not the best one.

Bar chart of what studies show: muscle gain levelling off as protein rises from 0.8 to 2.4 g per kg

Our take: what is overrated, underrated and wrong

Overrated

Perfect adherence. A 90% week with flexible meals beats a 100% week that ends in a binge.

Underrated

Planning the day backwards from dinner. It makes treats feel guilt-free instead of risky.

Usually wrong

"Calories are all that matter." They drive weight, but body composition, hunger and health also depend on protein and food quality.

FAQ

What does IIFYM mean?

"If it fits your macros." Any food can fit as long as your daily protein, carb and fat targets are met.

Is IIFYM healthy?

It can be, if most of your calories come from whole foods and you hit your fibre target. Eating only processed foods within your macros is not healthy.

How accurate do I need to be?

Within about 5% on calories and protein is plenty. Fat and carbs can swing by 10-15 g on any given day.

Can I use IIFYM for muscle gain?

Yes. Choose "Build muscle" in the calculator and follow the same flexible approach with a surplus.

Do I need to weigh everything?

Weighing food for two to four weeks calibrates your eye. After that, many people estimate portions and weigh only calorie-dense foods.

Sources

  • Dietary Guidelines for Americans (USDA and HHS)
  • Westenhoefer J, Stunkard AJ, Pudel V. Validation of the flexible and rigid control dimensions of dietary restraint. Int J Eat Disord. 1999;26(1):53-64.
  • Burke LE, Wang J, Sevick MA. Self-monitoring in weight loss: a systematic review of the literature. J Am Diet Assoc. 2011;111(1):92-102.
  • U.S. Department of Agriculture and U.S. Department of Health and Human Services. Dietary Guidelines for Americans, 2025-2030.