Macro Calculator

Split your daily calories into grams of protein, carbs and fat with preset or custom percentages, using the FDA's 4-4-9 calories per gram.

  • Formula explained
  • No signup required
  • Instant calculation
  • Nothing you enter is stored
Free interactive calculator

Macro Calculator

Split a daily calorie target into grams of protein, carbohydrate and fat using percentages you choose.

Example values are filled in. Replace them with your own; results update as you type.

Macro split

Enter your calories and macro split.

How this calculation works
  • Grams = calories × percentage ÷ calories per gram
  • General factors: 4 kcal per gram of protein, 4 per gram of carbohydrate, 9 per gram of fat (21 CFR 101.9)
  • Adult Acceptable Macronutrient Distribution Ranges: protein 10 to 35%, carbohydrate 45 to 65%, fat 20 to 35% of calories

Sources: FDA, 21 CFR 101.9 (4, 4 and 9 kcal per gram); Healthy U.S.-style dietary patterns and protein, Nutrition Journal 2022 (adult AMDRs); Wolfe & Cifelli 2017, Adv Nutr (protein AMDR)

Last reviewed November 2026

A planning tool, not a diet prescription. Fiber, alcohol and sugar alcohols are not counted separately. Talk to a registered dietitian if you have a health condition or special dietary needs.

Macros, short for macronutrients, are the protein, carbohydrate and fat that supply your calories. This macro calculator splits a daily calorie target into grams of each, using percentages you choose. It also flags any split outside the adult ranges set by the National Academies.

How to Use This Calculator

  1. Enter your daily calories. The TDEE Calculator or Calorie Deficit Calculator can help you pick a number.
  2. Choose a preset split, or pick Custom and enter your own percentages. They must add up to 100%.
  3. Read your daily grams of protein, carbohydrate and fat.

How the Calculator Works

Each macro's calories are divided by its calories per gram. The FDA's food labeling rules use general factors of 4 calories per gram for protein, 4 for carbohydrate and 9 for fat.

MacroCalories per gramFormula
Protein4calories × protein % ÷ 4
Carbohydrate4calories × carb % ÷ 4
Fat9calories × fat % ÷ 9

A Worked Example

At 2,000 calories a day with the balanced split of 20% protein, 50% carbohydrate and 30% fat:

  1. Protein: 2,000 × 20% ÷ 4 = 100 g
  2. Carbohydrate: 2,000 × 50% ÷ 4 = 250 g
  3. Fat: 2,000 × 30% ÷ 9 = 67 g

Adult Macro Ranges

The National Academies set Acceptable Macronutrient Distribution Ranges (AMDRs) for adults. These ranges are linked to lower chronic disease risk while still providing enough essential nutrients.

MacroAdult range, % of calories
Protein10 to 35%
Carbohydrate45 to 65%
Fat20 to 35%

The calculator's presets show common splits, and it flags any macro outside these ranges. The "lower carb" preset, for example, sits below the carbohydrate range by design. For protein in grams per kilogram of body weight rather than a percentage, use the Protein Calculator.

Limitations

  • It's a planning tool. Hitting exact grams every day isn't necessary, and real food rarely splits neatly.
  • Fiber and alcohol aren't separated. Fiber is part of total carbohydrate on US labels, and alcohol supplies calories outside the three macros.
  • Personal needs vary. Health conditions, pregnancy and some sports call for different targets. A registered dietitian can tailor them.

FAQs

How Do I Calculate My Macros?

Multiply your daily calories by each macro's percentage, then divide by its calories per gram: 4 for protein, 4 for carbohydrate and 9 for fat. At 2,000 calories and a 20/50/30 split, that's 100 g protein, 250 g carbohydrate and 67 g fat.

What Is a Good Macro Split?

For adults, the National Academies' ranges are 10 to 35% of calories from protein, 45 to 65% from carbohydrate and 20 to 35% from fat. Many different splits fit within those ranges. The right one depends on your preferences, activity and health.

Why Does Fat Have More Calories per Gram?

Fat is a more concentrated energy source. The general factors used on US food labels give 9 calories per gram of fat, compared with 4 for protein and carbohydrate. That's why the same share of calories gives fewer grams of fat.

Is My Information Stored?

No. The calculator runs entirely in your browser. It needs no account, doesn't save your entries and doesn't send them anywhere. Closing or refreshing the page clears everything you entered.

Sources

  1. FDA, 21 CFR 101.9, nutrition labeling of food. General factors of 4, 4 and 9 calories per gram.
  2. Healthy U.S.-Style Dietary Patterns Can Be Modified to Provide Increased Energy From Protein, Nutrition Journal 2022. Adult carbohydrate and fat AMDRs.
  3. Wolfe RR, Cifelli AM et al., Optimizing Protein Intake in Adults, Adv Nutr 2017. Protein AMDR of 10 to 35%.