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 Martín Rodríguez
- Formula verified by automated tests
- Private — runs on your device
See step-by-step calculation
See this calculation step by step
See period-by-period detail
How to use this calculator
Follow this tool’s steps, then review its formula, assumptions, and limits below.
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.
| Nutrient | kcal per gram | Grams from a 2,500 kcal target* | Why it matters for tracking |
|---|---|---|---|
| Protein | 4 kcal/g | 188 g (at 30%) | Most filling per calorie; protects muscle in a deficit |
| Carbohydrate | 4 kcal/g | 250 g (at 40%) | Fuels training; the easiest macro to over-eat |
| Fat | 9 kcal/g | 83 g (at 30%) | More than double the calories per gram — small portions add up fast |
| Alcohol | 7 kcal/g | — | Counts toward calories but no macro slot; comes out of your 20% flexible allowance |
| Dietary fiber | ~2 kcal/g | — | Partially 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
| Goal | Protein per kg bodyweight | Protein per lb bodyweight | Example: 70 kg (154 lb) | Example: 90 kg (198 lb) |
|---|---|---|---|---|
| Sedentary baseline (RDA) | 0.8 g/kg | 0.36 g/lb | 56 g | 72 g |
| General endurance / active | 1.2–1.4 g/kg | 0.5–0.6 g/lb | 84–98 g | 108–126 g |
| Maintain / build muscle (ISSN) | 1.4–2.0 g/kg | 0.6–0.9 g/lb | 98–140 g | 126–180 g |
| Commonly cited optimum (Morton et al., 2018) | 1.6–2.2 g/kg | 0.7–1.0 g/lb | 112–154 g | 144–198 g |
| Fat loss / cut (preserve muscle) | 2.3–3.1 g/kg | 1.0–1.4 g/lb | 161–217 g | 207–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 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.
Example: 2,500 kcal IIFYM breakdown
2,500 × 0.30 ÷ 4 kcal/g = 188 g (≈ 12 oz chicken breast + 2 eggs).2,500 × 0.30 ÷ 9 kcal/g = 83 g (≈ 2 tbsp olive oil + 1 avocado + handful of almonds).2,500 × 0.40 ÷ 4 kcal/g = 250 g (≈ 2 cups cooked rice + 2 medium fruits).2,500 × 0.20 = 500 kcal (1 slice pizza + small ice cream, or 2 beers).Frequently asked questions
What does IIFYM stand for?
What is the standard IIFYM macro split?
Can I eat pizza or ice cream on IIFYM?
How many grams of protein do I need on IIFYM?
Is IIFYM effective for weight loss?
What's the difference between IIFYM and regular calorie counting?
What apps are best for IIFYM macro tracking?
Do I need to track micronutrients on IIFYM?
Is IIFYM suitable for beginners?
How accurate do I need to be with macro tracking?
Sources & references
Methodology & trust
Health calculator with its formula verified automatically against Layne Norton — Biolayne (original IIFYM source), per our editorial policy and methodology.
Updated: June 2026. Parameters are verified periodically against the cited sources.
Calculations run 100% in your browser. We do not store or transmit your data.
Indicative results. For critical decisions, consult a professional.
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.