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
Grams per macro and implied calories
| Macro | Ratio | Target kcal | Grams per day | Implied kcal |
|---|
Per-meal split
| Meal | Protein (g) | Carbs (g) | Fat (g) | Calories (kcal) |
|---|
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.