Health

IIFYM Calculator — If It Fits Your Macros (Flexible Diet)

Calculate your IIFYM macros instantly: 30% protein, 30% fat, 40% carbs on your daily calorie target. Includes 80/20 flexible allowance and a reference table for common calorie goals.

  • Data verified · June 2026
  • Edited by
  • Formula verified by automated tests
  • Private — runs on your device
Suggest an improvement
Calculator Free · Private
kcal
Want to change something?Edit any field and calculate again.
Instant resultIt recalculates in your browser, no page reload.
Fast and transparent

How to use this calculator

Follow this tool’s steps, then review its formula, assumptions, and limits below.

Step by step
01
Enter your data
02
Tap the Calculate button
03
Check the result
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.

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.

Calories per Gram of Each Macro (Atwater Factors) — the Math Behind IIFYM

Fat packs 9 kcal/g — more than twice protein or carbs — and alcohol's 7 kcal/g is the macro most trackers forget to log.

Nutrientkcal per gramGrams from a 2,500 kcal target*Why it matters for tracking
Protein4 kcal/g188 g (at 30%)Most filling per calorie; protects muscle in a deficit
Carbohydrate4 kcal/g250 g (at 40%)Fuels training; the easiest macro to over-eat
Fat9 kcal/g83 g (at 30%)More than double the calories per gram — small portions add up fast
Alcohol7 kcal/gCounts toward calories but no macro slot; comes out of your 20% flexible allowance
Dietary fiber~2 kcal/gPartially digestible; some apps subtract fiber as 'net carbs'

Source: Atwater general factor system (Wilbur O. Atwater) — the standard energy values used on nutrition labels and by macro-tracking apps. Protein and carbohydrate yield 4 kcal/g, fat 9 kcal/g, alcohol 7 kcal/g, and most dietary fiber roughly 2 kcal/g. *Gram targets shown for the calculator's default 30/30/40 split on a 2,500 kcal day; the 'flexible' 20% (500 kcal) is where alcohol and treats fit.

Daily Protein Target by Goal (ISSN) — Sense-Check Your Macro Split

GoalProtein per kg bodyweightProtein per lb bodyweightExample: 70 kg (154 lb)Example: 90 kg (198 lb)
Sedentary baseline (RDA)0.8 g/kg0.36 g/lb56 g72 g
General endurance / active1.2–1.4 g/kg0.5–0.6 g/lb84–98 g108–126 g
Maintain / build muscle (ISSN)1.4–2.0 g/kg0.6–0.9 g/lb98–140 g126–180 g
Commonly cited optimum (Morton et al., 2018)1.6–2.2 g/kg0.7–1.0 g/lb112–154 g144–198 g
Fat loss / cut (preserve muscle)2.3–3.1 g/kg1.0–1.4 g/lb161–217 g207–279 g

Sources: RDA (0.8 g/kg) covers sedentary needs only, not training. General endurance/active needs run ~1.2–1.4 g/kg (ACSM/AND/DC position). For resistance exercisers, the ISSN Position Stand on Protein and Exercise (Jäger et al., 2017, JISSN; PMC5477153) establishes 1.4–2.0 g/kg/day as sufficient for building or maintaining muscle. The commonly cited optimum of ~1.6 g/kg with diminishing returns up to ~2.2 g/kg derives from a subsequent meta-analysis (Morton et al., 2018, BJSM), not from the ISSN 2017 paper. During a calorie deficit, the ISSN 2017 paper states resistance-trained individuals may need 2.3–3.1 g/kg to retain lean mass. Use this to sanity-check the protein gram figure the calculator gives you: the IIFYM 30%-of-calories default lands near these targets at typical calorie levels, but very high-calorie bulks (low g/kg) or aggressive cuts (needing high g/kg) may justify nudging the protein % up.

How it works

What 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 CaloriesProtein (g)Fat (g)Carbs (g)Flex (kcal)
1,500 kcal113 g50 g150 g300 kcal
1,800 kcal135 g60 g180 g360 kcal
2,000 kcal150 g67 g200 g400 kcal
2,200 kcal165 g73 g220 g440 kcal
2,500 kcal188 g83 g250 g500 kcal
3,000 kcal225 g100 g300 g600 kcal
3,500 kcal263 g117 g350 g700 kcal

Standard distribution: 30% protein / 30% fat / 40% carbs.

Standard macro split

Macro% CaloriesConversion2,500 kcal example
Protein30%÷ 4 kcal/g188 g
Fat30%÷ 9 kcal/g83 g
Carbohydrates40%÷ 4 kcal/g250 g

The 80/20 rule

  • 80% nutrient-dense: vegetables, fruits, whole grains, lean protein, legumes, low-fat dairy.

  • 20% flexible: whatever you enjoy — pizza, dessert, alcohol — as long as macros close for the day.
  • With 2,000 kcal, 400 kcal flexible = a large ice cream or a generous slice of pizza.

    Macro adjustment by goal

    GoalProteinFatCarbs
    Muscle gain (bulk)25%25%50%
    Body recomposition30%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.

    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).
    188 g protein + 83 g fat + 250 g carbs. 500 kcal flexible allowance.
    Disclaimer: For guidance only; this does not replace diagnosis, treatment, or professional follow-up. Consult a licensed healthcare professional.

    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.

    Methodology & trust

    Editorial

    Health calculator with its formula verified automatically against Layne Norton — Biolayne (original IIFYM source), per our editorial policy and methodology.

    Updates

    Updated: June 2026. Parameters are verified periodically against the cited sources.

    Privacy

    Calculations run 100% in your browser. We do not store or transmit your data.

    Limitations

    Indicative results. For critical decisions, consult a professional.

    📌 How to cite this calculator

    Rodríguez, M. (2026). IIFYM Calculator — If It Fits Your Macros (Flexible Diet). Hacé Cuentas. https://hacecuentas.com/en/macros-iifym-flexible

    Content licensed under CC-BY 4.0 — reuse it citing the source with a link to Hacé Cuentas.

    ✉️ Report an error in this calculator