OnlineAITool
Calculators

Macro Calculator

Split a daily calorie target into carbohydrate, protein and fat in grams.

Updates as you type
Nothing is sent anywhere

Your figures

Result

How to use this tool

  1. Enter your figures in the fields on the left.
  2. Results update instantly as you type — there is no button to press.
  3. Change any input to see how sensitive the answer is to it.

Carbohydrate and protein provide 4 calories per gram, fat provides 9. That difference is why the fat figure in grams always looks small relative to its percentage.

How it works

The calculation runs in your browser as you type — there is no submit button and nothing is sent anywhere. Change any figure and the results update immediately, which makes it easy to see how sensitive the answer is to each input.

Every formula used here is standard and documented in the questions below. Where a result depends on an assumption, the assumption is stated rather than buried.

Frequently asked questions

What split should I use?

It depends on goals and preference. Higher protein helps preserve muscle in a deficit. Beyond that, adherence matters more than the exact ratio.

How much protein do I need?

General guidance is 1.6–2.2 g per kg of body weight for those training regularly; less for sedentary adults.

Why is the fat number so small?

Fat carries 9 calories per gram against 4 for carbs and protein, so the same percentage of calories is fewer grams.

Is this calculator free?

Yes, with no account, no limits and no data collection. It runs entirely in your browser.

Should I rely on this for a financial or medical decision?

No. It is a planning estimate built on standard formulas and stated assumptions. For decisions that matter, speak to a qualified professional who can account for your full circumstances.

Is this calculator accurate?

The arithmetic is exact — it uses the standard formula, shown in the questions above. What limits accuracy is the assumptions: the figures you enter, and factors the formula does not model such as fees, taxes and rule changes. Treat the result as a well-founded estimate rather than a quotation.

Do I need to sign up or download anything?

No. It runs in your browser, updates as you type, and stores nothing. There is no account, no download, and no limit on how many times you use it.

Related tools

From other categories

Your files stay on your device. This tool runs entirely in your browser. No file is uploaded, transmitted, or stored. You can verify this by opening your browser's Network tab while using the tool.

Disclaimer. This calculator provides estimates based on standard formulas and the assumptions stated above. It is not financial, medical, tax or legal advice. For decisions that matter, consult a qualified professional. See our full disclaimer.