Free Macro Calculator — Daily Protein, Carbs & Fat Targets

Calculate your daily protein, carbs, and fat targets based on calories and goals

Calculate Your Macros

Macro Calculator is a free tool that calculates your daily macronutrient targets — protein, carbohydrates, and fat — based on your calorie goal and fitness objective. Enter your daily calories, choose a goal, and see how many grams of each macro to eat per day.

It is useful when planning meals for weight loss, muscle gain, or maintenance. It does not account for individual health conditions, food preferences, or micronutrient needs.

Use a calorie calculator if you don't know this.

How Macros Are Calculated

Macronutrients (macros) are the three nutrients that provide energy: protein, carbohydrates, and fat. Every calorie you eat comes from one of these three sources.

Calorie Values per Gram

  • Protein: 4 calories per gram
  • Carbohydrates: 4 calories per gram
  • Fat: 9 calories per gram

Alcohol provides 7 calories per gram but is not considered a macronutrient.

The Calculation

To calculate macro targets from a calorie goal:

  1. Multiply total calories by each macro's percentage to get calories from that macro.
  2. Divide protein and carb calories by 4 to get grams.
  3. Divide fat calories by 9 to get grams.

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

Worked Examples

Fat Loss — 1,800 cal (40/30/30)

Protein: 1,800 × 0.40 ÷ 4 = 180g

Carbs: 1,800 × 0.30 ÷ 4 = 135g

Fat: 1,800 × 0.30 ÷ 9 = 60g

Maintenance — 2,200 cal (30/40/30)

Protein: 2,200 × 0.30 ÷ 4 = 165g

Carbs: 2,200 × 0.40 ÷ 4 = 220g

Fat: 2,200 × 0.30 ÷ 9 = 73g

Muscle Gain — 2,800 cal (35/45/20)

Protein: 2,800 × 0.35 ÷ 4 = 245g

Carbs: 2,800 × 0.45 ÷ 4 = 315g

Fat: 2,800 × 0.20 ÷ 9 = 62g

Common Macro Splits by Goal

These are starting points. Individual needs vary based on activity level, body composition, and preference.

Goal Protein Carbs Fat Notes
Fat Loss 40% 30% 30% Higher protein preserves muscle in a deficit
Maintenance 30% 40% 30% Balanced split for steady body composition
Muscle Gain 35% 45% 20% More carbs support training and recovery
Low Carb 35% 20% 45% For those who prefer higher-fat diets
Ketogenic 20% 5% 75% Very low carb; typically under 50g carbs/day
Endurance Athlete 20% 55% 25% High carbs fuel prolonged cardio performance

What Each Macronutrient Does

Protein

Protein is essential for building and repairing muscle tissue, producing enzymes and hormones, and supporting immune function. It is the most satiating macronutrient — meaning it keeps you feeling full longer — which makes higher protein diets effective for fat loss.

Research-backed guidelines for daily protein intake:

  • Sedentary adults: 0.8g per kg of body weight (the RDA minimum)
  • Active individuals: 1.2–1.6g per kg
  • Muscle building: 1.6–2.2g per kg
  • Fat loss (while preserving muscle): 1.8–2.7g per kg

Carbohydrates

Carbohydrates are the body's preferred energy source, especially during moderate-to-high intensity exercise. They are stored as glycogen in muscles and liver, providing readily available fuel. Carbs also support brain function — the brain uses roughly 120g of glucose per day.

Carbs are not inherently "fattening." Weight gain comes from a calorie surplus, not from carbohydrates specifically.

Fat

Dietary fat is essential for hormone production (including testosterone and estrogen), vitamin absorption (vitamins A, D, E, K are fat-soluble), cell membrane integrity, and brain health. A minimum of roughly 20% of total calories from fat is generally recommended to support these functions.

Fat is calorie-dense at 9 calories per gram — more than double protein or carbs — so portions are smaller by weight.

How to Hit Your Macros

Practical strategies for meeting your daily targets:

  • Prioritize protein. Plan each meal around a protein source first (chicken, fish, eggs, tofu, legumes, dairy). It is the hardest macro to hit and the most important for body composition.
  • Use a food tracking app. Apps like MyFitnessPal, Cronometer, or MacroFactor let you log meals and see your macro totals in real time.
  • Prep in bulk. Batch-cook protein sources (grilled chicken, boiled eggs, cooked lentils) so hitting your target doesn't require daily effort.
  • Fill carbs with whole foods. Rice, oats, potatoes, fruits, and vegetables provide carbs along with fiber and micronutrients.
  • Don't fear fat. Nuts, avocado, olive oil, and fatty fish provide healthy fats. A tablespoon of olive oil alone is 14g of fat (120 calories).
  • Accept ±5-10g variance. You don't need to hit every gram exactly. Consistency over weeks matters far more than daily precision.

Common Mistakes

  • Not counting cooking oil and sauces. A tablespoon of oil adds ~14g fat (120 cal). Two tablespoons of salad dressing can add 15-20g of fat. These add up quickly and are often missed.
  • Confusing macro percentages with grams. 30% protein does not mean 30g of protein. It means 30% of your total calories come from protein. At 2,000 calories, that's 150g of protein.
  • Ignoring protein quality. 30g of protein from chicken is different from 30g listed on a "protein bar" that may include incomplete protein and added sugars. Whole food protein sources are generally more effective for muscle building.
  • Setting fat too low. Going below 15-20% of calories from fat can impair hormone function and vitamin absorption. Fat is essential, not optional.
  • Obsessing over daily precision. Missing your carb target by 20g on Tuesday doesn't matter if your weekly average is on track. Focus on consistency, not perfection.
  • Copying someone else's macros. Macro targets depend on your body weight, activity level, and goals. A 90kg athlete and a 60kg office worker should not eat the same macros.

Frequently Asked Questions

What are macros?

Macros (macronutrients) are the three nutrients that provide energy: protein, carbohydrates, and fat. Protein and carbs each provide 4 calories per gram. Fat provides 9 calories per gram. Tracking macros means managing how your total daily calories are distributed among these three nutrients.

How do I calculate my macros?

First, determine your total daily calorie target using a calorie or TDEE calculator. Then choose a macro split — for example, 30% protein, 40% carbs, 30% fat. Multiply your calories by each percentage to get calories from that macro, then divide by the calories per gram (4 for protein and carbs, 9 for fat). For 2,000 calories at 30/40/30: protein = 150g, carbs = 200g, fat = 67g.

What is the best macro ratio for weight loss?

A common starting point is 40% protein, 30% carbs, 30% fat. Higher protein helps preserve muscle mass during a calorie deficit and increases satiety. However, the calorie deficit itself — eating fewer calories than you burn — matters more than the exact macro split. Individual factors like activity level, food preferences, and metabolic response also play a role.

What is the best macro ratio for muscle gain?

A typical split for muscle gain is 30–35% protein, 40–50% carbs, 20–25% fat. Higher carbohydrate intake supports training performance and recovery, while adequate protein (1.6–2.2g per kg of body weight) provides the building blocks for muscle growth. This should be paired with a slight calorie surplus of 250–500 calories above maintenance.

How much protein do I need per day?

General guidelines suggest 0.8g per kg for sedentary adults. For active individuals building muscle, research supports 1.6–2.2g per kg. For fat loss while preserving lean mass, up to 2.2–2.7g per kg is supported. For a 70kg person aiming to build muscle, that's roughly 112–154g of protein per day.

What is IIFYM (If It Fits Your Macros)?

IIFYM is a flexible dieting approach where you can eat any food as long as it fits within your daily macronutrient targets. Instead of labeling foods as "good" or "bad," IIFYM focuses on hitting your protein, carb, and fat numbers. While it offers flexibility, food quality still matters for overall health, micronutrients, and satiety.

Do I need to hit my macros exactly every day?

No. Being within 5–10g of each target is close enough. Consistency over weeks matters more than daily precision. If you're slightly over on protein but under on carbs one day, it averages out. Focus on hitting your calorie target and protein goal first — those have the biggest impact on body composition.

How many calories does each macronutrient have?

Protein: 4 calories per gram. Carbohydrates: 4 calories per gram. Fat: 9 calories per gram. Alcohol (not a macronutrient): 7 calories per gram. These conversion factors are used to translate between grams and calories when calculating macro targets.

Should I track macros or just calories?

Tracking just calories works for basic weight management. Adding macro tracking — especially protein — gives more control over body composition. If your goal is simply to lose weight, tracking calories and protein is often enough. If you're optimizing athletic performance, muscle gain, or fine-tuning body composition, tracking all three macros helps.

What happens if I eat too much protein?

For healthy individuals, high protein intake (up to 2.2–3g per kg) is generally safe. Excess protein is either used for energy or excreted. The claim that high protein damages kidneys in healthy people is not supported by current research. However, very high protein intake displaces other nutrients and can be expensive. People with existing kidney disease should consult a healthcare provider.

Does this tool store my data?

No. All calculations run entirely in your browser using JavaScript. No data is sent to any server, stored, or tracked.

Related Tools

Privacy & Limitations

  • Client-side only. No data is sent to any server. No cookies, no tracking of values entered.
  • Estimates, not prescriptions. Macro targets are general guidelines based on common fitness recommendations. Individual needs vary significantly based on body composition, activity level, metabolic rate, and health conditions.
  • Does not account for micronutrients. Meeting your macro targets does not guarantee adequate vitamins, minerals, or fiber intake. Whole food sources are recommended.
  • Not medical or dietary advice. This tool is educational. Consult a registered dietitian or healthcare provider for personalized nutrition guidance, especially if you have a medical condition or eating disorder.

Related Tools

View all tools

Macro Calculator FAQ

What are macros?

Macros (macronutrients) are the three main nutrients that provide energy: protein, carbohydrates, and fat. Protein and carbs each provide 4 calories per gram, while fat provides 9 calories per gram. Tracking macros means managing how your total daily calories are distributed among these three nutrients.

How do I calculate my macros?

First, determine your total daily calorie target (using a TDEE or calorie calculator). Then choose a macro split — for example, 30% protein, 40% carbs, 30% fat. Multiply your calories by each percentage, then divide protein and carb calories by 4, and fat calories by 9, to get grams. For a 2,000-calorie diet at 30/40/30: protein = 150g, carbs = 200g, fat = 67g.

What is the best macro ratio for weight loss?

A common starting point for weight loss is 40% protein, 30% carbs, 30% fat. Higher protein helps preserve muscle mass during a calorie deficit and increases satiety. However, the best ratio depends on individual factors like activity level, preferences, and metabolic response. The calorie deficit itself matters more than the exact macro split.

What is the best macro ratio for muscle gain?

A typical macro split for muscle gain is 30-35% protein, 40-50% carbs, 20-25% fat. Higher carbohydrate intake supports training performance and recovery, while adequate protein (1.6-2.2g per kg of body weight) provides the building blocks for muscle growth. This should be paired with a slight calorie surplus.

How much protein do I need per day?

General guidelines suggest 0.8g of protein per kg of body weight for sedentary adults. For active individuals and those building muscle, research supports 1.6-2.2g per kg. For weight loss, higher protein intake (up to 2.2-2.6g per kg) helps preserve lean mass. For a 70kg person aiming to build muscle, that's roughly 112-154g of protein per day.

What is IIFYM (If It Fits Your Macros)?

IIFYM (If It Fits Your Macros) is a flexible dieting approach where you can eat any food as long as it fits within your daily macronutrient targets. Instead of labeling foods as 'good' or 'bad', IIFYM focuses on hitting your protein, carb, and fat numbers. While it offers flexibility, food quality still matters for overall health, micronutrient intake, and satiety.

Do I need to hit my macros exactly every day?

No. Being within 5-10g of each target is close enough. Consistency over weeks matters more than daily precision. If you're over on protein but under on carbs one day, it averages out. Focus on hitting your calorie target and protein goal first — those have the biggest impact on body composition.

How many calories does each macronutrient have?

Protein provides 4 calories per gram. Carbohydrates provide 4 calories per gram. Fat provides 9 calories per gram. Alcohol, while not a macronutrient, provides 7 calories per gram. These values are used to convert between grams and calories when calculating macro targets.

Should I track macros or just calories?

Tracking just calories works for basic weight management. Tracking macros adds precision — especially protein, which affects muscle retention, satiety, and body composition. If your goal is simply weight loss, tracking calories and protein is often sufficient. If you're optimizing athletic performance or body composition, tracking all three macros gives more control.

What happens if I eat too much protein?

For healthy individuals, high protein intake (up to 2.2-3g per kg) is generally safe. Excess protein is either used for energy or excreted. The idea that high protein damages kidneys in healthy people is not supported by current research. However, very high protein intake displaces other nutrients and can be expensive. People with existing kidney disease should consult a healthcare provider.

Does this calculator store my data?

No. All calculations run entirely in your browser using JavaScript. No data is sent to any server, stored, or tracked.

Request a New Tool
Improve This Tool