X-Calculator
Calorie and Metabolism Updated November 23, 2026

Macro Calculator

Split your daily calories into grams of protein, carbs and fat for your goal and diet style.

Maintenance calories (TDEE)
kcal
Goal
Diet style (protein / carbs / fat)
Meals per day
Advertisement
Advertisement

This macro calculator splits your daily calories into grams of protein, carbohydrate and fat. Enter your maintenance calories, pick a goal (lose, maintain or gain) and a diet style — balanced, high-protein, low-carb or keto — and you get daily grams for each macronutrient, plus the amount per meal.

How macros are calculated

Each macronutrient supplies a fixed amount of energy: protein and carbohydrate 4 kcal per gram, fat 9 kcal per gram (alcohol, if you drink, adds 7 kcal per gram). The calculator adjusts your calories for your goal, applies the percentage split, and divides by the energy per gram:

target calories = maintenance calories + goal adjustment
protein (g) = target × protein % ÷ 4
carbs (g)   = target × carb % ÷ 4
fat (g)     = target × fat % ÷ 9

Do not know your maintenance calories? Get them from the TDEE calculator first, or plan a cut with the calorie deficit calculator.

Worked examples

  • 2,000 kcal, maintain, balanced (20/50/30): protein 2,000 × 0.20 ÷ 4 = 100 g, carbs 2,000 × 0.50 ÷ 4 = 250 g, fat 2,000 × 0.30 ÷ 9 = 67 g. Over 3 meals: 33 g protein, 83 g carbs, 22 g fat each.
  • 2,500 kcal maintenance, lose weight (−500), high-protein (35/40/25): target 2,000 kcal → 175 g protein, 200 g carbs, 56 g fat.
  • 1,800 kcal, maintain, low-carb (30/20/50): 135 g protein, 90 g carbs, 100 g fat.
  • 2,200 kcal, maintain, keto (20/5/75): 110 g protein, 28 g carbs, 183 g fat.
Advertisement
Advertisement

Macro splits compared

Diet style Protein Carbs Fat Grams at 2,000 kcal (P / C / F)
Balanced 20% 50% 30% 100 / 250 / 67
Moderate (30/40/30) 30% 40% 30% 150 / 200 / 67
High-protein 35% 40% 25% 175 / 200 / 56
Low-carb 30% 20% 50% 150 / 100 / 111
Keto 20% 5% 75% 100 / 25 / 167

The balanced split sits inside the Acceptable Macronutrient Distribution Ranges set by the National Academies and used in the Dietary Guidelines for Americans: 10–35% of calories from protein, 45–65% from carbohydrate and 20–35% from fat for adults. The other splits deliberately move outside those ranges for a specific goal.

Which split should you choose?

  • Balanced — a good default for general health and endurance sports, where carbohydrate fuels training.
  • Moderate 30/40/30 — more protein without going low-carb; popular for body recomposition.
  • High-protein — the best fit for fat loss. Protein is the most filling macronutrient and helps keep muscle in a deficit. Check the gram target against the protein intake calculator; 1.6–2.2 g per kg of body weight is the range most research supports for people who lift.
  • Low-carb — useful if you prefer fewer starches or are managing blood sugar with your clinician. Under about 130 g of carbs per day is generally called low-carb.
  • Keto — carbs usually stay under 20–50 g per day to reach ketosis. It is restrictive; anyone with diabetes, kidney disease or who takes blood-sugar medication should get medical advice first.

Over 12 weeks or more, studies comparing diets of equal calories find similar weight loss whether the diet is low-fat or low-carb. Total calories and protein matter most; pick the split you can keep.

Tips for hitting your macros

  • Set protein first. Hit the gram target daily; let carbs and fat flex a little.
  • Use a food scale for a week or two. Eyeballing portions of oils, nut butters and rice causes the biggest errors.
  • Spread protein across meals. 25–40 g per meal, 3–5 times a day, supports muscle protein synthesis better than one large serving.
  • Count fiber within carbs. Aim for 14 g of fiber per 1,000 kcal (28 g at 2,000 kcal), the Dietary Guidelines target.
  • Re-check every 4–6 weeks or after a 10 lb change in body weight.

Good to know: macro targets are estimates for educational purposes only and are not medical or dietary advice. If you are pregnant, have diabetes, kidney disease or another medical condition, ask your doctor or a registered dietitian before changing your diet.

Frequently Asked Questions

How do I calculate my macros?

Multiply your daily calories by the percentage for each macro, then divide protein and carbs by 4 and fat by 9. At 2,000 kcal with 30% protein: 2,000 × 0.30 ÷ 4 = 150 g of protein.

What is the best macro ratio for weight loss?

A calorie deficit drives weight loss; the ratio matters less. A higher-protein split (30–35% protein) makes a deficit easier because protein is filling and protects muscle.

How many carbs a day on keto?

Most ketogenic diets keep net carbs under 20–50 g per day, roughly 5–10% of calories. At 2,000 kcal, 5% is 25 g.

Do I need to hit my macros exactly?

No. Landing within about 5–10 g of protein and carbs and 5 g of fat most days is plenty. Consistency over weeks matters more than precision on any one day.

Should macros change on training days?

Some people eat more carbs on hard training days and fewer on rest days, keeping protein constant. It is optional; the weekly average is what counts for body weight.

Advertisement
Advertisement
Advertisement