Skip to content
Health & Fitness

IIFYM Calculator (If It Fits Your Macros)

Enter your stats to find your Total Daily Energy Expenditure (TDEE) and personalized macro targets. The calculator uses the Mifflin-St Jeor formula by default, and automatically switches to the more precise Katch-McArdle formula when you supply your body fat percentage. Protein, fat, carbs and fiber targets update instantly for your chosen goal.

Your details

Used in the Mifflin-St Jeor formula. Not needed when body fat % is provided (Katch-McArdle).
years
kg
cm
Leave at 0 to use Mifflin-St Jeor. Enter a value to switch to the Katch-McArdle formula, which is more precise when you know your body composition.
%
Daily caloriesModerate calorie
2,633kcal

Goal-adjusted calorie target (TDEE +/- deficit or surplus)

Protein108g
Carbohydrates419g
Fat59g
Fiber37g
TDEE (maintenance)2,633kcal
BMR1,699kcal
00.510612
Week

Your daily target is 2,633 kcal for weight maintenance.

  • Your macros break down to roughly 16% protein, 64% carbs and 20% fat.
  • Mifflin-St Jeor formula was used. For even greater precision, enter your body fat percentage to switch to Katch-McArdle.
  • Aim for 108 g of protein spread across 3 to 4 meals to maximize muscle protein synthesis.

Next stepHit your protein and total calorie targets first. Once those are consistent, fine-tune carbs and fat to suit your training schedule and food preferences.

What is IIFYM?

IIFYM (If It Fits Your Macros) is a flexible dieting approach that focuses on hitting daily targets for protein, carbohydrates and fat rather than following a rigid meal plan or avoiding specific foods. Because no food is outright banned, adherents can include virtually any food they enjoy as long as it fits within their macro budget for the day. Research supports flexible restraint over rigid restraint: people who practise flexible dieting tend to have better long-term compliance, lower rates of binge eating and lower body weight compared with those who follow stricter exclusion diets.

How the calculation works

The calculator runs in three stages. First it estimates your Basal Metabolic Rate (BMR), which is the number of calories your body burns at complete rest. When no body fat percentage is provided, it uses the Mifflin-St Jeor equation (the most accurate formula for the general population in controlled studies), which adjusts for sex, weight, height and age. If you enter a body fat percentage, it switches to the Katch-McArdle formula, which works from lean body mass and is considered more precise for people who are very muscular or very lean. Second, your BMR is multiplied by an activity factor to produce your TDEE (Total Daily Energy Expenditure), the number of calories you burn on a typical day. Third, a deficit or surplus is applied based on your goal: roughly 10-20% below TDEE for fat loss, nothing for maintenance, or 10-15% above TDEE for muscle gain. Macro targets are then distributed using a protein-first approach: protein is set at roughly 1.8-2.2 g per kg of lean body mass (higher during a deficit to spare muscle), fat is floored at 20% of total calories to support hormone production, and carbohydrates fill the remaining calories.

Setting your activity level honestly

The activity multiplier is the single biggest source of error in TDEE estimates, and most people overestimate it. A sedentary multiplier of 1.2 covers someone who sits most of the day and does very little intentional exercise. Light (1.375) covers 1-2 genuine 45-minute gym sessions per week, with the rest of the day still largely sedentary. Moderate (1.55) is appropriate for 3-4 hard training sessions per week alongside a desk job. Hard (1.725) suits people training 5-6 days per week or doing a physically demanding job. Very hard (1.9) is reserved for elite athletes or people doing two-a-day sessions. If in doubt, select one level lower than you think you need, track your actual weight for 2-3 weeks, and adjust upward if you are losing weight faster than intended.

Protein, fat and carbohydrates: priorities and flexibility

Protein is the highest priority macro for anyone with body composition goals. Each gram provides 4 kcal, carries a thermic effect of 20-30% (meaning roughly a quarter of its calories are spent on digestion), and provides the amino acids needed for muscle repair and growth. Fat supplies 9 kcal per gram and should not drop below roughly 40-50 g/day to preserve testosterone, oestrogen and fat-soluble vitamin absorption. Once protein and fat floors are set, carbohydrates fill the remaining budget. Many people find carbs the easiest macro to cycle: eating more on hard training days and fewer on rest days is a simple form of carb cycling that can improve workout performance and manage hunger without changing weekly totals.

Macro ratios by goal (IIFYM guidelines)

GoalProteinCarbohydratesFatCalorie adjustment
Slow fat loss35-40%30-40%20-30%-10%
Moderate fat loss35-40%25-35%20-25%-20%
Maintenance25-30%40-45%25-30%0%
Slow muscle gain25-30%40-50%20-30%+10%
Moderate muscle gain25-30%40-50%20-30%+15%

These are starting-point ranges. Adjust carbs and fat to suit your training, hunger and food preferences.

Frequently asked questions

What is the difference between TDEE and BMR?

BMR (Basal Metabolic Rate) is the number of calories your body needs just to stay alive at complete rest, covering breathing, circulation and cell repair. TDEE (Total Daily Energy Expenditure) adds the energy cost of everything you actually do across the day, including exercise, walking, fidgeting and digesting food. TDEE is always higher than BMR. You set your calorie target based on TDEE, not BMR.

Should I use Mifflin-St Jeor or Katch-McArdle?

Use Mifflin-St Jeor (the default) if you do not know your body fat percentage. It is the most accurate formula for the general population and requires only age, weight, height and sex. Use Katch-McArdle if you have had your body fat measured by DEXA, hydrostatic weighing or a reliable caliper protocol. Because Katch-McArdle works directly from lean body mass, it is more accurate for muscular individuals (who would be overestimated by Mifflin-St Jeor) and very lean individuals.

How much protein do I really need?

For people in a calorie deficit, the evidence supports 1.8-2.4 g of protein per kg of body weight (or lean body mass) to preserve muscle. For maintenance or a surplus, 1.6-2.0 g/kg is sufficient. The higher end of the range is warranted if you are very lean, train hard, are older (over 50), or are in an aggressive deficit. The body cannot store excess protein as muscle, so there is a practical ceiling; most research shows diminishing returns above about 2.2 g/kg.

Can I swap carbs and fat freely within my calorie budget?

Yes, within reason. The total calorie target and protein floor are what matter most for body composition. Fat should not drop below roughly 20% of total calories (or around 0.5 g/kg) because hormonal health depends on adequate dietary fat. Within those guardrails, swapping carbs for fat or vice versa is personal preference. Some people perform better with more carbs for workouts; others find higher fat more satiating on a rest day.

Why is there a fiber target?

Fiber is technically a carbohydrate but it is digested differently, feeds gut bacteria, slows glucose absorption and has a strong evidence base for reducing cardiovascular disease risk. The Academy of Nutrition and Dietetics recommends 14 g of fiber per 1,000 kcal consumed. This calculator shows your fiber goal as a separate target so you can prioritize high-fiber carbohydrate sources such as vegetables, legumes and whole grains within your carb budget.

How quickly should I expect to lose or gain weight on IIFYM?

A 10% deficit typically yields about 0.25-0.5 kg (0.5-1 lb) of loss per week for an average person; a 20% deficit roughly doubles that rate. On the gain side, a 10% surplus adds around 0.25-0.5 kg per week, with a portion of that being fat. Faster rates increase the risk of muscle loss on a cut and excess fat gain on a bulk. Weigh yourself daily and average the readings across a week for the most reliable trend.

Sources

Written by Dr. Priya Anand, MD, FACP Internal Medicine Physician · Boston, USA

Board-certified internist translating clinical evidence into precise, actionable health calculators for patients and clinicians alike.

How we build & check our calculators

This tool provides general information and education, not professional advice. For decisions about your health, consult a qualified professional.

Search 3,500+ calculators

Loading search…