aifithub

Nutrition

Macro Calculator

Convert your calorie target into daily protein, carbs, and fat grams based on your goal and split preference.

Macro Inputs

Enter your TDEE or calculate it first.

TDEE (kcal/day)
Body weight (kg)
Goal
Macro split

For maintenance, eat 2,400 kcal/day: 144g protein (1.8g/kg), 228g carbs, and 101g fat. Spread across 3-4 meals, that's about 36g protein per meal — roughly a palm-sized portion of meat or fish plus a scoop of whey.

Daily Macro Targets

Calories
2,400 kcal
Protein
144 g
Carbs
228 g
Fat
101 g

Daily Macro Split

Protein, carbs, and fat add up to the full daily nutrition target.

Daily grams
473 g
Protein
144 g
Carbs
228 g
Fat
101 g

Track your macros accurately

We may earn a small commission at no extra cost to you. These are products we'd genuinely recommend.

Formula: Protein from bodyweight × goal multiplier; remaining calories split by preference.

How to use it

  1. Select your goal (cut, maintain, bulk, or a specific split like keto/high-protein) before entering body stats — the goal determines your carbohydrate and fat ratio. Protein target is held roughly constant regardless of the split.
  2. Verify the total calorie output matches your TDEE ± your deficit or surplus. If it does not match, recheck the activity level input — this is the most common source of discrepancy.
  3. Carbohydrate timing improves training performance: concentrate 50–60% of your daily carbs around your training window (pre- and post-workout) if you train at moderate to high intensity.
  4. If full macro tracking feels overwhelming, start with protein only. Consistently hitting protein within 10% of target daily delivers roughly 80% of the benefit of complete macro tracking.
  5. Check that fat grams do not fall below 0.3g per lb of body weight — this is the floor for hormonal function. If the macro split pushes fat below this, reduce carbs and raise fat accordingly.

AI Integrations

Contract, discovery endpoints, and developer notes for agent use.

Always available for agents

Tool contract JSON

https://aifithub.io/contracts/macro-calculator.json

Stable input and output contract for this exact tool.

Human review

People can use the browser page to sense-check outputs and charts, but agents should still execute against the contract and discovery endpoints.

{
  "tool": "macros",
  "calories": 2200,
  "protein_pct": 30,
  "carbs_pct": 40,
  "fat_pct": 30
}
Expand developer notes

Agent playbook

  1. Resolve Macro Calculator from /agent-tools.json and open its contract before execution.
  2. Validate inputs against the contract schema instead of scraping labels from the page UI.
  3. Open the browser page only when a person wants to review charts, assumptions, or related tools.

Agent FAQ

Should ChatGPT, Claude, or another agent click through the UI?

No. Start with /agent-tools.json, then follow the tool's contract URL. The page UI is for human review, not parameter discovery.

When do tools show Quick and Advanced?

Every tool opens in Quick Start first. Advanced Controls keeps the same scenario, reveals more assumptions or diagnostics, and every tool keeps AI integrations inline below the instructions.

When should an agent still open the browser page?

Open it when a human wants to sense-check the output, review the chart, or keep exploring related tools after the calculation finishes.

Questions people usually ask
Which formula is used here?

Uses goal-adjusted calorie targets, bodyweight-based protein ranges, and selected carb/fat split assumptions.

Can I use metric or imperial units?

Yes. This tool supports both metric and imperial units and remembers your preference.

Is this medical advice?

No. This tool provides general fitness estimates and should not replace medical guidance.

Is this tool free and private to use?

Yes. AI Fit Hub tools are free, no-signup browser tools. Inputs stay in your browser unless you choose to share a URL.

Do these tools replace medical guidance?

No. These outputs are general fitness estimates — not medical advice.

Can I switch between metric and imperial units?

Yes. Every tool supports both systems and remembers your preference in localStorage.

Related Resources

Learn the decision before you act

Every link here is tied directly to Macro Calculator. Use the explanation, formula, examples, and benchmarks to pressure-test the calculator output from first principles.

Browse all 70 resources

Continue With Related Tools

Browse by Use Case

General fitness estimates — not medical advice. Consult a healthcare professional for medical decisions.