Health

Macro Calculator

Protein/carb/fat split from total calories. Free online Macro Calculator. Calculate macro online — fast, accurate, mobile-friendly, no signup needed.

Protein (g)
165
Carbs (g)
220
Fat (g)
73.333333

Derivation

  1. ├── 01Givencals = 2200, p = 30, c = 40, f = 30
  2. ├── 02FormulaProtein (g): e.cals × e.p / 100 / 4
  3. ├── 03Substitutee.2200 × e.30 / 100 / 4
  4. ├── 04Compute Protein (g)165
  5. ├── 05FormulaCarbs (g): e.cals × e.c / 100 / 4
  6. ├── 06Substitutee.2200 × e.40 / 100 / 4
  7. ├── 07Compute Carbs (g)220
  8. ├── 08FormulaFat (g): e.cals × e.f / 100 / 9
  9. ├── 09Substitutee.2200 × e.30 / 100 / 9
  10. └── 10Compute Fat (g)73.333333
Did you know?

Every calculator here runs 100% in your browser — nothing is sent to a server or stored in a database.

§01What is

Understanding the Macro Calculator

The Macro Calculator computes Protein (g) from 4 inputs: calories, protein %, carb %, fat %. Protein/carb/fat split from total calories.

Health metrics give us objective checkpoints against a body that can feel unreliable. Used alongside professional guidance — not in place of it — these numbers help you track progress and spot trends that matter. The Macro Calculator sits in that toolkit — it protein/carb/fat split from total calories. Enter your numbers above and the result updates instantly; every step of the math is shown in the Derivation panel so you can see exactly how the answer was reached.

§02The Formula

How it’s calculated

Protein (g) = e.cals × e.p / 100 / 4 | Carbs (g) = e.cals × e.c / 100 / 4 | Fat (g) = e.cals × e.f / 100 / 9

Where

cals
Calories
p
Protein %
c
Carb %
f
Fat %
Protein (g)
Output value
Carbs (g)
Output value
Fat (g)
Output value
§03Practical Example

Step-by-step walkthrough

Scenario

Apply the formula to a realistic set of inputs: Calories = 2200, Protein % = 30, Carb % = 40, Fat % = 30.

  1. 01Start by noting the input — Calories: 2200.
  2. 02Start by noting the input — Protein %: 30.
  3. 03Start by noting the input — Carb %: 40.
  4. 04Start by noting the input — Fat %: 30.
  5. 05Substitute these values into the formula: Protein (g) = e.cals × e.p / 100 / 4 | Carbs (g) = e.cals × e.c / 100 / 4 | Fat (g) = e.cals × e.f / 100 / 9
  6. 06Compute Protein (g): the calculator returns 165.
  7. 07Compute Carbs (g): the calculator returns 220.
  8. 08Compute Fat (g): the calculator returns 73.3333.
  9. 09Cross-check the answer by opening the Derivation panel above — every line of math is shown so you can follow the computation end-to-end.
§04Variants

Common Macro Problems

The formula gets rearranged depending on which variable you need. Here are the patterns you’ll run into in the real world — find the one that matches your problem and follow the worked steps.

01 · PATTERN

Calories halved

cals = 1100 (from 2200)

Keep every other input at its default and halve the calories. See how protein (g) responds.

  1. 01New Calories: 1100
  2. 02Baseline Protein (g): 165
  3. 03New Protein (g): 82.5
  4. 04Protein (g) decreases by 50% → use this sensitivity to plan for real-world variation.
02 · PATTERN

Calories doubled

cals = 4400 (from 2200)

Keep every other input at its default and double the calories. See how protein (g) responds.

  1. 01New Calories: 4400
  2. 02Baseline Protein (g): 165
  3. 03New Protein (g): 330
  4. 04Protein (g) increases by 100% → use this sensitivity to plan for real-world variation.
03 · PATTERN

Protein % halved

p = 15 (from 30)

Keep every other input at its default and halve the protein %. See how protein (g) responds.

  1. 01New Protein %: 15
  2. 02Baseline Protein (g): 165
  3. 03New Protein (g): 82.5
  4. 04Protein (g) decreases by 50% → use this sensitivity to plan for real-world variation.
04 · PATTERN

Protein % doubled

p = 60 (from 30)

Keep every other input at its default and double the protein %. See how protein (g) responds.

  1. 01New Protein %: 60
  2. 02Baseline Protein (g): 165
  3. 03New Protein (g): 330
  4. 04Protein (g) increases by 100% → use this sensitivity to plan for real-world variation.
§05FAQ

Frequently asked questions

Yes. The calculator implements the standard formula as documented and returns exact floating-point results. No approximations are used unless noted in the formula.
Your feedback

How useful was this calculator?

Your ratings stay in your browser — they help us learn which tools people actually rely on.

Rate it
Was this helpful?