weight loss calculators

Macronutrient Calculator

Calculate your daily protein, carbohydrate, and fat gram targets from your calorie goal and preferred macro ratios. Use it when setting up a diet plan to ensure each macronutrient is precisely accounted for.

About this calculator

Macronutrients provide the body with energy at fixed caloric densities: protein and carbohydrates each yield 4 calories per gram, while fat yields 9 calories per gram. Given a daily calorie target and percentage split between macros, the gram amounts are: protein (g) = dailyCalories × (proteinRatio / 100) / 4; carbs (g) = dailyCalories × (carbRatio / 100) / 4; fat (g) = dailyCalories × ((100 − proteinRatio − carbRatio) / 100) / 9. The remaining percentage after protein and carbs is automatically allocated to fat. These formulas ensure that the three macros always sum exactly to your daily calorie target with no rounding gaps. Choosing the right ratio depends on your goal: higher protein ratios (30–40%) support muscle retention during a deficit, while higher carb ratios fuel endurance performance, and higher fat ratios suit ketogenic approaches.

How to use

Suppose your daily calorie target is 1,800 calories with 30% protein, 40% carbs, and 30% fat (auto-calculated). Step 1: Protein = 1,800 × 0.30 / 4 = 135 g (540 cal). Step 2: Carbs = 1,800 × 0.40 / 4 = 180 g (720 cal). Step 3: Fat percentage = 100 − 30 − 40 = 30%. Fat = 1,800 × 0.30 / 9 = 60 g (540 cal). Step 4: Verify totals: 540 + 720 + 540 = 1,800 calories. ✓ Your daily targets: 135 g protein, 180 g carbs, 60 g fat.

Frequently asked questions

How do I calculate macros for weight loss while preserving muscle mass?

For weight loss with muscle preservation, most research supports a higher protein intake of 0.7–1.0 g per pound of body weight, which typically translates to 30–40% of calories from protein. Carbohydrates should be kept sufficient to fuel your workouts (usually 30–40% of calories), and fat fills the remaining 20–30%. Resistance training combined with adequate protein is the most effective combination for maintaining lean mass in a caloric deficit. This calculator lets you test different percentage splits to find what fits your food preferences and activity level.

What is the difference between macro ratios for fat loss versus muscle building?

For fat loss, a common starting point is 35% protein / 35% carbs / 30% fat, emphasizing protein to preserve muscle while in a deficit. For muscle building (bulk), ratios shift toward more carbohydrates — often 25% protein / 50% carbs / 25% fat — since carbs fuel intense training and support anabolic hormones. The absolute gram amounts matter as much as percentages: a 200 lb athlete at 2,800 calories will consume very different gram totals than a 130 lb person at 1,600 calories even at the same percentage split. Always check the gram output, not just the percentages.

Why do protein and carbs have 4 calories per gram but fat has 9 calories per gram?

The caloric density of each macronutrient reflects its chemical structure and the energy released during oxidation. Carbohydrates and proteins contain more oxygen in their molecular structures, making them less energy-dense per gram. Fats (triglycerides) are predominantly carbon and hydrogen chains with very little oxygen, meaning more energy is released when they are fully oxidized. This is why high-fat foods are so calorie-dense and why reducing dietary fat is an efficient way to cut calories — each gram removed saves more than twice the calories compared to removing a gram of protein or carbohydrate.