How to Calculate Macros: Protein, Carbs and Fat in Grams

Turn a daily calorie target into grams of protein, carbohydrate and fat. Learn the percentage and grams-first methods, common splits and how to check them.

To calculate macros, start with a daily calorie target, decide how much protein and fat you need, and fill the remaining calories with carbohydrates, converting between calories and grams with the 4-4-9 rule: protein and carbs have about 4 calories per gram and fat about 9. For an 1,800-calorie target split 30% protein, 40% carbs and 30% fat, that is 135 g protein, 180 g carbs and 60 g fat. A grams-first approach, setting protein by body weight, is often more precise.

Step 1: Set your calorie target

Macros are a way of dividing calories, so the calorie number comes first. Estimate your maintenance needs (TDEE) from your BMR and activity level, then subtract a deficit to lose weight or add a surplus to gain. The calorie calculator does this, and how to calculate calories for weight loss explains the deficit.

Step 2: Know the conversion factors

Macronutrient Calories per gram
Protein 4
Carbohydrate 4
Fat 9
Alcohol (not a macro target, but it counts) 7
Grams = Calories × Percent ÷ Calories per gram
Total calories = 4 × Protein g + 4 × Carb g + 9 × Fat g

Method 1: percentages

Choose a split and convert each share to grams.

Example: 1,800 calories at 30% protein / 40% carbs / 30% fat

Macro Calories Grams
Protein (30%) 540 540 ÷ 4 = 135 g
Carbs (40%) 720 720 ÷ 4 = 180 g
Fat (30%) 540 540 ÷ 9 = 60 g
Total 1,800

Percentages are easy, but they scale protein with calories, so a big calorie cut also cuts protein, which is usually the opposite of what you want while losing weight.

Set protein and fat from body weight, then let carbs take the rest.

  1. Protein: 1.2 to 2.0 g per kilogram of body weight for active adults or anyone in a calorie deficit; 0.8 g/kg is the RDA minimum for healthy adults. See how much protein do I need.
  2. Fat: about 0.6 to 1.0 g per kilogram, or 20% to 35% of calories, to cover essential fatty acids and fat-soluble vitamins.
  3. Carbohydrate: remaining calories ÷ 4.

Example: 1,800 calories, 75 kg (165 lb), weight loss

  • Protein: 1.6 g/kg × 75 = 120 g = 480 calories
  • Fat: 0.8 g/kg × 75 = 60 g = 540 calories
  • Carbs: (1,800 − 480 − 540) ÷ 4 = 780 ÷ 4 = 195 g

That works out to about 27% protein, 30% fat and 43% carbohydrate.

Example: 2,600 calories, 80 kg (176 lb), active maintenance

  • Protein: 1.6 × 80 = 128 g = 512 calories (20%)
  • Fat: 25% of 2,600 = 650 calories = 72 g
  • Carbs: (2,600 − 512 − 650) ÷ 4 = 360 g (55%)

The macro calculator runs either method and shows grams per meal.

Common macro splits at 2,000 calories

Plan Protein / Carbs / Fat Protein Carbs Fat
Balanced (mid-range of guidelines) 20 / 50 / 30 100 g 250 g 67 g
Higher protein 30 / 40 / 30 150 g 200 g 67 g
Lower carbohydrate 30 / 25 / 45 150 g 125 g 100 g
Endurance training 15 / 60 / 25 75 g 300 g 56 g
Ketogenic 20 / 5 / 75 100 g 25 g 167 g

The Acceptable Macronutrient Distribution Ranges from the National Academies (45% to 65% carbohydrate, 20% to 35% fat, 10% to 35% protein) describe intakes associated with lower chronic disease risk and adequate nutrients. Lower-carb and ketogenic plans fall outside those ranges; they can work for some people but are worth discussing with a clinician, especially if you have diabetes, kidney disease or take medications.

Step 3: Check the math

Add up the calories from your grams. For the 1,800-calorie grams-first example: 4 × 120 + 4 × 195 + 9 × 60 = 480 + 780 + 540 = 1,800. If the total does not match your target, adjust carbs.

Splitting macros across meals

Daily totals are what count, but spreading protein out makes the target easier to reach and may help muscle maintenance. With 120 g of protein over three meals and a snack, aim for roughly 30 to 35 g at each meal and 15 to 20 g at the snack. Carbohydrates can be shifted toward the hours before and after exercise if you train hard, and fat is easy to keep moderate by measuring cooking oils, which contain about 14 g of fat (roughly 120 calories) per tablespoon. A simple daily template for the 1,800-calorie example might look like this:

Meal Protein Carbs Fat
Breakfast 30 g 45 g 15 g
Lunch 35 g 55 g 18 g
Snack 20 g 30 g 7 g
Dinner 35 g 65 g 20 g
Total 120 g 195 g 60 g

Quality still matters

Macros say nothing about food quality. A few guidelines from the Dietary Guidelines for Americans help:

  • Fiber: about 14 g per 1,000 calories, so about 25 g at 1,800 calories.
  • Saturated fat: less than 10% of calories, under 22 g at 2,000 calories.
  • Added sugars: less than 10% of calories.
  • Protein variety: include fish, legumes, nuts and dairy, not only meat.

Tracking tips

  1. Hit protein first. It is the hardest target for most people and the most important during a deficit.
  2. Use ranges, not exact numbers. Within about 5 to 10 grams of each target is plenty precise.
  3. Weigh foods for a week or two. It calibrates your eye for portion sizes.
  4. Read labels per serving. Multiply by the number of servings you actually eat.
  5. Adjust from results. If weight or performance is not moving as expected after three to four weeks, change calories first, then the split.

Macros by goal: quick guide

Goal Calories Protein Fat Carbs
Fat loss TDEE − 15% to 25% 1.6–2.2 g/kg 0.6–1.0 g/kg Remainder
Maintenance TDEE 1.2–1.6 g/kg 20%–35% Remainder
Muscle gain TDEE + 5% to 10% 1.6–2.2 g/kg 20%–30% Remainder
Endurance training TDEE (or more) 1.2–1.6 g/kg 20%–30% Often 5–8 g/kg

To estimate the BMR behind your TDEE, see how to calculate BMR, and project a timeline with the weight loss calculator.

This guide is general nutrition information, not medical or dietary advice. Needs vary with health conditions, pregnancy, age and training. Consult a doctor or registered dietitian before major changes to your diet.

Frequently asked questions

How many calories are in a gram of protein, carbs and fat?

Protein and carbohydrate provide about 4 calories per gram, fat about 9 and alcohol about 7. These Atwater factors are what US nutrition labels are based on.

What macro ratio is best for weight loss?

Total calories matter most for weight loss. Within a calorie deficit, a higher protein share, roughly 25% to 35% of calories or 1.2 to 2.0 grams per kilogram, helps preserve muscle and control hunger. The best carb-to-fat split is the one you can stick with.

What are the recommended macronutrient ranges?

The National Academies set Acceptable Macronutrient Distribution Ranges for adults: 45% to 65% of calories from carbohydrate, 20% to 35% from fat and 10% to 35% from protein.

How do I convert a macro percentage to grams?

Multiply your calorie target by the percentage, then divide by 4 for protein or carbs or by 9 for fat. At 2,000 calories, 30% protein is 600 calories ÷ 4 = 150 grams.

Should I count fiber in my carbs?

On US labels, total carbohydrate includes fiber. Most people simply track total carbs. Some low-carb plans track net carbs (total minus fiber), but the FDA does not define net carbs. Aim for about 14 grams of fiber per 1,000 calories, per the Dietary Guidelines for Americans.