IIFYM Calculator (If It Fits Your Macros)

Convert an entered calorie target and chosen carbohydrate, protein and fat percentages to grams with the general 4/4/9 convention. Educational scenario arithmetic.

Disclaimer: For informational purposes only. Not a substitute for professional medical advice. Always consult a healthcare provider for health-related decisions.

IIFYM Calculator (If It Fits Your Macros)

Your entered value; no energy requirement is estimated.

Choose all three percentages totaling 100%. Changing one never adjusts another.

Enter decimals with a point, for example 1.6; scientific notation such as 2e3 is accepted.

General 4/4/9 energy convention: carbohydrate and protein 4 kcal/g; fat 9 kcal/g. Conditional arithmetic, not measured food energy or a personal recommendation.

What is IIFYM?

IIFYM means “If It Fits Your Macros”: recording foods against chosen carbohydrate, protein and fat amounts. This calculator converts your own energy target and split; the name of the approach is not evidence that a split is appropriate for a particular person.

Macro totals alone do not describe vitamins, minerals, fiber, allergens or the suitability of a food for a medical diet.

How to Calculate Your Macros

  1. Enter a calorie target you have already chosen. This tool does not estimate energy needs from your age, weight, activity, or goals.
  2. Choose carbohydrate, protein and fat percentages totaling 100%. A change to one percentage does not silently change another.
  3. Convert each percentage to a fraction, multiply by the entered calories, then divide carbohydrate and protein calories by 4 and fat calories by 9.

Worked example: 2,000 kcal with carbohydrate 50%, protein 20%, fat 30% yields 250 g carbohydrate, 100 g protein and 66.7 g fat. The fat value is rounded for display; calculations use the unrounded amount.

The general 4/4/9 convention assigns 4 kcal/g to carbohydrate and protein and 9 kcal/g to fat. 21 CFR 101.9(c)(1) also describes other food-energy methods and specific factors for fiber and polyols. The chosen convention here is conditional planning arithmetic, not a reconstruction of every food label. Checked September 30, 2026.

Macronutrient Guidelines

Health Canada dietary reference values give AMDRs (Acceptable Macronutrient Distribution Ranges): ages 19+ carbohydrate 45–65%, protein 10–35%, fat 20–35%; ages 4–18 protein 10–30% and fat 25–35%; ages 1–3 protein 5–20% and fat 30–40%. Carbohydrate remains 45–65% for ages 1–18. These population references do not choose a personal menu. Table updated November 19, 2025; checked September 30, 2026.

Food examples include grains, vegetables, fruit and legumes for carbohydrate; fish, eggs, dairy, soy and legumes for protein; and oils, nuts, seeds and avocado for fat. Foods usually contain more than one macro, so record all declared amounts.

Benefits and Challenges

Tracking can make the relationship between portions, calories and macro grams easier to see. It also requires consistent serving sizes and accurate entries. Matching three numbers does not certify food quality or guarantee a weight-loss rate.

Label values are rounded, and generic food records may describe a different preparation. Identify the actual food and quantity before comparing a meal with your entered scenario.

Getting Started with IIFYM

  1. Enter your independently chosen calorie target and all three macro percentages.
  2. Review the displayed formula and grams before using them in a meal record.
  3. For each food, record its quantity and nutrition values on the same serving or weight basis.
  4. Include all macro contributions, including those from sauces, drinks and mixed foods.
  5. Review fiber, micronutrients and ingredients separately; they are not certified by matching macro totals.

Frequently Asked Questions

Does this calculator choose my calorie or macro needs?

No. It converts your entered calorie target and percentages to grams. Neither the arithmetic nor a population reference establishes personal suitability, weight change, or clinical safety.

Why must the percentages total 100%?

The entered calorie target is completely allocated across carbohydrate, protein and fat. A total above or below 100% is rejected rather than changed or hidden.

Will these macro grams exactly reproduce a food label?

Not always. The general 4/4/9 convention does not model alcohol, all fiber, individual polyols, food-specific energy factors, or label rounding. Use declared food values consistently.