IIFYM Macro Calculator: Protein, Carbs and Fat
Start from your calorie needs and your goal to get your daily grams of protein, carbohydrates and fat.
Splitting calories into macros: the 4-4-9 rule with an example
The calculator starts from a calorie figure you already know, adjusts it to your goal (−20% to lose weight, +10% to gain), then splits it between protein, carbohydrate and fat using a fixed profile. Grams are obtained by dividing calories by 4 for protein and carbohydrate and by 9 for fat: 2,500 kcal with a weight-loss goal and the balanced profile give 150 g of protein, 200 g of carbohydrate and 67 g of fat.
This page does not calculate your energy expenditure: it splits a total that you enter. To get that figure, use the site's calorie calculator (Mifflin-St Jeor equation); the BMR, TDEE and macros calculator chains both steps.
Rules applied
- Goal: weight loss = need × 0.8; maintenance = need; muscle gain = need × 1.1 (rounded to the kcal).
- Protein / carbohydrate / fat profiles, as % of calories: balanced 30/40/30, low carb 40/20/40, high protein 45/35/20, keto 25/5/70.
- Grams = calories from the macronutrient ÷ 4 (protein, carbohydrate) or ÷ 9 (fat), each rounded separately.
Example
A need of 2,500 kcal with a weight-loss goal: 2,500 × 0.8 = 2,000 kcal. Balanced profile: 2,000 × 30% ÷ 4 = 150 g of protein, 2,000 × 40% ÷ 4 = 200 g of carbohydrate, 2,000 × 30% ÷ 9 = 67 g of fat. Because of rounding, 150 × 4 + 200 × 4 + 67 × 9 = 2,003 kcal, 3 kcal more than the displayed total. At maintenance with the keto profile, the same 2,500 kcal give 31 g of carbohydrate and 194 g of fat.
Limits
The percentages are fixed and ignore body weight and activity, whereas protein needs are often expressed in grams per kilo. For comparison, EFSA sets 45 to 60% of energy from carbohydrate and 20 to 35% from fat for adults: only the balanced profile falls within these ranges, the low-carb and keto profiles are well outside. The factors 4 and 9 are averages; alcohol (7 kcal/g) and fibre (2 kcal/g) are not counted. The result is indicative: on a restrictive diet, with a chronic condition, during pregnancy or for teenagers, ask a doctor or dietitian.
Sources and dates: Regulation (EU) No 1169/2011 on the provision of food information to consumers, Annex XIV (applicable since 13/12/2014): 4 kcal/g for carbohydrate and protein, 9 kcal/g for fat, 7 kcal/g for alcohol, 2 kcal/g for fibre; EFSA scientific opinions on dietary reference values for carbohydrates and dietary fibre and for fats, EFSA Journal 2010, 8(3) (cited in text, not consulted online). Checked on 14/10/2026.
Frequently Asked Questions
How do I convert calories into grams of protein, carbs and fat?
Divide the calories assigned to protein or carbohydrate by 4 and those assigned to fat by 9; these are the EU nutrition labelling factors. For example, 600 kcal of protein is 150 g, and 600 kcal of fat is about 67 g.
Which macro split should I choose to lose weight?
The tool takes 20% off your calorie need and lets you pick the profile: starting from 2,500 kcal with the balanced 30/40/30 profile, it shows 2,000 kcal, including 150 g of protein. Weight loss depends mainly on the calorie deficit; the profile is a matter of preference and, if needed, advice from a dietitian.
How many carbs does the keto profile allow?
The tool's keto profile gives 5% of calories to carbohydrate: 31 g a day for 2,500 kcal, against the 45 to 60% of energy recommended by EFSA for the general population. A diet this low in carbohydrate is best started under medical supervision.
Why don't my macros add up exactly to the target?
Each amount is rounded to the gram separately. At 2,000 kcal with the balanced profile, 150 g, 200 g and 67 g recalculated give 2,003 kcal, a 3 kcal difference. Over a day, this gap is negligible.
Is this tool really free?
Yes, all tools on Kristools are 100% free and accessible without registration.
Is my data protected?
Yes. All processing is performed directly and securely inside your browser. No personal data is sent to our servers.