Macronutrient Ratio Calculator

A macronutrient ratio calculator converts your daily calorie goal into gram targets for protein, carbohydrates, and fat based on whatever percentage split you choose. Each macronutrient has a fixed caloric density: protein and carbohydrates each provide 4 kcal per gram, while fat provides 9 kcal per gram (Atwater factors used on FDA nutrition labels). The USDA 2020-2025 Dietary Guidelines for Americans set Acceptable Macronutrient Distribution Ranges (AMDRs) of 10-35% for protein, 45-65% for carbohydrates, and 20-35% for fat. You can match those ranges or enter a custom split for goals such as muscle building, weight loss, or a ketogenic diet. The three percentages must sum to 100%.

0.00
0.00
0.00
0.00

Macronutrient formula

Protein (g) = Calories * (Protein% / 100) / 4
Carbs (g) = Calories * (Carb% / 100) / 4
Fat (g) = Calories * (Fat% / 100) / 9

Each formula converts the calorie share assigned to a macronutrient into grams using the Atwater caloric density factors: 4 kcal/g for protein and carbohydrates, 9 kcal/g for fat.

Understanding macronutrient ratios

  • The three percentages must always sum to exactly 100. If they do not, the result will not reflect a complete diet.
  • USDA AMDRs for adults: protein 10-35%, carbohydrates 45-65%, fat 20-35%.
  • A common muscle-building split is 30% protein, 40% carbs, 30% fat. A ketogenic split typically uses 5-10% carbs, 20-25% protein, and 65-75% fat.
  • Fiber is a carbohydrate; its grams count toward your total carbohydrate target.
  • Tracking grams rather than percentages makes it easier to compare your actual intake with your target across meals.

Macronutrient ratio calculator: frequently asked questions

What is a macronutrient ratio?

A macronutrient ratio is the percentage of total daily calories supplied by protein, carbohydrates, and fat. The three percentages must add up to 100. For example, a 30/40/30 ratio means 30% protein, 40% carbs, and 30% fat.

How many calories are in each macronutrient per gram?

Protein provides 4 kcal per gram, carbohydrates provide 4 kcal per gram, and fat provides 9 kcal per gram. These are the Atwater general factors used by the FDA on nutrition labels.

What macronutrient ratio does USDA recommend?

The 2020-2025 Dietary Guidelines for Americans recommend 10-35% of calories from protein, 45-65% from carbohydrates, and 20-35% from fat. These are the Acceptable Macronutrient Distribution Ranges (AMDRs) for adults.

Can I change the ratio for weight loss or muscle gain?

Yes. Higher protein ratios (25-35%) are commonly used to support muscle protein synthesis and satiety during weight loss. Lower carbohydrate ratios are used for ketogenic diets. Adjust the percentages to match your dietary strategy.

Why do my gram targets change when I change calories but keep the same ratio?

Because grams are derived from calories: grams = (calories * percentage / 100) / kcal-per-gram. If you increase total calories while keeping the ratio fixed, each macronutrient receives more calories and therefore more grams.

Official sources

Reviewed by the CalculatorHub team, edited by James Graham, 15 June 2026. See our methodology.