Macro Calculator
Calculate your daily macronutrient targets — protein, carbs, and fat in grams — from your body metrics, activity level, and goal. Choose a proven preset or fine-tune a custom ratio, and get a per-meal breakdown.
Enter Your Details
Macro Calculation Formulas
The Mifflin-St Jeor equation estimates BMR, which is scaled by an activity factor (TDEE) and a goal adjustment, then split into macro grams.
Alternative Form
Variables
| Symbol | Name | Unit | Description |
|---|---|---|---|
| BMR | Basal Metabolic Rate | kcal/day | Calories burned at complete rest (Mifflin-St Jeor equation) |
| TDEE | Total Daily Energy Expenditure | kcal/day | BMR multiplied by an activity factor |
| C | Calorie Target | kcal/day | TDEE plus or minus a goal adjustment (deficit or surplus) |
| P%, C%, F% | Macro Split | % of calories | Percentages of total calories from protein, carbs, and fat |
| g | Grams per day | g | Macro calories divided by energy density (4/4/9 kcal per gram) |
Explanation
Mifflin-St Jeor (1990) is considered the most accurate BMR equation for the general population, outperforming the older Harris-Benedict and Katch-McArdle formulas when body composition is unknown. After the calorie target is set, each macro's share of calories is divided by its energy density to yield grams: 4 kcal/g for protein and carbohydrates, 9 kcal/g for fat.
Derivation
BMR × activity factor = TDEE. TDEE + goal adjustment = calorie target. Protein grams = (C × P%) / 4; Carb grams = (C × C%) / 4; Fat grams = (C × F%) / 9. Example: 2,000 kcal with 30% protein gives (2000 × 0.30)/4 = 150 g protein.
Step-by-Step Calculation
Follow each step to understand how the result is calculated from your inputs.
Estimate Basal Metabolic Rate (BMR) with the Mifflin-St Jeor equation.
Multiply BMR by the activity factor to get TDEE.
Apply the goal adjustment to find the daily calorie target.
Allocate calories to macros and convert to grams (balanced 30/40/30 split).
Worked Examples
See how the calculator works with different scenarios.
Scenario
A 30-year-old man, 178 cm, 80 kg, moderately active, aiming to lose about 1 lb per week with a balanced 30/40/30 split.
Inputs
Calculation
BMR = 10×80 + 6.25×178 − 5×30 + 5 = 1,767.5. TDEE = 1,767.5 × 1.55 = 2,739.6. Target = 2,739.6 − 500 = 2,239.6 kcal.
Result
~2,240 kcal/day | Protein ≈ 168 g | Carbs ≈ 224 g | Fat ≈ 75 g
Interpretation
A 500 kcal daily deficit yields roughly 1 lb of fat loss per week (3,500 kcal ≈ 1 lb of fat). Protein at ~2.1 g/kg helps preserve muscle during the deficit.
What Are Macronutrients?
Macronutrients are the nutrients your body requires in gram quantities every day to produce energy: protein, carbohydrates, and fat. Alongside water, they form the bulk of the human diet, while micronutrients (vitamins and minerals) are needed in milligram amounts. Each macro plays a distinct role.
Protein — 4 kcal per gram
Protein supplies the amino acids used to build and repair muscle, organs, skin, hair, enzymes, hormones, and immune cells. Nine amino acids are essential, meaning they must come from the diet. Complete sources (meat, fish, eggs, dairy, soy) contain all nine; complementary plant pairings (rice and beans) can too. Protein also has the highest thermic effect of food (20-30% of its calories are burned in digestion) and is the most satiating macro, which is why higher-protein diets consistently perform well for fat loss.
Carbohydrates — 4 kcal per gram
Carbohydrates are the body's preferred fuel for high-intensity exercise and the primary energy source for the brain and central nervous system. They are stored as glycogen in muscle and the liver. Complex carbs (whole grains, legumes, vegetables, fruit) digest slowly and deliver fiber, while simple sugars digest quickly. Fiber, itself a carbohydrate, is essential for digestion, cholesterol management, and blood sugar control, with recommendations of 25-38 g daily.
Fat — 9 kcal per gram
Fat is the most energy-dense macro and is structurally essential: cell membranes, the sheaths around nerves, and hormones like testosterone and estrogen are all built from lipids. Fat also carries the fat-soluble vitamins A, D, E, and K. Unsaturated fats (olive oil, nuts, seeds, fatty fish) support cardiovascular health, while saturated and trans fats should be limited. Essential fatty acids (omega-3 and omega-6) cannot be made by the body and must come from food.
Popular Macro Splits by Goal
| Goal | Protein | Carbs | Fat | Best for |
|---|---|---|---|---|
| Balanced | 30% | 40% | 30% | General health, maintenance |
| High protein | 40% | 30% | 30% | Fat loss, muscle retention |
| Low carb | 35% | 20% | 45% | Steady energy, appetite control |
| Keto | 25% | 5% | 70% | Ketosis, fat-adapted diets |
| Endurance | 20% | 55-60% | 20-25% | Runners, cyclists, team sports |
Practical Tips
- •Prioritize protein first: set 1.6-2.2 g per kg of body weight, then fill remaining calories with carbs and fat to suit your preference.
- •Recalculate your macros every 4-6 weeks or after any 2-3 kg change in body weight — your TDEE moves with your weight.
- •Pick a split you can sustain: the best macro ratio is the one you will actually follow for months, not the "optimal" one you abandon in a week.
- •Weigh food with a scale for the first month. Volume estimates (cups, spoons) are commonly off by 20-40%.
- •Keep fat at or above 0.5-1 g per kg: very low fat intake can disrupt hormone production, especially in women.
- •Use flexible dieting (IIFYM): aim for 80% whole, nutrient-dense foods and 20% flexibility to keep the diet sustainable.
- •Spread protein across 3-5 meals of 20-40 g each to support muscle protein synthesis throughout the day.
- •On rest days, either keep macros constant (simplest) or drop 50-100 g of carbs while holding protein steady.
- •Aim for 25-38 g of fiber per day — track it alongside your macros, since high-protein, low-carb splits can crowd out fiber.
- •Adjust in small steps: if progress stalls for 2-3 weeks, change calories by 100-200 kcal rather than slashing them.
Common Mistakes
Assumptions
This calculator makes the following assumptions to provide estimates:
Limitations
Be aware of these limitations when using this calculator:
Related Calculators
Pair your macro plan with these fitness and nutrition tools.
Authoritative References
Information sources used in creating this calculator and educational content.
- Mifflin MD et al. — A new predictive equation for resting energy expenditure (Am J Clin Nutr)
- USDA & HHS — Dietary Guidelines for Americans
- NIH Office of Dietary Supplements
- USDA National Agricultural Library
- Academy of Nutrition and Dietetics
- American College of Sports Medicine
- International Society of Sports Nutrition — Position Stands
- Examine.com — Nutrition Research Reviews
- Nutrition.gov
Macro & Nutrition Glossary
Technical terms used in mortgage calculations explained in plain language.
- BMR (Basal Metabolic Rate)
- The energy your body burns at complete rest to sustain vital functions like breathing, circulation, and cell repair. Typically 60-70% of total daily expenditure.
- TDEE (Total Daily Energy Expenditure)
- Your total daily calorie burn: BMR plus activity, exercise, and the thermic effect of food. Eating below TDEE causes weight loss; above it, weight gain.
- Macronutrients (Macros)
- The three nutrients consumed in gram quantities that provide energy: protein and carbohydrates (4 kcal/g) and fat (9 kcal/g).
- Mifflin-St Jeor Equation
- The BMR formula published in 1990, considered the most accurate general-population equation. It uses weight, height, age, and sex.
- IIFYM (If It Fits Your Macros)
- A flexible dieting approach in which any food is allowed as long as daily protein, carb, and fat targets are met.
- Thermic Effect of Food (TEF)
- Energy used to digest and absorb food. Protein has the highest TEF (20-30% of its calories), carbs 5-10%, fat 0-3%.
- Net Carbs
- Total carbohydrates minus fiber and sugar alcohols, used primarily in low-carb and keto dieting.
- Ketosis
- A metabolic state reached when carbohydrate intake is very low (typically under 20-50 g/day), causing the body to burn fat and produce ketones for fuel.
- Calorie Deficit / Surplus
- Eating fewer (deficit) or more (surplus) calories than your TDEE, driving fat loss or weight gain respectively.
- Body Recomposition
- Simultaneously losing fat and gaining muscle, typically achieved with a modest deficit, high protein, and resistance training.
Frequently Asked Questions
Answers to common questions about this calculator.
What are macronutrients (macros)?
How does this macro calculator work?
What is the best macro ratio for weight loss?
What is the best macro ratio for muscle gain?
How many grams of protein per day do I need?
How many carbs per day should I eat?
How much fat per day is healthy?
What is the difference between counting macros and counting calories?
What is IIFYM (If It Fits Your Macros)?
Does the macro split matter more than calories?
How do I adjust macros when weight loss stalls?
Should macros differ on rest days?
Is a keto macro split (70% fat) safe?
Can I build muscle while eating at a calorie deficit?
How often should I recalculate my macros?
Do I need to hit my macros exactly?
Does eating protein at night matter?
Are macro needs different for women?
What is the thermic effect of food (TEF)?
Can this calculator be used for teens or children?
Was This Calculator Helpful?
Page Information
September 2026
2.0.0
Free to use. Results are estimates for educational purposes only, not medical advice.