IIFYM Calculator — If It Fits Your Macros (Flexible Diet)
IIFYM (If It Fits Your Macros) — also called flexible dieting — lets you track macros without banning any food: as long as it fits your daily numbers, you can eat it. Pioneered by Layne Norton, PhD, it operates on caloric deficit and sufficient protein. The standard split is 30% protein / 30% fat / 40% carbs for body recomposition. The 80/20 rule means 80% of your intake should be nutrient-dense (lean protein, vegetables, whole grains) and up to 20% can be flexible (pizza, ice cream, chocolate). Enter your daily calorie target and this calculator delivers your exact macro targets in seconds.
IIFYM (If It Fits Your Macros) uses a standard split of **30% protein, 30% fat, and 40% carbs**. For 2,500 kcal: 188 g protein, 83 g fat, 250 g carbs. The 80/20 rule allows 20% of calories to be flexible (500 kcal 'cheat' allowance). Formula: protein (g) = calories × 0.30 ÷ 4; fat (g) = calories × 0.30 ÷ 9; carbs (g) = calories × 0.40 ÷ 4.
When to use this calculator
- You hate restrictive 'forbidden foods' diets.
- Athlete who needs structured nutrition with an active social life.
- Body recomposition: preserve muscle while losing fat.
- Sustainable long-term approach to eating.
- Tracking macros for the first time.
Example: 2,500 kcal IIFYM breakdown
- Target: 2,500 kcal/day (moderate deficit for body recomposition).
- Protein:
2,500 × 0.30 ÷ 4 kcal/g= 188 g (≈ 12 oz chicken breast + 2 eggs). - Fat:
2,500 × 0.30 ÷ 9 kcal/g= 83 g (≈ 2 tbsp olive oil + 1 avocado + handful of almonds). - Carbs:
2,500 × 0.40 ÷ 4 kcal/g= 250 g (≈ 2 cups cooked rice + 2 medium fruits). - Flexible 20%:
2,500 × 0.20= 500 kcal (1 slice pizza + small ice cream, or 2 beers).
How it works
2 min readWhat is IIFYM?
If It Fits Your Macros. The principle is simple: body weight is determined by caloric balance; body composition (muscle vs fat) is determined by macro distribution — primarily protein. Popularized by Layne Norton, PhD in nutritional physiology, IIFYM is now one of the most evidence-based flexible dieting frameworks.
IIFYM macro reference table
| Daily Calories | Protein (g) | Fat (g) | Carbs (g) | Flex (kcal) |
|---|---|---|---|---|
| 1,500 kcal | 113 g | 50 g | 150 g | 300 kcal |
| 1,800 kcal | 135 g | 60 g | 180 g | 360 kcal |
| 2,000 kcal | 150 g | 67 g | 200 g | 400 kcal |
| 2,200 kcal | 165 g | 73 g | 220 g | 440 kcal |
| 2,500 kcal | 188 g | 83 g | 250 g | 500 kcal |
| 3,000 kcal | 225 g | 100 g | 300 g | 600 kcal |
| 3,500 kcal | 263 g | 117 g | 350 g | 700 kcal |
Standard distribution: 30% protein / 30% fat / 40% carbs.
Standard macro split
| Macro | % Calories | Conversion | 2,500 kcal example |
|---|---|---|---|
| Protein | 30% | ÷ 4 kcal/g | 188 g |
| Fat | 30% | ÷ 9 kcal/g | 83 g |
| Carbohydrates | 40% | ÷ 4 kcal/g | 250 g |
The 80/20 rule
With 2,000 kcal, 400 kcal flexible = a large ice cream or a generous slice of pizza.
Macro adjustment by goal
| Goal | Protein | Fat | Carbs |
|---|---|---|---|
| Muscle gain (bulk) | 25% | 25% | 50% |
| Body recomposition | 30% | 30% | 40% |
| Fat loss (cut) | 35–40% | 25–30% | 30–35% |
Pros and limitations
Pros: high adherence, social-life friendly, science-backed (caloric deficit + protein), no food groups banned.
Limitations: requires a food scale and tracking app, micronutrients can be neglected without the 80/20 rule, initial learning curve.
Related calculators
Frequently asked questions
What does IIFYM stand for?
If It Fits Your Macros. A flexible dieting approach where you track protein, fat, and carbohydrates rather than restricting specific foods. If the food fits your daily macro targets, you can eat it — no guilt.
What is the standard IIFYM macro split?
The most common IIFYM split is 30% protein, 30% fat, 40% carbs. For 2,000 kcal: 150 g protein, 67 g fat, 200 g carbs. For a fat-loss phase, protein is often raised to 35–40%; for a bulk, carbs go up to 50%.
Can I eat pizza or ice cream on IIFYM?
Yes — within the 80/20 rule. 20% of daily calories can be flexible. On 2,000 kcal that's 400 kcal for treats (one generous slice of pizza or a large ice cream). The remaining 80% (1,600 kcal) should come from nutrient-dense whole foods.
How many grams of protein do I need on IIFYM?
At 30%: protein (g) = daily calories × 0.30 ÷ 4. Examples: 1,800 kcal → 135 g; 2,500 kcal → 188 g; 3,000 kcal → 225 g. During a cut, raising protein to 35–40% better preserves lean mass.
Is IIFYM effective for weight loss?
Yes — the mechanism is caloric deficit. IIFYM doesn't change energy physics: eat less than you burn and you lose weight. Its advantage is adherence: no forbidden foods means you stick to it for months instead of weeks. A typical deficit is 300–500 kcal/day.
What's the difference between IIFYM and regular calorie counting?
Calorie counting controls total energy; IIFYM controls each macro separately. Two 2,000-kcal diets can produce very different body composition outcomes depending on their protein content. IIFYM ensures adequate protein for muscle retention.
What apps are best for IIFYM macro tracking?
Top options: MyFitnessPal (largest food database, free tier available), MacroFactor (auto-adjusts TDEE over time), Cronometer (detailed micronutrient tracking), Carb Manager (low-carb focused). All scan barcodes.
Do I need to track micronutrients on IIFYM?
Not strictly required, but recommended. The 80/20 rule naturally covers most micronutrients. Watch out for vitamin D, iron, and zinc if your diet is low in animal products or sun exposure is limited.
Is IIFYM suitable for beginners?
Yes, but expect a 2–3 week learning curve. The most important tool: a digital kitchen scale — eyeballing food introduces 20–30% errors that kill results. Use an app like MyFitnessPal until you know the macro values of your staple foods.
How accurate do I need to be with macro tracking?
Within ±5–10 g per macro per day is excellent. Perfect accuracy isn't realistic or necessary. What matters is consistent tracking over weeks — a day off by 15 g protein won't derail progress, but systematic under-tracking by 300 kcal/day will.