AI Macro Calculator

Let EvoFit calculate a client's daily calorie and macro targets automatically from their induction data.

trainer guide/clients/[id]
What this is for: Stop guessing macro splits — auto-compute targets from the client's body stats, activity, and goal.

EvoFit can calculate a client's daily calorie and macro targets for you using the Mifflin-St Jeor formula. If the client completed their induction, you have everything the formula needs.

Tier note: The AI macro calculator is a Professional+ feature. Starter and Free trainers can set targets manually instead.

When to use this

  • A new client completed their induction and you want their first macro target set quickly.
  • You want to adjust a client's macros after a significant weight change or goal shift.
  • A client asks "how many calories should I eat?" and you want a formula-driven starting point.

How it works

The calculator reads these fields from the client's induction record:

InputWhere it comes from
AgeDate of birth in their profile
SexSet during induction
Height and weightMost recent measurements
Activity levelInduction activity question
GoalActive goal (fat loss / maintenance / muscle gain)

It computes BMR via Mifflin-St Jeor, multiplies by the activity factor to get TDEE, then applies a goal delta (fat loss -20%, maintenance 0%, muscle gain +10%). Default macro split: protein 35%, carbs 40%, fat 25%.

Step-by-step

  1. Open the client at /clients/[clientId].
  2. Click the Nutrition tab.
  3. At the top, the MacroTarget card shows a mode toggle: Automatic (AI) or Manual.
  4. Select Automatic (AI). If any formula input is missing, a tooltip lists what's needed (e.g. "Complete client's induction to enable auto").
  5. The calculated calories and P/C/F appear. Calories are computed from the macros — you don't type calories directly.
  6. To change the macro split, adjust the percentage sliders. Calories update live.
  7. Click Save.

Manual overrides

Switch to Manual at any time to type your own numbers. The mode records as manual so you know you departed from the formula.

If you stay in Automatic but change one of the individual macro values, the mode becomes auto_overridden — a flag that shows you've edited a formula-generated target. The original formula inputs are saved as a snapshot for your reference.

Recalculating

Click Recalculate from latest measurements to re-run the formula with the client's newest weight and height. This button is always explicit — targets don't change automatically when measurements update.

History view

Every time a target is saved, a history row is recorded. Click View history next to the MacroTarget card to see past targets with timestamps and the formula inputs that produced each one.

Common pitfalls

Where to find this

  • Page: /clients/[clientId] → Nutrition tab → MacroTarget card.
  • API: POST /api/clients/[id]/macro-target/calculate (calculate only), PATCH /api/clients/[id]/macro-target (save).

Related

Was this article helpful?