Scenario

Macro Calculator for IIFYM — Flexible Dieting Guide

Set your daily macros for If It Fits Your Macros (IIFYM). Hit your protein, fat, and carb targets regardless of food source, while staying in your calorie range.

Interactive Calculator

Your Details

kcal

Your Daily Macros

Protein

25% of calories

125g

Carbohydrates

45% of calories

225g

Fat

30% of calories

67g

Macronutrient Distribution

Goal Comparison

How macro distribution changes across different goals at 2,000 kcal.

Per-Meal Breakdown

3 meals/day
667
kcal/meal
P: 42gC: 75gF: 22g
4 meals/day
500
kcal/meal
P: 31gC: 56gF: 17g
5 meals/day
400
kcal/meal
P: 25gC: 45gF: 13g

Summary: Based on 2,000 kcal/day and a maintenance goal, consume 125g protein, 225g carbs, and 67g fat daily.

The formula

The formula

What Macronutrients Measure

Macronutrients — protein, carbohydrates, and fat — are the three main nutrient categories your body needs in large quantities to produce energy, build and repair tissues, and maintain normal physiological function. Each macronutrient provides a specific amount of energy per gram: protein and carbohydrates supply 4 kcal/g, while fat supplies 9 kcal/g. Alcohol, while not a macronutrient, provides 7 kcal/g but offers no essential nutrients.

The concept of macronutrient distribution is central to sports nutrition, weight management, and metabolic health. Rather than focusing solely on total calorie intake, a macro-based approach considers the quality and composition of those calories. Different goals — weight loss, muscle gain, maintenance, or athletic performance — call for different proportions of protein, carbohydrates, and fat. This calculator uses your total daily calorie target and your selected goal to derive gram-level macro targets you can use for meal planning.

The Macronutrient Formula

Each gram of protein or carbohydrate provides 4 kcal, and each gram of fat provides 9 kcal. Given a daily calorie target, the gram target for each macro is calculated as:

Protein = (Calories × P%) ÷ 4
Carbs = (Calories × C%) ÷ 4
Fat = (Calories × F%) ÷ 9

Protein & Carbs: 4 kcal/g | Fat: 9 kcal/g

Formula Source

This calculator uses the **Acceptable Macronutrient Distribution Ranges (AMDR)** from the **Institute of Medicine, Dietary Reference Intakes for Energy, Carbohydrate, Fiber, Fat, Fatty Acids, Cholesterol, Protein, and Amino Acids** published in **2005**.

Reference URL: https://nap.nationalacademies.org/catalog/10490/dietary-reference-intakes-for-energy-carbohydrate-fiber-fat-fatty-acids-cholesterol-protein-and-amino-acids

Last Verified: 2026-07-30

Worked Example

Consider a person with a maintenance goal of 2,000 kcal/day using a 25% protein, 45% carbs, 30% fat split. Protein = 2,000 × 0.25 ÷ 4 = 125 g. Carbs = 2,000 × 0.45 ÷ 4 = 225 g. Fat = 2,000 × 0.30 ÷ 9 = 67 g. If the same person switched to a weight loss goal with a 35% protein, 40% carbs, 25% fat split at 1,700 kcal/day, the targets would be: Protein = 1,700 × 0.35 ÷ 4 = 149 g, Carbs = 1,700 × 0.40 ÷ 4 = 170 g, Fat = 1,700 × 0.25 ÷ 9 = 47 g. These numbers are starting references — individual needs vary based on activity, body composition, and tolerance.

Macronutrient Distribution Table

GoalProteinCarbsFat
Weight Loss30–35%35–40%25–30%
Maintenance20–25%45–50%25–30%
Muscle Gain30–35%40–45%20–25%
Low Carb / Ketogenic25–30%5–15%60–70%

Why Macro Splits Alone Are Not a Full Picture

While macro targets provide a useful framework for structuring meals, they do not capture food quality. Two people eating identical macro distributions can have vastly different health outcomes if one obtains their macros from whole, minimally processed foods and the other from ultra-processed products. Fiber intake, micronutrient density, fatty acid profile, and meal timing are equally important dimensions that a simple percentage split does not address.

Additionally, individual protein needs scale more meaningfully with lean body mass than with total calorie intake. A person with higher muscle mass may need more protein than the percentage-based calculation suggests, while a very sedentary person may need less. The macro percentages shown here are population-level starting points — personal adjustment based on hunger, energy, performance, and progress is expected and encouraged.

Known Limitations

  • Percentage-based splits assume a fixed calorie target and do not account for individual body composition or metabolic rate.
  • Do not distinguish between types of carbohydrates (simple vs. complex) or fat (saturated, unsaturated, trans).
  • Do not account for medical conditions such as diabetes, kidney disease, or metabolic disorders that require specific macro modifications.
  • Less accurate for individuals at extremes of body size, athletes with very high energy turnover, or older adults with altered protein requirements.
  • Macro targets are estimates, not prescriptions. Real-world adherence and individual response should guide adjustments.
Scenario guide

Scenario guide

IIFYM Explained

If It Fits Your Macros (IIFYM), also called flexible dieting, is an approach where you track daily totals for protein, carbohydrate, fat, and total calories rather than restricting yourself to a specific set of approved foods. As long as your daily macro targets are met and you remain within your calorie range, food choice is flexible. This means a burger, ice cream, or candy bar can fit into an IIFYM day as long as the macros and total calories are accounted for. The underlying principle is that weight change is primarily driven by total calories, and body composition during a deficit is primarily driven by adequate protein and resistance training — not by whether individual foods come from whole or processed sources. IIFYM is often more sustainable than rigid meal plans because it accommodates social eating, personal preferences, and cultural food traditions.

Setting Flexible Macros

Setting IIFYM macros follows the same steps as any macro-based plan: first set total calories based on your goal (deficit, maintenance, or surplus), then allocate across the three macronutrients. For fat loss, set total calories 300 to 700 below TDEE, then assign protein at 1.6 to 2.2 g/kg/day, fat at 0.7 to 1.0 g/kg/day, and fill the remaining calories with carbohydrate. For muscle gain, set total calories 250 to 500 above TDEE with a similar protein target and higher carbohydrate. For maintenance, eat at TDEE. The macro targets themselves are not unique to IIFYM — what is unique is the flexibility of food choice once those targets are set. For a 75 kg adult at 2200 kcal for fat loss, this yields roughly 165 g protein (660 kcal), 75 g fat (675 kcal), and 176 g carbohydrate (705 kcal).

Food Quality Still Matters

The most common criticism of IIFYM is valid: food quality still matters, even if it is secondary to calories and macros. Highly processed foods that meet macro targets often underdeliver on micronutrients, fiber, and satiety. A protein bar with 20 g protein and added sugar hits the protein target but may leave you hungry an hour later; 150 g of grilled chicken with vegetables hits similar protein and keeps you full for hours. A practical rule of thumb is the 80/20 or 90/10 guideline: aim for 80 to 90 percent of your intake from whole, minimally processed foods — vegetables, fruits, whole grains, lean meats, fish, eggs, legumes, nuts, and seeds — and use the remaining 10 to 20 percent for flexible, enjoyable choices. This approach provides the micronutrients, fiber, and satiety that keep IIFYM sustainable long-term.

Cheat Meal Strategy

One of the strengths of IIFYM is that it eliminates the need for separate "cheat meals" — foods are not classified as good or bad, only as fitting or not fitting your daily targets. However, some people find it psychologically helpful to designate a specific meal or day as a structured higher-calorie opportunity. The key distinction from a traditional cheat meal is moderation and tracking: a structured higher-calorie meal that is counted and kept within reasonable bounds is different from an untracked eating episode that can exceed daily targets by thousands of calories. A common pattern is to add 300 to 500 kcal on one designated day per week, with the extra calories coming mostly from the food you most enjoy. If the practice leads to loss of control or binge patterns, return to strict daily tracking without designated higher-calorie days.

Tracking Tips

  • Use a reliable tracking app: MyFitnessPal, Cronometer, and Yazio are widely used. Weigh foods raw and uncooked for the most accurate macros.
  • Calibrate portions: Track meticulously for 1 to 2 weeks to learn actual portion sizes, then transition to more intuitive eating with periodic re-tracking.
  • Watch liquids and condiments: Sauces, oils, dressings, and beverages add calories that are easy to undercount. Measure cooking oil explicitly.
  • Focus on the weekly average: Don't stress single-day misses. What matters is the 7-day average of calories and protein.
  • Re-assess every 4 to 6 weeks: As body weight changes, TDEE and macro targets change too. Re-calculate and adjust based on the observed trend.
FAQ

Frequently Asked Questions

What is IIFYM?
IIFYM stands for If It Fits Your Macros, also called flexible dieting. It is an approach where you track daily totals for protein, carbohydrate, fat, and total calories rather than restricting yourself to approved foods. As long as your macro targets are met and you stay within your calorie range, food choice is flexible — a burger or ice cream can fit into the day as long as the macros are accounted for. The principle is that weight change is primarily driven by total calories, and body composition during a deficit is driven by adequate protein and resistance training, not by individual food choices.
How do I set my macros for IIFYM?
Setting IIFYM macros follows standard steps: first set total calories based on your goal (300 to 700 below TDEE for fat loss, 250 to 500 above for muscle gain, at TDEE for maintenance). Then assign protein at 1.6 to 2.2 g/kg/day, fat at 0.7 to 1.0 g/kg/day, and fill the remaining calories with carbohydrate. For a 75 kg adult at 2200 kcal for fat loss, this yields roughly 165 g protein, 75 g fat, and 176 g carbohydrate. The macro targets are the same as any macro-based plan; what makes IIFYM unique is the flexibility of food choice once targets are set.
Can I eat junk food on IIFYM?
Yes, as long as it fits your daily macro and calorie targets. However, food quality still matters for micronutrients, fiber, and satiety. A practical rule of thumb is the 80/20 guideline: aim for 80 to 90 percent of intake from whole, minimally processed foods, and use the remaining 10 to 20 percent for flexible, enjoyable choices. Relying entirely on processed foods to hit macro targets underdelivers micronutrients and often leaves you hungry, which undermines adherence over months.
Should I have cheat meals on IIFYM?
IIFYM eliminates the need for separate cheat meals because no food is classified as off-limits — everything simply fits or does not fit your daily targets. Some people find a structured higher-calorie day psychologically helpful, but it should be tracked and kept within reasonable bounds. A common pattern is adding 300 to 500 kcal on one designated day per week from foods you most enjoy. The key distinction from a traditional cheat meal is moderation and tracking: untracked eating episodes that exceed targets by thousands of calories undermine the entire week.
How do I track macros for IIFYM?
Use a reliable tracking app like MyFitnessPal, Cronometer, or Yazio. Weigh foods raw and uncooked for the most accurate macros. Track meticulously for 1 to 2 weeks to calibrate portion sizes, then consider transitioning to intuitive eating with periodic re-tracking. Watch for hidden calories in cooking oils, sauces, dressings, and beverages — measure cooking oil explicitly. Focus on the 7-day average of calories and protein rather than single-day perfection. Re-assess your macros every 4 to 6 weeks as body weight changes.
Keep going