Gloss Tools

Macro Split Calculator

Turn a daily calorie target you already have into grams of protein, carbohydrates and fat for a chosen diet ratio. After grams are rounded to whole numbers, the largest macro absorbs the rounding drift by a fixed rule and any remaining difference is shown; you can also split the day's grams across 1–6 meals. This tool does not estimate calorie needs — you enter the target.

Daily calorie target and diet preset

800–10,000 kcal, a whole number. The target comes from you, your coach, or your dietitian; this tool does not estimate needs.

Diet preset

Ratios are the calorie percentages of protein / carbs / fat. The three percentage fields in the next section are read only when you choose Custom.

Custom percentages and per-meal split

Custom percentages (%)

Read only when the preset is Custom; the three must add up to exactly 100. With any named preset these fields are ignored completely.

Leave empty for no split; enter 1–6 to divide the adjusted daily grams across meals, with leftover grams going to the earlier meals.

Nothing calculated yet. Enter values or load the example.

How it is calculated

The conversion factors are fixed at 4 kcal/g for protein, 4 kcal/g for carbohydrate and 9 kcal/g for fat. Each macro's exact grams (target × percentage ÷ factor) are rounded half-up to whole grams. The difference between the implied calories of those whole grams and the target (the residual) is absorbed by the macro with the largest calorie share: the residual divided by that macro's factor, rounded half-up to whole grams; ties go in protein, carbs, fat order. If that adjustment is zero grams, nothing is adjusted and the remaining difference is shown as the implied difference.

The "Target kcal" column shows each macro's exact calories rounded for display only; it does not feed the gram calculation, and the three displayed values are not guaranteed to add up to the target. The per-meal split uses the adjusted daily grams, divided independently per macro, and each meal's grams always add back up to the daily grams. The downloadable report is a fixed-format JSON file with the same result as on screen.

This tool uses the general nutrition conversion of 4 kcal per gram of protein and carbohydrate and 9 kcal per gram of fat. Results are general dietary-planning information only, not medical or nutrition advice; consult a physician or dietitian if you have a medical condition, are pregnant, or have special dietary needs.

Frequently asked questions

Why doesn't the implied total match the target exactly?
Grams are whole numbers; the largest macro absorbs the rounding drift by a fixed rule and any remaining difference is shown.
Where does the calorie target come from?
You enter it; this tool does not estimate calorie needs.

All calculations run locally in this page; your input is never uploaded, stored, or logged.