Macronutrient Calculator
Calculate your ideal daily macronutrient breakdown for protein, carbs, and fat based on your calorie target and fitness goals.
How to Use This Macro Calculator
Follow these steps to calculate your ideal macronutrient breakdown:
- Enter your daily calorie target. If you do not know your calorie target, use a TDEE calculator or calorie calculator first. Your calorie target is the foundation for determining how many grams of each macro you need. For weight loss, this should be below your TDEE; for muscle gain, above it; for maintenance, at your TDEE.
- Select your primary goal. Choose from maintenance, weight loss, muscle gain, or keto. Each goal applies a different percentage split to your total calories. Weight loss increases the protein ratio to help preserve muscle during a deficit. Muscle gain increases carbs to fuel workouts. Keto drastically reduces carbs and increases fat.
- Choose your protein preference. Select moderate (0.8g per pound of body weight), high (1.0g per pound), or very high (1.2g per pound). Higher protein intakes are supported by research for those who are resistance training, dieting aggressively, or trying to maximize muscle protein synthesis. If you are relatively sedentary, moderate protein is typically sufficient.
- Enter your current body weight in pounds. Your weight is used alongside your protein preference to calculate a baseline protein target in grams.
The calculator displays your daily targets for protein, carbs, and fat in grams, the calorie contribution of each macronutrient, and the percentage breakdown. To apply these results, use a food tracking app to log your meals and aim to hit each macro target within 5 to 10 grams. Prioritize hitting your protein target first, as it has the greatest impact on body composition. Allow carbs and fat to flex slightly day to day as long as your total calories remain consistent.
What Is Macro?
Macronutrients, commonly called "macros," are the three primary nutrients your body requires in large quantities to function: protein, carbohydrates, and fat. Each macronutrient provides a specific number of calories per gram. Protein and carbohydrates each supply 4 calories per gram, while fat is the most energy-dense at 9 calories per gram. Together, these three nutrients account for virtually all of the calories in your diet, and the ratio in which you consume them has a profound impact on your body composition, energy levels, athletic performance, and overall health.
A macronutrient calculator helps you determine the ideal daily breakdown of protein, carbs, and fat based on your total calorie target and specific fitness goals. Rather than simply counting calories, tracking macros ensures that you are fueling your body with the right balance of nutrients to support your objectives. Protein is essential for building and repairing muscle tissue, supporting immune function, and maintaining satiety during a diet. Carbohydrates are your body's preferred energy source, fueling both high-intensity exercise and cognitive function. Fat is critical for hormone production (including testosterone and estrogen), absorption of fat-soluble vitamins (A, D, E, and K), and long-term sustained energy.
Different goals call for different macro ratios, and several popular approaches exist. A balanced maintenance split of 30% protein, 40% carbs, and 30% fat works well for general health. A weight loss split of 40% protein, 40% carbs, and 20% fat prioritizes protein to preserve lean muscle during a calorie deficit. A muscle gain split of 35% protein, 45% carbs, and 20% fat emphasizes carbohydrates to fuel intense training and recovery. The ketogenic (keto) diet uses an extreme ratio of roughly 25% protein, 5% carbs, and 70% fat to shift the body into ketosis, where it burns fat as its primary fuel source. The IIFYM (If It Fits Your Macros) approach takes a flexible dieting perspective, allowing you to eat any foods you want as long as you hit your daily macro targets. This method emphasizes that total macronutrient intake matters more than specific food choices for body composition, though whole nutrient-dense foods are still recommended for health.
Formula & Methodology
Each macronutrient provides a fixed number of calories per gram, which forms the basis of all macro calculations:
| Macronutrient | Calories per Gram |
|---|---|
| Protein | 4 cal/g |
| Carbohydrates | 4 cal/g |
| Fat | 9 cal/g |
The calculator determines your protein target using the higher of two methods:
- Goal-based percentage: Protein Grams = (Total Calories × Protein %) ÷ 4
- Body weight method: Protein Grams = Body Weight (lbs) × Protein Multiplier (0.8, 1.0, or 1.2)
Whichever method yields more protein is used to ensure adequate intake. The remaining calories after protein are distributed between carbohydrates and fat according to your goal's carb-to-fat ratio:
- Remaining Calories = Total Calories − (Protein Grams × 4)
- Carb Calories = Remaining Calories × (Carb % ÷ (Carb % + Fat %))
- Fat Calories = Remaining Calories − Carb Calories
- Carb Grams = Carb Calories ÷ 4
- Fat Grams = Fat Calories ÷ 9
Goal-based macro percentage splits:
| Goal | Protein % | Carbs % | Fat % |
|---|---|---|---|
| Maintenance | 30% | 40% | 30% |
| Weight Loss | 40% | 40% | 20% |
| Muscle Gain | 35% | 45% | 20% |
| Keto | 25% | 5% | 70% |
Practical Examples
Example 1 — Fat Loss: A 170 lb individual with a daily calorie target of 1,800 calories, weight loss goal, and high protein preference (1.0g/lb). Protein from body weight = 170 × 1.0 = 170g (680 cal). Protein from goal percentage = (1,800 × 0.40) ÷ 4 = 180g. The calculator uses the higher value: 180g protein (720 cal). Remaining calories = 1,800 − 720 = 1,080. Carb-to-fat ratio for weight loss = 40:20 = 2:1, so carbs get two-thirds of remaining calories. Carb calories = 1,080 × 0.667 = 720 cal = 180g carbs. Fat calories = 1,080 − 720 = 360 cal = 40g fat. Final macros: 180g protein, 180g carbs, 40g fat. This high-protein approach maximizes muscle retention during the calorie deficit.
Example 2 — Muscle Building: A 155 lb individual with a daily calorie target of 2,800 calories, muscle gain goal, and very high protein preference (1.2g/lb). Protein from body weight = 155 × 1.2 = 186g (744 cal). Protein from goal percentage = (2,800 × 0.35) ÷ 4 = 245g. The calculator uses 245g protein (980 cal). Remaining calories = 2,800 − 980 = 1,820. Carb-to-fat ratio for muscle gain = 45:20 = 2.25:1. Carb calories = 1,820 × 0.692 = 1,260 cal = 315g carbs. Fat calories = 1,820 − 1,260 = 560 cal = 62g fat. Final macros: 245g protein, 315g carbs, 62g fat. The elevated carbohydrate intake fuels intense training sessions and supports recovery.
Example 3 — Maintenance: A 140 lb individual with a daily calorie target of 2,000 calories, maintenance goal, and moderate protein preference (0.8g/lb). Protein from body weight = 140 × 0.8 = 112g (448 cal). Protein from goal percentage = (2,000 × 0.30) ÷ 4 = 150g (600 cal). The calculator uses 150g protein (600 cal). Remaining calories = 2,000 − 600 = 1,400. Carb-to-fat ratio for maintenance = 40:30 = 1.33:1. Carb calories = 1,400 × 0.571 = 800 cal = 200g carbs. Fat calories = 1,400 − 800 = 600 cal = 67g fat. Final macros: 150g protein, 200g carbs, 67g fat. This balanced split supports everyday energy needs, workout performance, and overall health without creating a surplus or deficit.
Frequently Asked Questions
Health Disclaimer
These calculators provide estimates based on established formulas and population-level data. Results are intended for educational purposes only and are not a substitute for professional medical advice, diagnosis, or treatment. Individual results may vary based on factors not captured by these tools. Always consult your healthcare provider before making changes to your diet, exercise routine, or health plan.
Related Calculators
Daily Calorie Needs Calculator
Estimate your daily calorie needs using the Mifflin-St Jeor equation. Find your BMR, maintenance calories, and targets for weight loss or gain.
Total Daily Energy Expenditure (TDEE) Calculator
Calculate your Total Daily Energy Expenditure (TDEE) and Basal Metabolic Rate (BMR) using the Mifflin-St Jeor equation. Find out how many calories you burn per day.
Body Mass Index (BMI) Calculator
Calculate your Body Mass Index (BMI) to assess whether your weight falls within a healthy range based on your height and weight.
Body Fat Percentage Calculator (Navy Method)
Calculate your body fat percentage using the U.S. Navy method. Enter your measurements to estimate body fat, lean mass, fat mass, and body fat category.
Ideal Body Weight Calculator
Calculate your ideal body weight using four evidence-based formulas: Devine, Robinson, Miller, and Hamwi. Includes healthy BMI weight range.
People Also Calculate
Pregnancy Due Date Calculator
Calculate your estimated due date based on your last menstrual period using Naegele's rule. See how many weeks pregnant you are, your current trimester, and days remaining until delivery.
Calorie Deficit Calculator
Calculate your calorie deficit for weight loss using the Mifflin-St Jeor equation. Find your daily calorie target and estimated time to reach your goal weight.
Daily Water Intake Calculator
Calculate how much water you should drink per day based on your body weight, activity level, climate, and exercise habits.
Learn More
TDEE Calculator Guide: How to Calculate Your Total Daily Energy Expenditure
Understand how TDEE works, how it differs from BMR, and how to use your Total Daily Energy Expenditure to reach your weight loss or muscle-building goals.
12 min readBlog ArticleComplete Guide to Protein Calculators: How Much Protein Do You Really Need?
Master your protein intake with our complete guide. Discover your daily protein needs based on goals, learn the science, and optimize your nutrition with our protein calculator.
12 min readBlog ArticleComplete Guide to Calorie Calculators: From BMR to TDEE
Learn how calorie calculators work, understand BMR and TDEE, and discover how to calculate your daily calorie needs for weight loss, gain, or maintenance.
10 min read