MacrojiOpen the app

IIFYM calculator

IIFYM means “if it fits your macros” — flexible dieting where you hit daily protein, fat and carb targets and eat whatever foods you like to get there. Get your numbers below, then build meals that fit them. Free, runs in your browser, no signup.

Your details

Takes about 20 seconds.

yrs
cm
kg

≈ 2,630 cal · 135g protein · 75g fat · 355g carbs to maintain weight.

This is an estimate, not medical advice.

What is IIFYM?

IIFYM, short for if it fits your macros, is a flexible way to diet. Rather than following a fixed list of “allowed” and “banned” foods, you set targets for the three macronutrients — protein, fat and carbs — and then eat any foods you like, as long as the day adds up to those numbers. No food is off-limits on its own; what drives your results is the totals.

It rests on a simple truth: your body responds to the calories and macros you eat, not to whether a food is labelled “clean.” That is also why no single macro is “bad”. For the fuller story — where IIFYM came from, the 80/20 rule, and who it suits — read what IIFYM and flexible dieting really mean. New to the three numbers themselves? start with what macros are.

How this IIFYM calculator works

  1. Your resting burn. It estimates the calories your body burns at rest from your sex, age, height and weight, using the Mifflin-St Jeor formula (the standard one most calculators use).
  2. Your daily burn. That number is multiplied by your activity level, from 1.2 for little exercise up to 1.9 for athletes. The result is your maintenance calories, explained in how many calories you burn a day. To see that number on its own, use the TDEE calculator.
  3. Your goal. To lose weight it takes off 15%; to gain it adds 10%. It never goes below 1,500 calories for men or 1,200 for women.
  4. Your macros. Protein is set at about 1.8 g per kg of bodyweight (around 0.8 g per pound), fat at 25% of your calories, and carbs fill the rest.

IIFYM example: what the numbers look like

A 30-year-old woman, 165 cm (5′5″) and 70 kg (154 lb), moderately active and aiming to lose weight, gets:

Calories
1,870 a day
Protein
125 g
Fat
50 g
Carbs
230 g

On IIFYM she can eat any foods she likes as long as the day lands close to those four numbers. A 30 g bar of milk chocolate (about 160 calories and 18 g of carbs) fits easily if the rest of the day is built on protein-rich meals. Most people aim to get within about 5–10 g of each macro rather than hitting them exactly.

IIFYM calculator for women

The calculator works the same for everyone, with two differences for women: it uses the women’s version of the resting-burn formula (about 166 calories a day lower than a man of the same size), and it never goes below 1,200 calories. Some typical IIFYM macros for women, all 30 to 35 years old:

If your cycle changes your appetite or the scale from week to week, judge progress on a monthly average rather than single weigh-ins. Why the scale lies explains the water swings.

IIFYM, TDEE and BMR: how the numbers connect

Your IIFYM calories are built in three steps, and each one has its own name:

  1. BMR (basal metabolic rate): what you burn at complete rest. For the example woman above, about 1,420 calories.
  2. TDEE (total daily energy expenditure): BMR times your activity level. Moderately active, she burns about 2,200 a day. Eating this much keeps her weight steady.
  3. IIFYM calories: TDEE adjusted for the goal. 15% less to lose weight gives her 1,870, which is then split into protein, fat and carbs.

The TDEE calculator shows your BMR and TDEE on their own if that’s all you need.

How to do IIFYM well

The flexibility is the point, but the people who get the best results use it sensibly. Hit your proteintarget first, since it protects muscle and keeps you full. Build most of your meals from whole, nutritious foods because they fill you up for fewer calories — then fit in the treats you enjoy with whatever room is left. IIFYM isn’t a license to eat only junk; it’s permission not to feel guilty about a treat that fits.

You also only really need to track your macros, not calories on top: hitting your protein, fat and carb grams lands your calories automatically. If you want the arithmetic, how to calculate your macros covers it.

Now make foods fit your macros

The hard part of IIFYM is the daily puzzle of making real food fit your remaining numbers. That’s exactly what the rest of the app does. Calculate above, then let the Adviser rank foods and meals that fit what you have left, or give the Solver the foods you want and get the exact grams.

Common questions

What is IIFYM?
IIFYM stands for 'if it fits your macros'. It is a flexible approach to dieting where, instead of following a rigid list of allowed foods, you set daily targets for protein, fat and carbs and then eat any foods you like as long as they fit those numbers. The idea is that no single food is off-limits — what matters for your results is the totals you hit across the day.
How does an IIFYM calculator work?
It estimates the calories you burn in a day from your age, height, weight, sex and activity, adjusts that for your goal — a moderate deficit to lose, a surplus to gain — and then splits the calories into grams of protein, fat and carbs. Those three numbers are your macros. Hit them with whatever foods you choose and you are doing IIFYM.
What macro split does this IIFYM calculator use?
Protein is set at about 1.8 g per kilogram of bodyweight (roughly 0.8 g per pound), fat at 25% of your calories, and carbs fill whatever calories are left. Calories come from the Mifflin-St Jeor formula times your activity level, minus 15% to lose weight or plus 10% to gain. For a 30-year-old, 165 cm, 70 kg moderately active woman losing weight, that works out to about 1,870 calories: 125 g protein, 50 g fat and 230 g carbs.
Is there an IIFYM calculator for women?
This one works for women and men. Choose female and it uses the women's version of the Mifflin-St Jeor formula, which gives a lower resting burn than the men's at the same size. It also never goes below 1,200 calories for women. A 5'5", 154 lb, moderately active woman losing weight gets about 1,870 calories, 125 g protein, 50 g fat and 230 g carbs.
What is the difference between BMR, TDEE and IIFYM calories?
BMR is what your body burns at complete rest. TDEE is your BMR multiplied by your activity level, which is what you burn on a normal day and the calories that keep your weight steady. Your IIFYM calories are your TDEE adjusted for your goal: about 15% less to lose weight, 10% more to gain.
Can you eat junk food on IIFYM?
In principle yes, as long as it fits within your macros for the day — that flexibility is the whole point. In practice, most people aim to get the majority of their calories from whole, nutritious foods because they are more filling and better for health, then fit in treats with whatever room is left. IIFYM is not a license to eat only junk; it is permission not to feel guilty about a treat that fits.
Is IIFYM good for weight loss?
Yes. IIFYM is just calorie and macro control with built-in flexibility, and that flexibility is exactly what makes it easier to stick to than restrictive diets. As long as your targets put you in a calorie deficit and you hit your protein, you will lose fat while still being able to eat foods you enjoy, which is what keeps most people consistent enough to see results.
Do I count calories or macros on IIFYM?
Macros. Because protein and carbs carry about 4 calories per gram and fat about 9, hitting your protein, fat and carb targets automatically lands you on your calorie total — so counting calories on top is double-bookkeeping. Track the three macro numbers and your calories take care of themselves.

This calculator gives general estimates for healthy adults and is not medical or nutritional advice. If you have a medical condition or are pregnant, talk to a professional before changing how you eat.