Macro Calculator

Calculate your optimal macronutrient split (Protein, Carbs, Fats) for weight loss, maintenance, or muscle gain.

Calculate daily protein, carbs, and fats.

About This Calculator

The Macro Calculator is your essential tool for understanding and optimizing your nutrition. Macronutrients—protein, carbohydrates, and fats—are the three main nutrients your body needs in large quantities to function properly. While total calories determine whether you gain or lose weight, your macro distribution affects body composition, energy levels, athletic performance, and overall health.

Whether you're following IIFYM (If It Fits Your Macros), flexible dieting, a ketogenic approach, or simply want to eat more mindfully, understanding your macro targets is fundamental to achieving your nutrition goals. This calculator converts your calorie target into specific gram amounts for each macronutrient based on proven ratio recommendations.

How to Calculate Macros from Calories

Protein (g) = (Total Calories × Protein %) ÷ 4
Carbs (g) = (Total Calories × Carb %) ÷ 4
Fat (g) = (Total Calories × Fat %) ÷ 9

Protein: 4 calories per gram — builds and repairs muscle tissue

Carbohydrates: 4 calories per gram — primary energy source for brain and muscles

Fat: 9 calories per gram — supports hormones, vitamin absorption, cell health

Example: On a 2,000 calorie diet with 30/40/30 split → Protein: (2000 × 0.30) ÷ 4 = 150g, Carbs: (2000 × 0.40) ÷ 4 = 200g, Fat: (2000 × 0.30) ÷ 9 = 67g

Recommended Macro Ratios by Goal

Different fitness goals require different macro distributions. Here are evidence-based recommendations:

GoalProteinCarbsFatBest For
Weight Loss40%35%25%Fat loss while preserving muscle
Maintenance30%40%30%Balanced nutrition, weight stability
Muscle Building35%45%20%Hypertrophy, strength gains
Low Carb40%20%40%Blood sugar management, appetite control
Ketogenic25%5%70%Ketosis, epilepsy management
Endurance Athlete20%55%25%Marathon, cycling, long-duration sports

Understanding Macronutrient Functions

Protein — The Building Block

Essential for muscle growth, repair, immune function, and enzyme production. Protein has the highest thermic effect (20-30% of calories burned during digestion), making it valuable for weight management. Aim for 0.8-1g per pound of body weight for active individuals. Complete proteins from animal sources contain all essential amino acids; plant-based eaters should combine sources (rice + beans, etc.).

Carbohydrates — The Energy Source

Your body's preferred fuel for high-intensity exercise and brain function. Carbs are stored as glycogen in muscles and liver. Complex carbs (whole grains, vegetables, legumes) provide sustained energy and fiber, while simple carbs (fruit, sugar) offer quick energy. Fiber, a type of carbohydrate, supports digestive health—aim for 25-38g daily.

Fats — The Essential Nutrient

Critical for hormone production (including testosterone and estrogen), vitamin absorption (A, D, E, K), brain health, and cell membrane integrity. Never go below 20% of calories from fat. Prioritize unsaturated fats (olive oil, avocado, nuts) while limiting saturated and trans fats. Omega-3 fatty acids from fish, flaxseed, and walnuts have anti-inflammatory benefits.

How to Use This Macro Calculator

  1. Determine your daily calorie target: Use our Calorie Calculator to find your TDEE (Total Daily Energy Expenditure), then adjust based on your goal (deficit for fat loss, surplus for muscle gain).
  2. Enter your calorie target: Input the total daily calories you plan to consume. This is the foundation for calculating your macro grams.
  3. Select your diet plan: Choose from Balanced, Low Carb, High Protein, or Keto based on your goals and preferences. Each preset uses research-backed ratios.
  4. Review your macro targets: The calculator displays your daily protein, carb, and fat targets in grams. These are your daily nutrition goals.
  5. Track and adjust: Use a food tracking app to monitor intake. Adjust ratios after 2-4 weeks based on energy levels, hunger, and progress toward your goals.

Common Macro Tracking Mistakes to Avoid

❌ Ignoring fiber intake: Fiber is a carbohydrate that doesn't spike blood sugar and supports gut health. Aim for 25-38g daily from vegetables, whole grains, and legumes. Many low-carb dieters miss this crucial nutrient.

❌ Not tracking accurately: Eyeballing portions leads to 20-50% underestimation of calories. Use a food scale for the first few weeks to calibrate your perception. Measure oils, nut butters, and other calorie-dense foods carefully.

❌ Obsessing over daily perfection: Focus on weekly averages, not daily precision. If you're over on carbs one day, balance it the next. Consistency over weeks matters more than daily perfection.

❌ Neglecting protein quality: Not all proteins are equal. Complete proteins (meat, eggs, dairy, soy) contain all essential amino acids. Plant-based eaters should combine sources to get all amino acids throughout the day.

❌ Cutting fats too low: Fats below 15-20% of calories can disrupt hormone production, menstrual cycles, and vitamin absorption. Don't fear healthy fats—they're essential for health.

❌ Not adjusting over time: As you lose weight or build muscle, recalculate your macros every 10-15 pounds or every 8-12 weeks. Your needs change as your body composition changes.

Best Food Sources by Macronutrient

Hit your macro targets with nutrient-dense whole foods:

MacronutrientTop Food SourcesPer Serving
High ProteinChicken breast, Greek yogurt, eggs, salmon, lean beef, tofu, lentils, cottage cheese25-35g per serving
Complex CarbsOats, brown rice, quinoa, sweet potatoes, whole wheat bread, beans, fruits, vegetables30-45g per serving
Healthy FatsAvocado, olive oil, almonds, walnuts, salmon, chia seeds, eggs, dark chocolate10-20g per serving
High FiberRaspberries, lentils, black beans, broccoli, artichokes, chia seeds, oats, almonds5-10g per serving

Related Nutrition & Fitness Calculators

  • Calorie Calculator (TDEE) — Calculate your total daily energy expenditure to determine your calorie target before splitting into macros
  • BMR Calculator — Find your basal metabolic rate to understand your resting calorie burn and metabolism baseline
  • Body Fat Calculator — Track your body composition changes as you adjust macros and monitor fat loss vs. muscle gain
  • Ideal Weight Calculator — Determine a healthy goal weight based on your height, frame size, and body type

Sources & Methodology: Macro calculations based on established nutritional science—protein and carbohydrates provide 4 calories per gram, fat provides 9 calories per gram. Protein recommendations aligned with the International Society of Sports Nutrition position stand (2017) recommending 1.4-2.0 g/kg for active individuals. Dietary Guidelines for Americans 2020-2025 recommend 10-35% protein, 45-65% carbohydrates, and 20-35% fat for general health. USDA Food Composition Databases used for food source information. Always consult with a registered dietitian or healthcare provider for personalized nutrition advice. Calculator updated January 2026.

Frequently Asked Questions

What are macros and how do I calculate them?

Macros (macronutrients) are the three main nutrients your body needs in large amounts: protein, carbohydrates, and fats. To calculate macros from your total daily calories: Protein (g) = (Total Calories × Protein %) ÷ 4, Carbs (g) = (Total Calories × Carb %) ÷ 4, Fat (g) = (Total Calories × Fat %) ÷ 9. Protein and carbs provide 4 calories per gram, while fat provides 9 calories per gram. For example, on a 2,000 calorie diet with a 30/40/30 split: you'd eat 150g protein, 200g carbs, and 67g fat daily.

What is the best macro ratio for weight loss?

For weight loss, research supports a higher protein ratio of 30-40% of total calories, moderate carbs at 30-40%, and fats at 20-30%. A common effective split is 40% protein / 35% carbs / 25% fat. Higher protein intake (1.6-2.2g per kg body weight) helps preserve lean muscle mass during a caloric deficit, increases satiety to reduce hunger, and has a higher thermic effect meaning you burn more calories digesting it. The Dietary Guidelines for Americans recommends getting 10-35% of calories from protein, 45-65% from carbs, and 20-35% from fats for general health.

How many grams of protein do I need daily?

Daily protein needs vary by activity level and goals. The RDA minimum is 0.36g per pound (0.8g/kg) of body weight, but research shows higher intakes are beneficial. For weight loss or muscle maintenance: aim for 0.8-1g per pound of body weight (1.6-2.2g/kg). For muscle building: target 1-1.2g per pound (2.2-2.6g/kg). For a 160lb person, this means 128-192g of protein daily. Spread protein intake across 4-6 meals (25-40g per meal) for optimal muscle protein synthesis. Good sources include chicken breast (31g/100g), Greek yogurt (10g/100g), eggs (6g each), and legumes.