fitness calculator

Macro Calculator

Convert daily calories into protein, carb, and fat gram targets.

Results

Protein grams
165.00
Carb grams
220.00
Fat grams
73.33

Overview

This macro calculator helps you turn a daily calorie target into specific gram targets for protein, carbohydrates, and fat so you can plan meals, track macros in apps, or follow a particular nutrition approach.

Instead of staring at percentages like “30/40/30,” you’ll see how many grams of each macro to eat in a day at your chosen calorie level. The calculator supports flexible macro splits, whether you’re doing a balanced diet, high‑protein plan, or something closer to keto.

It’s a planning tool, not medical advice—but it can make macro‑based eating far more practical than doing the math by hand.

How to use this calculator

  1. Decide on a realistic daily calorie goal based on your current plan (maintenance, fat loss, or muscle gain). Enter that number into the Daily calories field.
  2. Choose your preferred macro split as percentages—for example, 30/40/30, 35/35/30, or something more aggressive like 40/20/40 for high‑protein, higher‑fat approaches.
  3. Enter those percentages into the Protein %, Carb %, and Fat % inputs. The calculator will normalize them if they are slightly above or below 100%.
  4. Review the gram outputs for each macro and note the daily targets you want to aim for.
  5. Use these gram targets to plan meals and snacks: you can divide them across meals or use them as guardrails when logging food in a tracking app.
  6. Adjust the calorie goal or macro percentages and rerun the calculation if the grams feel unrealistic or don’t align with guidance from your coach or dietitian.

Inputs explained

Daily calories
The total number of calories you plan to eat per day. This might come from a TDEE calculator, a coach’s recommendation, or your existing nutrition plan for maintenance, cutting, or bulking.
Protein %
The percentage of your daily calories you want to come from protein. Higher protein (often 25–35% or more) can support muscle maintenance and satiety, especially when lifting or dieting.
Carb %
The percentage of calories from carbohydrates. Higher carb splits often support higher‑volume training, while lower carb splits are common in some fat‑loss or keto‑style approaches.
Fat %
The percentage of calories from dietary fat. Fat is calorie‑dense and important for hormones and brain health; most people aim to keep it above a healthy minimum even on higher‑carb plans.

Outputs explained

Protein grams
The daily grams of protein that match your calorie goal and chosen protein percentage. You can compare this to guidance like grams per kilogram or per pound of body weight.
Carb grams
The daily grams of carbohydrates corresponding to your carb percentage. Use this to plan starches, fruit, and other carb sources across your meals and training sessions.
Fat grams
The daily grams of fat implied by your fat percentage. This helps you budget oils, nuts, dairy, and other fat‑containing foods within your calorie target.

How it works

You enter a daily calorie goal and the percentage of calories you want from protein, carbs, and fat.

If your percentages don’t sum to exactly 100%, the calculator normalizes them proportionally so the split still covers your full calorie target.

For each macro, it calculates macro calories as Total calories × (Macro% ÷ 100).

It then converts macro calories into grams using standard energy values: protein and carbs have 4 calories per gram, while fat has 9 calories per gram.

The outputs give you daily gram targets for protein, carbs, and fat that correspond to your calorie goal and chosen macro distribution.

Formula

Let C = daily calories
Let P% = protein percentage
Let C% = carb percentage
Let F% = fat percentage

Normalize P%, C%, F% so they sum to 100% if needed.

Protein calories = C × (P% ÷ 100)
Carb calories = C × (C% ÷ 100)
Fat calories = C × (F% ÷ 100)

Protein grams = Protein calories ÷ 4
Carb grams = Carb calories ÷ 4
Fat grams = Fat calories ÷ 9

When to use it

  • Setting macro targets for cutting, maintenance, or bulking phases so you can change calories while keeping macro ratios consistent.
  • Translating popular macro splits (like 40/30/30 or 35/35/30) into grams for practical meal prep and food logging.
  • Building a high‑protein plan that supports strength training and muscle retention by explicitly allocating more calories to protein.
  • Exploring how different macro distributions feel—such as higher carbs on training days and higher fats on rest days.
  • Comparing how macro gram targets change when you adjust your calorie goal up or down by a few hundred calories.

Tips & cautions

  • Keep your macro percentages totalling close to 100% for the cleanest conversion—small deviations are fine because the calculator normalizes them.
  • Consider setting protein in grams per kilogram or per pound of body weight (for example, 1.6–2.2 g/kg) and then using the calculator to solve for carbs and fats that fit your calories.
  • Avoid pushing fat too low; extremely low fat intake can affect hormones and satiety. Many people keep fat at least 20–25% of calories unless working with a clinician.
  • Remember that macros are only part of nutrition—fiber, micronutrients, hydration, and food quality all matter for health and performance.
  • If tracking stresses you out, use macro outputs as loose ranges rather than rigid daily requirements, and focus on consistent habits over perfection.
  • Does not decide what your calorie target or macro split should be; it only converts the numbers you choose into grams.
  • Does not distinguish between different types of carbs or fats (for example, fiber vs sugar, saturated vs unsaturated fats).
  • Does not account for alcohol calories, which provide ~7 calories per gram and can affect macro planning if you drink regularly.
  • Does not handle net‑carb tracking used in some keto approaches; fiber and sugar alcohols are not separated out.
  • Macro needs for medical conditions, pregnancy, eating disorders, or therapeutic diets should be set with a registered dietitian or healthcare provider.

Worked examples

2,200 calories, 30/40/30 split

  • Protein calories = 2,200 × 0.30 = 660 → Protein grams = 660 ÷ 4 = 165 g.
  • Carb calories = 2,200 × 0.40 = 880 → Carb grams = 880 ÷ 4 = 220 g.
  • Fat calories = 2,200 × 0.30 = 660 → Fat grams = 660 ÷ 9 ≈ 73 g.

2,000 calories, high-protein 35/35/30

  • Protein calories = 2,000 × 0.35 = 700 → Protein grams = 700 ÷ 4 = 175 g.
  • Carb calories = 2,000 × 0.35 = 700 → Carb grams = 700 ÷ 4 = 175 g.
  • Fat calories = 2,000 × 0.30 = 600 → Fat grams = 600 ÷ 9 ≈ 67 g.

2,400 calories, keto-leaning 65/10/25 split

  • Protein calories = 2,400 × 0.25 = 600 → Protein grams = 600 ÷ 4 = 150 g.
  • Carb calories = 2,400 × 0.10 = 240 → Carb grams = 240 ÷ 4 = 60 g.
  • Fat calories = 2,400 × 0.65 = 1,560 → Fat grams = 1,560 ÷ 9 ≈ 173 g.

Deep dive

Turn your daily calorie goal into specific grams of protein, carbs, and fat by entering your macro percentages—ideal for meal prep, food tracking apps, and macro‑based diets.

Supports balanced, high‑protein, or keto‑style macro splits so you can hit your nutrition targets without manual spreadsheet math.

FAQs

Do percentages have to equal 100?
No. The calculator will normalize them if they’re a bit above or below 100%. However, keeping them close to 100% makes the outputs easier to interpret and avoids surprising shifts in the final split.
Can I target a gram amount instead?
Yes, but you’ll do the reverse math. You can decide on a protein gram target (for example, based on body weight) and a fat gram target, convert them to calories (grams × 4 or × 9), subtract from your daily calories, and treat the remainder as carb calories. Then convert back to grams.
What macro split is best?
There’s no single best macro ratio for everyone. Good splits depend on your goals, preferences, health status, and how you feel and perform. Many people do well with moderate protein, moderate carbs, and moderate fats, while others prefer higher protein or lower carbs. A dietitian or coach can help tailor this to you.
Do macros matter more than calories?
Total calories are usually the primary driver of weight change, but macros influence satiety, muscle retention, performance, and health markers. It’s often helpful to get calories roughly right first, then refine macros to support your specific goals.
Should I hit my macros perfectly every day?
No. Perfection isn’t necessary for progress. Treat macro targets as ranges instead of exact numbers and focus on consistent patterns over weeks and months rather than daily perfection.

Related calculators

This macro calculator is for general fitness and nutrition planning and does not provide medical or dietary advice. It does not account for all individual factors, including medical conditions, medications, allergies, eating disorders, pregnancy, or performance needs. Use it as a starting framework only and consult a registered dietitian or qualified healthcare professional before making major dietary changes, especially if you have health concerns or are following a therapeutic diet.