Macronutrient Calculator

Reaching a specific physique goal – losing 5 kg of fat, gaining lean muscle, or simply maintaining weight – comes down to eating the right amount of protein, carbohydrates, and fat each day. A macronutrient calculator takes your body stats, activity level, and objective and translates them into precise gram targets you can plan meals around.

Body Stats
Sex
Activity & GoalNegative = deficit for fat loss; positive = surplus for muscle gain
Macro Split (%)

What Are Macronutrients?

Macronutrients are the three nutrient groups the body needs in large quantities to function and produce energy:

MacronutrientCalories per gramPrimary role
Protein4 kcal/gMuscle repair, enzyme production, satiety
Carbohydrates4 kcal/gPrimary fuel for brain and muscles
Fat9 kcal/gHormone synthesis, cell membranes, vitamin absorption

Together, protein, carbohydrates, and fat make up 100% of your caloric intake. Micronutrients (vitamins and minerals) are equally important for health but contain zero calories and are measured in milligrams or micrograms – not grams.

How Does the Macronutrient Calculator Work?

The calculator above determines your daily macro targets through a three-step process:

  1. Estimates your Basal Metabolic Rate (BMR) – the calories your body burns at rest – using the Mifflin-St Jeor equation:
    • Men: BMR = 10 × weight (kg) + 6.25 × height (cm) − 5 × age + 5
    • Women: BMR = 10 × weight (kg) + 6.25 × height (cm) − 5 × age − 161
  2. Multiplies BMR by an activity factor to get your Total Daily Energy Expenditure (TDEE):
    • Sedentary (desk job, little exercise): × 1.2
    • Lightly active (1–3 workouts/week): × 1.375
    • Moderately active (3–5 workouts/week): × 1.55
    • Very active (6–7 workouts/week): × 1.725
    • Extremely active (physical labor + training): × 1.9
  3. Adjusts TDEE for your goal – subtracts calories for fat loss or adds calories for muscle gain – then splits the result into protein, carbohydrate, and fat grams based on the chosen ratio.

All you need to provide is your weight, height, age, sex, activity level, and goal. The calculator returns gram targets for each macro so you can log them in any food-tracking app.

How to Calculate Macros Manually

If you prefer working with pen and paper, the formula is straightforward.

Step 1 – Find your TDEE. Multiply your BMR by the activity factor from the table above.

Step 2 – Set your calorie target.

  • Weight loss: TDEE minus 15–25% (a 500 kcal deficit yields roughly 0.5 kg of fat loss per week)
  • Maintenance: TDEE as-is
  • Muscle gain: TDEE plus 10–20%

Step 3 – Apply a macro split. Multiply your calorie target by each percentage, then divide by the calorie-per-gram value.

Protein (g) = (Calorie target × protein %) ÷ 4
Carbs (g)   = (Calorie target × carbs %) ÷ 4
Fat (g)     = (Calorie target × fat %) ÷ 9

Example: 30-Year-Old Male, 80 kg, 178 cm, Moderately Active, Fat Loss

StepCalculationResult
BMR10 × 80 + 6.25 × 178 − 5 × 30 + 51,768 kcal
TDEE1,768 × 1.552,740 kcal
Calorie target (−20%)2,740 × 0.802,192 kcal
Protein (40%)2,192 × 0.40 ÷ 4219 g
Carbs (30%)2,192 × 0.30 ÷ 4164 g
Fat (30%)2,192 × 0.30 ÷ 973 g

These numbers become the daily targets for meal planning and food logging.

Macro Ratios for Different Goals

There is no single “perfect” ratio – the best split depends on your objective, training style, and food preferences. The table below lists evidence-based starting points used by nutrition coaches and sports dietitians.

GoalProteinCarbsFatNotes
Fat loss35–40%25–35%25–30%Higher protein preserves muscle in a deficit
Maintenance25–30%40–45%25–30%Balanced energy for general health
Muscle gain30–35%40–50%20–25%Extra carbs fuel intense resistance training
Endurance sports20–25%50–60%20–25%High carb availability for long sessions
Ketogenic / low-carb25–30%5–10%60–70%Very low carb forces ketosis as fuel source

This information is for general educational purposes and is not medical advice. Consult a registered dietitian for a personalized nutrition plan.

Protein, Carb, and Fat Sources to Hit Your Macros

Knowing your gram targets is only half the equation. Choosing the right foods makes hitting them easier.

High-protein foods (per 100 g):

  • Chicken breast, cooked – 31 g protein, 3.6 g fat
  • Greek yogurt, non-fat – 10 g protein, 0.7 g fat
  • Egg whites – 11 g protein, 0.2 g fat
  • Tuna, canned in water – 26 g protein, 1 g fat

Quality carbohydrate sources:

  • White rice, cooked – 28 g carbs per 100 g
  • Oats, dry – 66 g carbs per 100 g
  • Sweet potato, cooked – 20 g carbs per 100 g
  • Banana – 23 g carbs per medium fruit

Healthy fat sources:

  • Avocado – 15 g fat per 100 g
  • Almonds – 49 g fat per 100 g
  • Olive oil – 100 g fat per 100 ml
  • Salmon – 13 g fat per 100 g

Combining lean proteins, complex carbohydrates, and unsaturated fats covers micronutrient needs while staying within macro targets.

Tips for Tracking Macros Successfully

  • Weigh food with a kitchen scale. Estimating portions by eye leads to a 20–30% error according to research published in the British Medical Journal.
  • Meal prep in advance. Cooking once or twice a week removes daily decision fatigue and keeps you within targets.
  • Allow a 5–10% buffer. Hitting macros to the exact gram is neither necessary nor realistic. Aim to stay within ±5% of each target.
  • Prioritize protein first. If you only track one macro, make it protein – it has the strongest effect on satiety and muscle retention.
  • Recalculate periodically. As your body weight or activity level changes, so do your calorie and macro needs. Update every 4–6 weeks.

A macronutrient calculator removes the guesswork from nutrition planning. Plug in your numbers, get your daily gram targets, and focus your energy on consistent food choices rather than manual arithmetic.

Frequently Asked Questions

What is the best macronutrient ratio for weight loss?
A common starting point for fat loss is 40% protein, 30% carbohydrates, and 30% fat. Higher protein helps preserve lean muscle while in a caloric deficit. Adjust carbs and fat based on energy needs and personal preference.
How many grams of protein do I need per day?
Most active individuals benefit from 1.6–2.2 g of protein per kilogram of body weight. Sedentary adults need roughly 0.8 g/kg. Athletes and people in a caloric deficit should aim for the higher end of the range.
Should I recalculate my macros as I lose weight?
Yes. Your total daily energy expenditure decreases as body weight drops. Recalculate every 4–6 weeks or after every 2–3 kg of weight change to keep your targets accurate.
Do macros matter more than calories?
Calories determine whether you gain or lose weight, but macronutrient distribution affects body composition, satiety, and performance. For best results, hit both your calorie target and your macro split.
Can a macronutrient calculator work for muscle gain?
Absolutely. Set the goal to muscle gain, which typically adds a 10–20% caloric surplus and emphasizes higher protein intake – around 2.0–2.2 g/kg of body weight.
What is the difference between macros and micronutrients?
Macronutrients (protein, fat, carbohydrates) are needed in large amounts and provide energy. Micronutrients (vitamins and minerals) are required in small amounts and do not supply calories but support essential body functions.
  1. Keto Macro Calculator: Calculate Your Daily Macros for Ketosis
  2. Harris Benedict Equation: Calculate BMR and Daily Calories
  3. Calorie Intake Calculator: Find Your Daily Needs
  4. Free Macro Calculator: Calculate Your Ideal Macronutrient Split
  5. Weight Gain Calculator - Calorie Surplus & Timeline
  6. Kcal Calculator – Free Online Calorie Calculator (2026)