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.
What Are Macronutrients?
Macronutrients are the three nutrient groups the body needs in large quantities to function and produce energy:
| Macronutrient | Calories per gram | Primary role |
|---|---|---|
| Protein | 4 kcal/g | Muscle repair, enzyme production, satiety |
| Carbohydrates | 4 kcal/g | Primary fuel for brain and muscles |
| Fat | 9 kcal/g | Hormone 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:
- 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
- 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
- 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
| Step | Calculation | Result |
|---|---|---|
| BMR | 10 × 80 + 6.25 × 178 − 5 × 30 + 5 | 1,768 kcal |
| TDEE | 1,768 × 1.55 | 2,740 kcal |
| Calorie target (−20%) | 2,740 × 0.80 | 2,192 kcal |
| Protein (40%) | 2,192 × 0.40 ÷ 4 | 219 g |
| Carbs (30%) | 2,192 × 0.30 ÷ 4 | 164 g |
| Fat (30%) | 2,192 × 0.30 ÷ 9 | 73 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.
| Goal | Protein | Carbs | Fat | Notes |
|---|---|---|---|---|
| Fat loss | 35–40% | 25–35% | 25–30% | Higher protein preserves muscle in a deficit |
| Maintenance | 25–30% | 40–45% | 25–30% | Balanced energy for general health |
| Muscle gain | 30–35% | 40–50% | 20–25% | Extra carbs fuel intense resistance training |
| Endurance sports | 20–25% | 50–60% | 20–25% | High carb availability for long sessions |
| Ketogenic / low-carb | 25–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?
How many grams of protein do I need per day?
Should I recalculate my macros as I lose weight?
Do macros matter more than calories?
Can a macronutrient calculator work for muscle gain?
What is the difference between macros and micronutrients?
See also
- Keto Macro Calculator: Calculate Your Daily Macros for Ketosis
- Harris Benedict Equation: Calculate BMR and Daily Calories
- Calorie Intake Calculator: Find Your Daily Needs
- Free Macro Calculator: Calculate Your Ideal Macronutrient Split
- Weight Gain Calculator - Calorie Surplus & Timeline
- Kcal Calculator – Free Online Calorie Calculator (2026)