Macro Calculator
Free macro calculator that splits your daily calories into protein, carbs and fat. Pick balanced, high-protein, low-carb or keto ratios and get grams instantly.
Updated 2026-06-09 · Free · No sign-up · Runs privately in your browser
What is a macro calculator?
A macro calculator splits your daily calorie target into grams of the three macronutrients — protein, carbohydrate and fat — using a ratio you choose. You enter a calorie number, pick a split such as Balanced or Keto, and the tool above returns how many grams of each macro to aim for. It turns a single calorie goal into a practical, food-by-food plan.
“Macros” is short for macronutrients, the three nutrients that supply energy. Counting them — not just total calories — is the core idea behind flexible dieting, often called IIFYM (If It Fits Your Macros). The split you pick changes the feel of the diet: more protein for satiety and muscle, fewer carbs for keto, or an even spread for general health.
How does the macro calculator work?
The calculator uses one simple conversion for each macro. It takes the share of calories assigned to that macro, then divides by how many calories a gram of it provides.
Core formula:
grams = calories × split% ÷ kcal-per-gram
The energy density of each macro is fixed:
- Protein — 4 kcal per gram.
- Carbohydrate — 4 kcal per gram.
- Fat — 9 kcal per gram.
The terms and units are straightforward:
- calories — your daily energy target in kilocalories (kcal).
- split% — the fraction of calories assigned to that macro, written as a decimal (50 percent = 0.50).
- kcal-per-gram — 4 for protein and carbs, 9 for fat.
Because fat packs 9 kcal into every gram while protein and carbs hold only 4, the same percentage of calories yields far fewer grams of fat than of carbohydrate. That is why a high-fat keto plan still shows a modest fat number in grams.
The tool ships with four presets, written as carb / protein / fat:
| Preset | Carb % | Protein % | Fat % | Best for |
|---|---|---|---|---|
| Balanced | 50 | 25 | 25 | General health, everyday eating |
| High protein | 40 | 40 | 20 | Muscle gain, fat loss, training |
| Low carb | 25 | 40 | 35 | Lower-carb fat loss |
| Keto | 5 | 30 | 65 | Ketogenic, very-low-carb diets |
Examples
Each example below matches the tool’s output exactly. Grams are rounded to whole numbers.
Example 1 — 2,000 kcal, Balanced 50/25/25
- Carbs = 2000 × 0.50 ÷ 4 = 250 g
- Protein = 2000 × 0.25 ÷ 4 = 125 g
- Fat = 2000 × 0.25 ÷ 9 = 56 g
Example 2 — 2,000 kcal, Keto 5/30/65
- Carbs = 2000 × 0.05 ÷ 4 = 25 g
- Protein = 2000 × 0.30 ÷ 4 = 150 g
- Fat = 2000 × 0.65 ÷ 9 = 144 g
Example 3 — 2,500 kcal, High protein 40/40/20
- Carbs = 2500 × 0.40 ÷ 4 = 250 g
- Protein = 2500 × 0.40 ÷ 4 = 250 g
- Fat = 2500 × 0.20 ÷ 9 = 56 g
Example 4 — 1,800 kcal, Low carb 25/40/35
- Carbs = 1800 × 0.25 ÷ 4 = 113 g
- Protein = 1800 × 0.40 ÷ 4 = 180 g
- Fat = 1800 × 0.35 ÷ 9 = 70 g
Notice how Example 1 and Example 3 both land on 56 g of fat: 25 percent of 2,000 kcal and 20 percent of 2,500 kcal are each 500 fat calories, and 500 ÷ 9 rounds to 56 g.
Macro reference table
The table below shows grams for every preset at three common calorie levels, calculated straight from the formula. Use it as a quick lookup, then enter your own calories above for a precise result.
| Calories | Balanced (C/P/F) | High protein (C/P/F) | Low carb (C/P/F) | Keto (C/P/F) |
|---|---|---|---|---|
| 1,500 kcal | 188 / 94 / 42 | 150 / 150 / 33 | 94 / 150 / 58 | 19 / 113 / 108 |
| 2,000 kcal | 250 / 125 / 56 | 200 / 200 / 44 | 125 / 200 / 78 | 25 / 150 / 144 |
| 2,500 kcal | 313 / 156 / 69 | 250 / 250 / 56 | 156 / 250 / 97 | 31 / 188 / 181 |
Each cell is grams of carbohydrate, protein and fat in that order. Carbs and protein grams scale at 4 kcal each, while fat stays smaller per calorie because of its 9 kcal/g density.
Common uses
A macro split is the next step after you know your calorie target:
- Macros for weight loss. Pair a calorie deficit with a higher-protein split (40/40/20) to stay full and protect muscle.
- Muscle gain. Keep protein high and carbs ample to fuel training and recovery.
- Keto and low-carb diets. Use the Keto (5/30/65) or Low carb (25/40/35) presets to cap carbohydrate while raising fat.
- Flexible dieting / IIFYM. Track grams of each macro rather than banning foods, eating anything that fits the day’s targets.
- Meal planning. Convert daily gram targets into per-meal goals — for example, splitting 150 g protein across three or four meals.
Tips and common mistakes
- Set calories first. A macro split only divides a calorie total, so get the total right before choosing a ratio.
- Prioritise protein. Whatever preset you pick, hitting your protein grams matters most for body composition and fullness.
- Read presets as carb / protein / fat. It is easy to misread the order; Balanced is 50 percent carbs, not 50 percent protein.
- Expect small fat numbers. Fat grams look low next to carbs because fat carries more than twice the calories per gram — this is correct, not an error.
- Round, do not obsess. A target of 56 g fat is a guide; landing within a few grams each day is plenty accurate.
- Re-run after changes. Recalculate when your calorie target shifts so the grams stay aligned with your goal.
Limitations and notes
This calculator is a starting framework, not a personalised prescription. The presets are general ratios, not targets tuned to your body, training or medical needs, and the math assumes your calorie figure is already correct — garbage in, garbage out. It uses standard energy values (4 kcal/g for protein and carbs, 9 kcal/g for fat) and ignores fibre, alcohol and the small thermic differences between foods, so real-world calories can vary slightly. Protein needs in particular often track body weight more closely than a flat percentage, so an off-the-shelf split may over- or under-shoot for some people. Grams are rounded for usability, which means the displayed macros may total a few calories above or under your exact input.
Health disclaimer: This macro calculator is provided for general information and education only. It is not medical, nutritional or fitness advice, and it is not a substitute for professional assessment. Before making decisions about your diet, macros or health, consult a qualified healthcare professional.
To build a full plan, find your daily calories with the TDEE calculator, set strength goals with the one rep max calculator, or track activity with the steps to miles calculator, and browse the full fitness category for more tools.
Frequently asked questions
What is a macro calculator?+
It splits your daily calorie target into grams of protein, carbohydrate and fat using a chosen ratio, so you know how much of each to eat.
How do I use this macro calculator?+
Enter your daily calories, pick a ratio preset like Balanced or Keto, then read the protein, carb and fat grams the tool shows.
How are macros calculated from calories?+
grams = calories × split% ÷ kcal-per-gram, using 4 kcal/g for protein and carbs and 9 kcal/g for fat.
Can you show a worked macro example?+
At 2,000 kcal on Balanced 50/25/25: carbs = 2000×0.50÷4 = 250 g, protein = 2000×0.25÷4 = 125 g, fat = 2000×0.25÷9 = 56 g.
What are good macros for weight loss?+
A higher-protein split such as 40/40/20 (carb/protein/fat) helps preserve muscle and keep you full while in a calorie deficit.
What macros does keto use?+
Keto uses about 5/30/65 carb/protein/fat; at 2,000 kcal that is 25 g carbs, 150 g protein and 144 g fat.
Why is fat 9 calories per gram?+
Fat stores more energy per gram than protein or carbohydrate, which each provide 4 kcal/g, so the same grams of fat add more calories.
Do the macro grams add up to my calories?+
Yes — the three ratios sum to 100 percent, so the grams convert back to your full daily calorie total.