IIFYM Calculator (If It Fits Your Macros)
Turn a calorie target into grams of protein, carbohydrate, and fat using an IIFYM-style macro split.
Enter calories and your percentage split for protein, carbs, and fat. Optionally add a body-weight protein target to compare a grams-per-kilogram approach.
IIFYM Calculator (If It Fits Your Macros)
Turn a calorie target into grams of protein, carbohydrate, and fat using an IIFYM-style macro split.
About IIFYM macro planning
IIFYM, short for “If It Fits Your Macros,” is a flexible dieting approach that focuses first on total calories and macronutrient targets rather than on rigid food lists. The idea is simple: if your daily intake lands close to your planned calories, protein, carbohydrate, and fat goals, you can build those targets from many different food choices. For some people, this flexibility improves adherence because it creates room for personal preferences, social meals, and occasional treats while still keeping the broader nutrition plan structured.
This calculator starts with the percentage method because that is one of the fastest ways to convert a calorie target into gram goals. Protein and carbohydrate each provide about 4 calories per gram, while fat provides about 9 calories per gram. Once the calorie target and macro percentages are known, the math is straightforward. The tool also offers an optional protein-per-kilogram comparison because many athletes and people in a fat-loss phase prefer to anchor protein intake to body weight rather than to a percentage. That comparison can be useful when a macro split looks reasonable on paper but produces a protein target that feels too low or too high for the person’s goals.
Flexible dieting still benefits from nutritional judgment. Hitting macro targets with mostly ultra-processed foods may satisfy the arithmetic while missing fiber, micronutrients, food quality, and satiety considerations. On the other hand, a person can meet the same macros using mostly minimally processed foods and feel very different in terms of appetite control, digestion, training performance, and energy. The IIFYM framework is therefore best understood as a budgeting system, not a claim that all foods have identical health effects.
Use this calculator to translate a calorie plan into daily gram targets, compare a body-weight protein goal with a percentage-based one, and sense-check whether the split is internally consistent. It does not calculate your calorie needs or guarantee body-composition results. Training load, sleep, stress, medical conditions, and adherence over time still determine whether a macro plan is effective.
IIFYM examples
These sample plans show how different calorie goals and macro splits change the final gram targets.
| Input | Output | Note |
|---|---|---|
| 2800 kcal, 30% protein, 45% carbs, 25% fat, 80 kg at 2.2 g/kg protein | Protein 210 g, carbs 315 g, fat 77.8 g, alternate protein 176 g | A higher-calorie training phase where percentage-based protein exceeds the weight-based comparison. |
| 1800 kcal, 35% protein, 35% carbs, 30% fat, 70 kg at 2.0 g/kg protein | Protein 157.5 g, carbs 157.5 g, fat 60 g, alternate protein 140 g | A cut-focused split that keeps protein relatively high. |
| 2200 kcal, 25% protein, 45% carbs, 30% fat | Protein 137.5 g, carbs 247.5 g, fat 73.3 g | A balanced percentage-based plan without a body-weight protein override. |
How to use it
- Enter your daily calorie target.
- Enter the percentage of calories you want from protein, carbs, and fat, making sure they total 100.
- Optionally add a protein target in grams per kilogram and your body weight for comparison.
- Click Calculate to view the macro gram targets and compare percentage-based protein with the body-weight method.
Frequently asked questions
Why must the percentages total 100?
The three macronutrients together describe the full calorie split. If they do not total 100, the plan is internally inconsistent.
Which protein target should I trust more?
That depends on your goal. A body-weight target is popular for athletes and fat loss, while percentage targets are convenient for overall meal planning.
Does IIFYM mean food quality does not matter?
No. Macros are important, but fiber, micronutrients, satiety, and overall dietary pattern still matter for health and performance.
Why does fat use different math than protein and carbs?
Fat provides about 9 calories per gram, while protein and carbohydrate each provide about 4 calories per gram. This difference means that a 25 % fat allocation produces fewer grams than the same percentage allocated to protein or carbohydrate.
Can this tool tell me how many calories I should eat?
No. It converts an existing calorie target into grams of macros. A separate calorie-needs calculation is still required.
Related tools
Glycemic Index Calculator – GI & GL of Foods
Glycemic index calculator computes GI and glycemic load for individual foods or full meals. Manage blood sugar for diabetes and healthy eating.
FIB-4 Calculator: Liver Fibrosis Assessment
FIB-4 calculator scores liver fibrosis non-invasively using age, AST, ALT, and platelet count. Screen for advanced fibrosis in chronic liver disease.
Hot Car Calculator – Parked Car Interior Temperature
Hot car calculator predicts parked vehicle interior temperature from outside heat, sunlight, car color, and tinting to assess danger for children and pets.
SCORAD Calculator – Atopic Dermatitis Severity Score
SCORAD calculator assesses atopic dermatitis severity using extent, intensity, and subjective symptoms. Grades eczema mild, moderate, or severe to guide care.
Fatigue Severity Scale Calculator – FSS Score
Fatigue Severity Scale (FSS) calculator scores 9 questions to assess fatigue severity. Identify clinical fatigue and get evidence-based guidance.
Cholesterol Units Converter – mg/dL, mmol/L & mg/L
Cholesterol units converter converts Total, HDL, LDL, and Triglycerides between mg/dL, mmol/L, and mg/L for accurate international lipid panel analysis.
PSI Calculator - Pressure Unit Converter for Medical Use
PSI pressure converter converts PSI, mmHg, kPa, bar, atm, cmH2O, Pa, and MPa with configurable precision for medical device calibration and respiratory care.
Sodium Change Calculator in Hypertriglyceridemia
Sodium change calculator corrects pseudohyponatremia in hypertriglyceridemia using the 0.002 mEq/L per mg/dL lipid-interference formula.