🍽️ Macro Calculator

Find your daily protein, carb and fat targets in grams. Pick a diet style — Balanced, Low-Carb, High-Protein or Keto — and get an instant gram and calorie breakdown built on your own TDEE.

🍽️ Macro Calculator
📊 Your Macro Plan
Daily Calorie Target
BMR (At Rest)
TDEE (Maintenance)
Diet Style
Weekly Change

Your Macro Targets:

Protein
Carbs
Fats
Macro Split
Grams Breakdown
This result is for informational purposes only and is not a medical diagnosis. Macro and calorie needs are population-based estimates — individual results vary with metabolism, body composition, and health status. Consult a healthcare professional or registered dietitian before starting any diet or exercise program.
🍽️

Enter your details and pick a diet style

Guide

About the Macro Calculator

Last updated: July 2026 · Reviewed by the NeftCal editorial team

This free macro calculator (macronutrient calculator) tells you exactly how many grams of protein, carbs and fat to eat each day to match a diet style of your choosing. Where a standard calorie calculator quietly fixes your macro split at a generic 30% protein / 40% carbs / 30% fat, this tool flips the order: you pick the ratio first — Balanced, Low-Carb, High-Protein, or Keto — and it builds your gram targets around that choice, which is exactly how flexible dieting and IIFYM ("if it fits your macros") approaches are meant to work.

What It Measures

This macro split calculator measures four linked numbers: your Basal Metabolic Rate (BMR), your Total Daily Energy Expenditure (TDEE), your goal-adjusted daily calorie target, and — the part that sets it apart from a plain calorie calculator — the exact grams and calories of protein, carbohydrate, and fat that make up that target under your chosen diet-style percentages.

Who Should Use This Calculator

This tool is built for anyone who wants more control over their macro ratio than a one-size-fits-all default — people following flexible dieting (IIFYM), lifters who want a higher-protein split to preserve muscle, people trying a low-carb or ketogenic approach, or anyone comparing how different diet styles would change their daily gram targets before committing to one. It is not designed for children, teenagers, or pregnant or breastfeeding women, whose nutrient needs differ significantly.

Why It Matters

Calories determine whether you gain or lose weight, but macros determine what that weight is made of and how you feel getting there. A higher-protein split helps preserve lean muscle during a cut, a lower-carb or ketogenic split may suit people managing blood sugar or appetite, and a balanced split works well as an all-purpose default. Because this macro calculator lets you choose the ratio rather than imposing one, you can match your macros to your actual training style, food preferences, and how your body responds — rather than a one-size-fits-all number.

Real-World Applications

  • Setting exact protein, carb, and fat gram targets for flexible dieting (IIFYM)
  • Comparing how Balanced, Low-Carb, High-Protein, and Keto splits change your daily macros before choosing one
  • Prioritizing a higher protein target during a fat-loss phase to help preserve muscle
  • Trying a low-carb or ketogenic approach with calculated, personalized gram targets instead of guesswork
  • Cross-checking results with NeftCal's Calorie Calculator, BMR Calculator, and TDEE Calculator

Tips for Accurate Results

  • Be honest about your activity level — most people select a tier more active than their real week, which inflates both TDEE and macro grams
  • If you switch diet styles (e.g. Balanced to Keto), give your body 1-2 weeks to adapt before judging how you feel or perform
  • Protein grams matter most for muscle preservation — aim to hit that number consistently even if carbs and fat vary slightly day to day
  • Recalculate every 4-6 weeks or after a meaningful change in weight, training volume, or goal
  • Use the gram targets as a weekly average to aim for, not a rigid daily requirement
Formula

The Macro Calculator Formula, Explained

How this macro calculator turns your stats and diet-style choice into gram-level protein, carb, and fat targets

Step 1 — BMR (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

Step 2 — TDEE and Daily Calorie Target
TDEE = BMR × Activity Multiplier (1.2 to 1.9)
Calorie Target = max(TDEE + Goal Adjustment, 1,200 kcal) — Weight Loss −500 | Maintain 0 | Muscle Gain +300

Step 3 — Diet-Style Macro Split
Balanced: 30% Protein / 40% Carbs / 30% Fat  |  Low-Carb: 40% / 20% / 40%  |  High-Protein: 40% / 30% / 30%  |  Keto: 25% / 5% / 70%

Step 4 — Convert Calories to Grams
Protein (g) = (Calorie Target × Protein%) ÷ 4  |  Carbs (g) = (Calorie Target × Carb%) ÷ 4  |  Fat (g) = (Calorie Target × Fat%) ÷ 9
🥩

Protein-First Thinking

Protein at 1.6-2.2g per kg body weight supports muscle preservation and growth regardless of diet style. The High-Protein and Low-Carb presets both push protein to 40% of calories to make this easier to hit.

🍞

Carbs Fuel Performance

Carbohydrates are your body's preferred fuel for high-intensity training. Balanced and High-Protein splits keep carbs moderate-to-high (30-40%) for people who train hard, while Low-Carb and Keto deliberately restrict them.

🥑

Fat & Diet Style

Fat is set at 9 kcal/g — over double protein and carbs — so small percentage shifts move a lot of calories. Keto's 70% fat allocation is what allows carbs to drop to just 5% while still hitting a full calorie target.

⚙️ Why This Formula Works

Because protein and carbohydrates each provide about 4 kilocalories per gram, and fat provides about 9, converting a percentage-based macro split into precise grams is a direct, verifiable calculation once the total calorie target is known. Calculating the calorie target first (via BMR → TDEE → goal adjustment), then applying diet-style percentages on top, keeps the two decisions — how much to eat and what ratio to eat it in — cleanly separated and independently adjustable.

🎯 When to Use It

  • Following a flexible-dieting (IIFYM) approach that needs exact gram targets
  • Comparing how different diet styles would change your daily macros before choosing one
  • Prioritizing a specific macro (usually protein) beyond what a fixed generic split provides

📋 Assumptions

  • Applies to generally healthy adults — not children, teens, or pregnant/breastfeeding women
  • Assumes the activity multiplier and diet-style preset you select reflect your actual routine and goals
  • Uses fixed percentage presets for each diet style rather than a fully custom ratio
  • Treats protein and carbs as 4 kcal/g and fat as 9 kcal/g, the standard rounded energy values

⚠️ Limitations of the Formula

  • Doesn't account for individual differences in nutrient absorption or metabolism
  • Fixed diet-style percentages can't be fine-tuned to an exact custom ratio
  • Keto's very-low-carb allocation may not suit everyone and can require a real adjustment period
  • Doesn't track food quality or micronutrients — only macronutrient grams and calories
Walkthrough

Step-by-Step: How to Use the Macro Calculator

From entering your stats to reviewing your full protein, carb and fat plan

Enter your gender, age, weight and height

These four measurements feed the Mifflin-St Jeor equation used to estimate your Basal Metabolic Rate (BMR), the foundation of your macro targets.

Select your activity level

Choose from Sedentary, Lightly Active, Moderately Active, Very Active, or Extra Active to convert BMR into your Total Daily Energy Expenditure (TDEE).

Select your goal

Pick Weight Loss, Maintain Weight, or Muscle Gain to apply a calorie deficit or surplus on top of your TDEE.

Pick a diet style (macro ratio)

Choose Balanced, Low-Carb, High-Protein, or Keto — each applies a different protein/carb/fat percentage split to your calorie target.

Click "Calculate Macros" and review your targets

See your daily calorie target, BMR, TDEE, and exact protein, carb and fat targets in grams and calories, with two charts visualizing the split.

Example

Worked Example

Using the calculator's own default scenario — 28-year-old male, 70 kg, 170 cm, moderately active, maintaining weight, Balanced diet style

Scenario

Suppose you're a 28-year-old male weighing 70 kg, standing 170 cm tall, moderately active (exercise 3-5 days/week), maintaining your current weight, and using the default Balanced diet style (30% protein / 40% carbs / 30% fat).

Gender / AgeMale / 28 yrs
Weight / Height70 kg / 170 cm
Activity / GoalModerately Active / Maintain
Diet StyleBalanced (30/40/30)
Step 1 — Calculate BMR (male formula): 10×70 + 6.25×170 − 5×28 + 5 = 700 + 1,062.5 − 140 + 5 = 1,627.5 kcal, displayed rounded as 1,628 kcal.
Step 2 — Calculate TDEE: 1,627.5 × 1.55 (Moderately Active) = 2,522.6 kcal, displayed rounded as 2,523 kcal.
Step 3 — Apply goal adjustment: 2,522.6 + 0 (Maintain Weight) = 2,522.6 kcal, rounded to a Daily Calorie Target of 2,523 kcal/day.
Step 4 — Split by Balanced diet style (30% / 40% / 30%): Protein = 2,523 × 0.30 = 756.9 kcal ÷ 4 ≈ 189 g. Carbs = 2,523 × 0.40 = 1,009.2 kcal ÷ 4 ≈ 252 g. Fat = 2,523 × 0.30 = 756.9 kcal ÷ 9 ≈ 84 g.
Step 5 — Weekly change: (0 × 7) ÷ 7,700 = 0.00 kg/week, since the Maintain Weight goal applies no adjustment.
Daily Calorie Target
2,523 kcal/day
Protein
189 g (757 kcal)
Carbs / Fat
252 g / 84 g

Explanation: With the default Balanced diet style, this scenario's 2,523 kcal target splits into 189 g protein, 252 g carbs, and 84 g fat. Switching only the Diet Style dropdown to High-Protein (40/30/30) on the same 2,523 kcal target would raise protein to roughly 252 g while dropping carbs to about 189 g, fat staying near 84 g — the calorie target stays identical, only the macro ratio changes. This illustrates the core idea: diet style controls the split, not the total energy.

Interpretation

Understanding Your Macro Calculator Results

How your protein target (in grams per kg of body weight) compares to general nutrition guidance

Protein TargetCategoryGeneral Consideration
Below 0.8 g/kg body weightLowBelow the commonly cited minimum for adults; may be insufficient during a calorie deficit
0.8 – 1.2 g/kgBaseline-ModerateMeets general adult guidance; may be modest for regular strength training
1.2 – 1.6 g/kgModerate-HighCommonly recommended range for active individuals and general muscle maintenance
1.6 – 2.2 g/kgHighWidely cited range for supporting muscle preservation or growth during training
Above 2.2 g/kgVery HighGenerally offers diminishing returns for most people beyond this point

If your protein target lands in the 1.2–2.2 g/kg range: this generally aligns with widely cited guidance for people who train regularly and want to preserve or build muscle — the High-Protein and Low-Carb diet-style presets are built to land in or near this range for most calorie targets.

If your protein target is below 1.2 g/kg (common on Balanced or Keto at lower calorie targets): consider whether a higher-protein diet style would better support your training goals, especially during a calorie deficit where preserving muscle matters more.

This result is for informational purposes only and is not a medical diagnosis. Macro targets are population-based estimates — they don't know your individual training history, medical conditions, or how your body responds to different nutrient ratios.

ℹ️

This calculator provides educational estimates only and should not be used as a substitute for professional medical advice, diagnosis, or treatment. Results may vary depending on individual health conditions. Always consult a qualified healthcare professional regarding medical concerns.

Use Cases

Practical Use Cases for the Macro Calculator

Where choosing your own macro ratio makes a real difference

🍱

Flexible dieting (IIFYM)

Get exact protein, carb, and fat gram targets to fit whichever foods you prefer.

💪

Muscle preservation during a cut

Switch to High-Protein to keep protein high while running a calorie deficit.

🥑

Trying a low-carb or Keto approach

Get calculated gram targets for Low-Carb or Keto instead of guessing portions.

🏋️

Strength training macro planning

Balance carbs for training performance with adequate protein for recovery.

📊

Comparing diet styles side by side

Switch the Diet Style dropdown to see how each ratio changes your grams instantly.

🍽️

Meal-prep planning

Use gram targets to plan meals in advance that hit your macro goals.

🧑‍🏫

Coaching and trainer client plans

Trainers can quickly generate diet-style-specific macro targets for clients.

🔁

Recalculating after a goal change

Re-run the numbers when you shift from cutting to maintaining to gaining.

🩺

Blood-sugar-conscious eating patterns

Explore a Low-Carb split as a general education starting point, alongside professional guidance.

📈

Tracking macro consistency over time

Use the same gram targets each week to build a consistent, repeatable eating pattern.

Pros & Cons

Benefits and Limitations

What this macro calculator does well, and where it can't replace professional advice

✅ Benefits

  • Free, instant, and requires no signup or personal information
  • Runs entirely in your browser — your health data is never sent to a server
  • Lets you choose the macro ratio first, unlike calculators with one fixed split
  • Four built-in diet-style presets: Balanced, Low-Carb, High-Protein, and Keto
  • Uses the Mifflin-St Jeor equation for BMR, widely considered accurate for modern populations
  • Separate goal adjustment (deficit/surplus) independent from the macro ratio choice
  • Precise gram and calorie breakdown for each macronutrient
  • Visual doughnut and bar charts for easy interpretation
  • Downloadable plain-text summary of your results
  • Supports flexible dieting (IIFYM) directly with exact gram targets
  • Fast-loading and mobile-friendly
  • Pairs naturally with NeftCal's Calorie Calculator and Daily Meal Tracker

⚠️ Limitations

  • Diet-style percentages are fixed presets, not a fully custom ratio slider
  • Population-average BMR/TDEE formula — individual metabolism can vary ±15-20%
  • Doesn't track food quality, fiber, or micronutrients — grams and calories only
  • Keto and Low-Carb presets may require a real physical adjustment period
  • Not designed for children, teenagers, or pregnant/breastfeeding women
  • Doesn't account for medical conditions, medications, or hormonal factors
  • Doesn't track what you actually eat — pair with a food log for that
  • Not a substitute for a registered dietitian's personalized macro plan
Reference

Diet Style Comparison (at a 2,000 kcal Target)

How each preset's percentages translate to grams, using the calculator's own conversion (protein/carbs ÷4, fat ÷9)

Diet StyleProtein / Carbs / Fat %Protein (g)Carbs (g)Fat (g)
Balanced30% / 40% / 30%150 g200 g67 g
Low-Carb40% / 20% / 40%200 g100 g89 g
High-Protein40% / 30% / 30%200 g150 g67 g
Keto25% / 5% / 70%125 g25 g156 g

Common Mistakes and Expert Tips

❌ Common Mistakes

  • Switching diet styles every few days instead of giving one 1-2 weeks to judge fairly
  • Choosing Keto without understanding the adjustment period some people experience
  • Focusing only on hitting the calorie target while ignoring the macro split entirely
  • Selecting an activity level based on your best day rather than your typical week
  • Treating exact daily gram numbers as mandatory instead of a weekly average to aim for
  • Not recalculating after a significant weight or activity-level change

💡 Expert Tips & Best Practices

  • Prioritize hitting your protein gram target consistently, even if carbs and fat vary slightly
  • Compare diet styles on the same calorie target before deciding which fits your training and preferences
  • Pair this calculator with the Daily Meal Tracker to log actual intake against your macros
  • Cross-check your calorie target with the standalone Calorie Calculator, BMR Calculator, and TDEE Calculator
  • Recalculate every 4-6 weeks or after a meaningful change in weight, training volume, or goal
📝

Summary: This macro calculator gives you an instant, free, diet-style-first breakdown of your protein, carb, and fat targets in grams and calories, built on the Mifflin-St Jeor BMR and TDEE formulas — a useful, evidence-based starting point, not a medical prescription. Pair it with the Calorie Calculator to check the fixed-ratio version of your calorie goal, or the BMR Calculator and TDEE Calculator to verify each underlying number individually.

FAQ

Frequently Asked Questions

Common questions about macro calculations

What's the difference between this macro calculator and a calorie calculator?
A calorie calculator fixes the macro split for you (usually 30% protein / 40% carbs / 30% fat) and just gives you a calorie target. This macro calculator is macro-first: you choose the diet style — Balanced, Low-Carb, High-Protein, or Keto — and it splits your personalized calorie target into protein, carb, and fat grams to match that ratio.
Which diet style should I choose — Balanced, Low-Carb, High-Protein or Keto?
Balanced (30/40/30) suits most general health and body recomposition goals. High-Protein (40/30/30) helps preserve muscle during a cut or support muscle growth. Low-Carb (40/20/40) can help some people control appetite and blood sugar. Keto (25/5/70) is a strict very-low-carb approach that requires a real adjustment period and, for some people, medical guidance.
How many grams of protein, carbs and fat should I eat per day?
It depends on your calorie target and chosen ratio. For example, a 2,000 kcal target on a Balanced split gives roughly 150g protein, 200g carbs and 67g fat. Enter your details above and pick a diet style to see your exact numbers in grams and calories.
Do I need to hit my macros exactly every day?
No. Being within 5-10g of your protein target and roughly on target for carbs and fat over a week matters far more than hitting an exact number every single day. Use these figures as a target range, not a rigid daily requirement.
How does the macro calculator estimate my BMR and TDEE?
It uses the Mifflin-St Jeor equation: for men, BMR = 10×weight(kg) + 6.25×height(cm) − 5×age + 5; for women, BMR = 10×weight(kg) + 6.25×height(cm) − 5×age − 161. That BMR is then multiplied by your selected activity factor (1.2 to 1.9) to get your TDEE, which forms the base of your calorie target before the diet-style split is applied.
What's the difference between this macro calculator and the fixed split used by the Calorie Calculator?
NeftCal's Calorie Calculator always applies a fixed 30% protein / 40% carbs / 30% fat split. This Macro Calculator lets you pick the ratio first from four presets — Balanced, Low-Carb, High-Protein, or Keto — so the gram targets match a specific dietary approach instead of one generic default.
How many grams of protein should I eat per kg of body weight?
General nutrition guidance suggests a minimum of about 0.8g of protein per kg of body weight for adults, with many active individuals benefiting from roughly 1.6-2.2g per kg to support muscle preservation or growth. The High-Protein and Low-Carb diet-style presets in this calculator push protein to 40% of calories, which often lands in or above that higher range depending on your total calorie target.
Why does fat use 9 kcal per gram instead of 4?
Fat is more energy-dense than protein or carbohydrates — each gram of fat provides about 9 kilocalories, compared to about 4 kilocalories per gram of protein or carbohydrate. These are standard energy conversion values, which is why small percentage shifts toward fat (like in the Keto preset) move a large number of calories relative to the same percentage shift in protein or carbs.
Can I use this macro calculator for a Keto diet?
Yes. Selecting the Keto preset (25% protein / 5% carbs / 70% fat) calculates gram targets for a very-low-carbohydrate, high-fat approach. Keto typically requires a real physical adjustment period and, for some people with existing health conditions, medical supervision — consult a healthcare professional before starting, especially if you take medication or have a chronic condition.
What is IIFYM and how does this calculator support it?
IIFYM ("If It Fits Your Macros") is a flexible dieting approach where you can eat any foods you like, as long as they fit within your daily protein, carb, and fat gram targets. This macro calculator supports that approach directly by giving you exact gram targets for your chosen diet style, which you can then hit using whichever foods you prefer.
How is my daily calorie target calculated before the macro split is applied?
The calculator first estimates your BMR with the Mifflin-St Jeor equation, multiplies it by your activity factor to get your TDEE, then adds or subtracts your selected goal's calorie adjustment (Weight Loss −500 kcal, Maintain 0, Muscle Gain +300 kcal), flooring the result at 1,200 kcal. That final number is your daily calorie target, which the diet-style percentages are then applied to.
Which activity level should I choose in the macro calculator?
Pick the option that matches your typical week, not just your hardest training day: Sedentary for a desk job with little exercise, Lightly Active for 1-3 light sessions weekly, Moderately Active for 3-5 sessions, Very Active for hard exercise 6-7 days a week, and Extra Active for physical jobs or twice-daily training. Most people should choose one level below what they first assume.
Can I use this calculator for weight loss and muscle gain?
Yes. The Goal dropdown includes Weight Loss (−0.5kg/week), Maintain Weight, and Muscle Gain (+0.3kg/week) options. Each adjusts your calorie target with a deficit or surplus before the diet-style percentages calculate your protein, carb, and fat grams, so your macros stay aligned with your calorie goal.
Should I switch diet styles frequently?
Generally no. Switching diet styles (for example, Balanced to Keto) requires a 1-2 week physical adjustment period each time, so frequent switching makes it hard to judge how any single approach is actually working for you. Pick one diet style, stay consistent for at least a few weeks, and use your results (energy, training performance, weight trend) to decide whether to continue or adjust.
Learn More

Authoritative Resources on Macronutrients and Nutrition

Official guidance to complement this calculator — not a substitute for licensed medical or dietetic advice

Related Calculators

Explore other health tools