Health & FitnessFormula-based · Runs in your browser

Macro Calculator

Estimate a goal-adjusted calorie target and translate a balanced, high-protein, lower-carb, very-low-carb, or custom split into daily grams.

Preparing saved example…

Inputs

Enter the values you know. Optional fields may be left empty.

Local save controls below
Required
Required
Required
years
Required
Required
kg
Required
cm
Required
Required
Required

Result

Updates as valid inputs change.

Calculated locally
Macro targets are educational estimates. Medical conditions, pregnancy, eating-disorder risk, and athletic goals require individualized nutrition advice.
Daily calorie target
Carbohydrate
Protein
Fat
Maintenance estimate
Macro split

Saved locally, explained clearly

Drafts, calculations, scenarios, and workflow progress stay in this browser unless you export them.

Opening local database…

Calculation steps

Follow what happened from the selected formula to the displayed answer.

Show substituted values and intermediate working
Calculate current inputs to see the working.
  1. 1

    Formula selected

    The calculator uses the following formula or method.

    Calories come from BMR × activity with a goal adjustment; carbohydrate and protein use 4 kcal/g and fat uses 9 kcal/g.

  2. 2

    Values entered

    Your values are placed into the calculation.

    Enter values to see what is used in this step.

  3. 3

    Result calculated

    The formula or method produces the following result values.

    Results will appear after a successful calculation.

  4. 4

    Answer formatted

    Displayed values are rounded and formatted using each output’s configured precision.

Scenario comparison

Save working scenarios, then select two or three to compare. Formula versions and inputs remain visible.

No scenarios saved for this calculator yet.

Recent calculations

Successful calculations are retained locally according to your privacy settings.

No local history for this calculator yet.

Data and privacy

How it works

The calculator first estimates daily energy needs, applies the selected goal adjustment, and then converts each macro percentage to grams using 4 kcal per gram for carbohydrate and protein and 9 kcal per gram for fat.

Input query strings and outputs

Use an input name in this page’s URL as ?name=value, and join additional inputs with &. Portable shared links may instead use the compact ?ac= state parameter.

Input query strings

16
  • ?unitSystem= Units

    Choice · Required · Default: metric · Accepted values: metric, imperial

  • ?sex= Sex used by equation

    Choice · Required · Default: male · Accepted values: male, female

  • ?age= Age

    Number · Required · Default: 30

  • ?formula= BMR equation

    Choice · Required · Default: mifflin · Accepted values: mifflin, harris, katch

  • ?bodyFatPercent= Body fat

    Percentage · Required · Default: 20 · Used when formula = katch

  • ?weightKg= Weight

    Number · Required · Default: 70 · Used when unitSystem = metric

  • ?heightCm= Height

    Number · Required · Default: 175 · Used when unitSystem = metric

  • ?weightLb= Weight

    Number · Required · Default: 154 · Used when unitSystem = imperial

  • ?feet= Height feet

    Number · Required · Default: 5 · Used when unitSystem = imperial

  • ?inches= Height inches

    Number · Required · Default: 9 · Used when unitSystem = imperial

  • ?activity= Activity level

    Choice · Required · Default: moderate · Accepted values: sedentary, light, moderate, active, veryActive, extraActive

  • ?goal= Calorie goal

    Choice · Required · Default: maintain · Accepted values: maintain, mildLoss, loss, mildGain, gain

  • ?macroPlan= Macro split

    Choice · Required · Default: balanced · Accepted values: balanced, highProtein, lowerCarb, veryLowCarb, custom

  • ?carbPercent= Custom carbohydrate share

    Percentage · Required · Default: 45 · Used when macroPlan = custom

  • ?proteinPercent= Custom protein share

    Percentage · Required · Default: 25 · Used when macroPlan = custom

  • ?fatPercent= Custom fat share

    Percentage · Required · Default: 30 · Used when macroPlan = custom

Outputs

6
  • calories Daily calorie target

    Number · Primary output · Suffix: kcal

  • carbs Carbohydrate

    Number · Suffix: g/day

  • protein Protein

    Number · Suffix: g/day

  • fat Fat

    Number · Suffix: g/day

  • tdee Maintenance estimate

    Number · Suffix: kcal/day

  • split Macro split

    Text

Presets and custom mode

Presets are organizational examples. Custom percentages must total 100%, and all results remain estimates rather than a meal plan.

Sources
Limitations
  • Macro targets are educational estimates. Medical conditions, pregnancy, eating-disorder risk, and athletic goals require individualized nutrition advice.
  • Health results are educational estimates, not a diagnosis or treatment recommendation. Individual circumstances may require a qualified clinician's assessment.