Free Macro Calculator Online
Calculate your macro quickly and accurately. Visual results with health insights.
Ad space
Ad space
How to use the Macro Calculator
- 1
Open the Macro Calculator tool
- 2
Enter your data or upload your file
- 3
Adjust settings if needed
- 4
Get instant results
- 5
Download or copy your output
Frequently asked questions
Is the Macro Calculator free?
Yes, our macro calculator is 100% free with no limits, no signup, and no watermarks.
Do I need to create an account?
No. You can use the macro calculator without any registration. Just open it and start using it.
Is my data safe?
Yes. Any files you upload are automatically deleted after 5 minutes. We never store, share, or access your data.
Does this work on mobile?
Yes. The macro calculator is fully responsive and works on phones, tablets, and desktops.
Is there an API for this?
Yes. All our tools are available as API endpoints for developers. Check our API documentation for details.
Macro Calculator: Turn a Calorie Number Into Protein, Carb, and Fat Grams
Knowing a daily calorie target only answers part of the question — most eating plans, meal-prep spreadsheets, and food-tracking apps also want gram figures for protein, carbohydrate, and fat, because those three "macronutrients" are what actually make up food, and different eating styles balance them in very different proportions. This tool takes a calorie figure you already have — from this site's own calorie or maintenance calculators, from a coach, or from anywhere else — and splits it into grams using a percentage breakdown built around a handful of common dietary patterns, shown three at a time on this page (a custom split or a wider preset list is available through the tool's API). It does not calculate calories on its own; the calorie total is an input you supply, and the tool's entire job is dividing that number correctly.
The arithmetic underneath is simple once you know the two constants it relies on: protein and carbohydrate each provide about 4 calories per gram, while fat provides about 9. Every gram figure this calculator returns comes from taking a percentage share of the total calories and dividing by the appropriate one of those two numbers.
How the Split Gets Calculated
The browser version of this tool keeps the input side deliberately narrow:
- Enter a daily calorie target — this is the number the whole split is built from, and it should generally come from a maintenance or goal-adjusted calorie figure rather than an arbitrary guess.
- Submit that single number and three built-in splits appear side by side at once: Balanced (30% protein / 40% carbs / 30% fat), Low-Carb (35% protein / 25% carbs / 40% fat), and Keto (25% protein / 5% carbs / 70% fat, reflecting how little of a ketogenic diet's calories come from carbohydrate). There's no menu to pick just one on this page — all three run against the identical calorie figure for direct comparison.
- Grams for each macronutrient render immediately under every split: protein and carb grams come from dividing their calorie share by 4, and fat grams come from dividing its calorie share by 9.
- A fourth preset, High-Protein (40% protein / 30% carbs / 30% fat), along with the ability to submit a fully custom percentage split instead of a named pattern, is reachable through this tool's API rather than this page — send explicit percentages or any of the four goal names and the API returns just that one requested split.
Changing the calorie figure on this page recalculates all three gram breakdowns at once, so it's easy to see how the identical daily total is carved up differently depending on which dietary pattern you're weighing against another.
When People Reach for a Macro Split
- Following a specific diet style. Ketogenic, low-carb, and higher-protein approaches are all defined largely by their macronutrient ratios rather than by calories alone, so translating "keto" or "low-carb" into actual grams is a necessary first step before grocery shopping or meal planning.
- Meal-prep and tracking-app math. Most food-logging apps ask for gram targets, not percentages, so converting a percentage-based plan into grams is a routine but tedious calculation this tool automates.
- Adjusting composition without touching total calories. Shifting more calories toward protein and fewer toward carbohydrate, while keeping the total the same, is a common tweak during a training block — recalculating the split (rather than the calorie number) handles that directly.
- Comparing how different presets carve up the same total. Because this page runs Balanced, Low-Carb, and Keto against one calorie figure at the same time, it's a fast way to see how differently the same daily calories get allocated depending on the dietary approach — pull in the High-Protein split too through the API for a fourth comparison point.
The Presets and the Constants Behind Them
| Preset | Protein / Carbs / Fat | Typical use |
|---|---|---|
| Balanced (default) | 30% / 40% / 30% | A general, moderate starting split with no particular dietary restriction |
| Low-Carb | 35% / 25% / 40% | Reduced carbohydrate emphasis without going to a strict ketogenic extreme |
| High-Protein | 40% / 30% / 30% | Common during strength training or a cut, to help preserve lean mass |
| Keto | 25% / 5% / 70% | Very low carbohydrate, high fat — the defining ratio of a ketogenic approach |
Working through a 2,000-calorie target on the default Balanced split: 30% of 2,000 is 600 calories of protein, and 600 ÷ 4 gives 150 grams; 40% of 2,000 is 800 calories of carbohydrate, and 800 ÷ 4 gives 200 grams; the remaining 30%, or 600 calories, is fat, and 600 ÷ 9 gives roughly 66.7 grams. Those three numbers — 150g protein, 200g carbs, 66.7g fat — multiply back out to the original 2,000 calories (150×4 + 200×4 + 66.7×9 ≈ 2000), which is exactly what the tool checks internally before returning a result. Fat gets the 9-calorie-per-gram constant rather than 4 because fat is simply a more energy-dense macronutrient — a gram of fat packs more than double the calories of an equal gram of protein or carbohydrate, a difference rooted in the chemistry of how each is metabolized.
How Exact Are These Numbers, and Should They Guide Medical Decisions?
The 4/4/9 calories-per-gram figures are long-standing rounded averages (often called Atwater factors) used across nutrition science and food labeling — they're accurate enough for everyday planning but aren't exact for every single food, since the real energy value of a gram of protein, carb, or fat varies slightly depending on the specific food it comes from and how digestible it is. The percentage presets themselves (Balanced, Low-Carb, High-Protein, Keto) reflect commonly discussed dietary patterns in general nutrition guidance, not a personalized prescription calibrated to your health status, goals, or any medical condition.
Because of that, treat every gram figure here as an informational, educational estimate rather than medical or nutrition advice. This is especially true if you have diabetes, kidney disease, a history of disordered eating, or another condition where macronutrient balance has direct health implications — a registered dietitian or physician can tailor a split to your actual circumstances in a way a generic percentage preset cannot. This tool has no awareness of any of that context; it only knows the numbers you type in.
Reading a Split as a Diet Description, Not Just Numbers
The four presets exist because each one corresponds to a recognizable eating pattern that shows up constantly in general nutrition discussion, and mapping a name onto specific numbers is often the missing piece between hearing about an approach and actually planning meals around it. A Keto split's 5% carbohydrate share, for instance, is low enough that at almost any calorie total it leaves room for little beyond non-starchy vegetables and small amounts of other carb sources — seeing that as a gram figure (25 grams of carbs on a 2,000-calorie Keto split, for example) tends to land more concretely than the percentage alone. A High-Protein split's extra 10 percentage points of protein compared to Balanced, by contrast, is a much smaller shift, which is part of why moving toward a higher-protein pattern tends to be an easier adjustment for most people than adopting a strict low-carbohydrate approach. Seeing the gram numbers side by side for a couple of different presets, at the same calorie total, is often more informative than reading the percentages alone.
Common Missteps
- Assuming this page accepts a custom percentage split. The browser tool only ever runs its three built-in presets — a custom protein/carb/fat combination that sums to 100 is a capability of the API, which checks the sum and rejects anything off by more than half a percentage point.
- Reusing someone else's preset at a very different calorie total. A percentage split carries over fine across different calorie targets, but the resulting gram amounts scale with the total — a Keto split at 1,500 calories produces noticeably smaller numbers than the same split at 3,000.
- Forgetting to update the calorie input after a goal changes. Because this tool doesn't calculate calories itself, an outdated calorie figure left over from a previous goal will quietly produce outdated gram targets too.
- Treating fiber and alcohol as invisible. The standard protein/carb/fat split doesn't separately model fiber (which carries fewer usable calories than other carbohydrate) or alcohol (which has its own distinct calorie density) — for most everyday planning that's a minor simplification, but it's worth knowing it's there.
Alternatives to This Calculator
- Manual percentage math. With a calorie total and a chosen split in hand, multiplying by the percentage and dividing by 4 or 9 reproduces the same gram figures by hand, one macronutrient at a time.
- Food-tracking apps with built-in macro tools. Many nutrition-logging apps include a similar split calculator as part of a broader goal-setting flow, often bundled with food-database lookups for actually hitting the targets.
- A registered dietitian. For a macro plan tailored to a specific medical condition, training goal, or dietary restriction, a qualified professional can go well beyond a generic percentage preset.
- This calculator's API. For a meal-planning app or automated spreadsheet that needs gram targets computed programmatically, the same split logic is available as a metered API endpoint — send a calorie total plus either explicit percentages or a named goal, and get back protein, carb, and fat grams as JSON. Details are in the API documentation.
Where do I get the calorie number this tool asks for?
Any daily calorie target works, but it should reflect an actual goal — a maintenance figure from a TDEE-style calculation, or a goal-adjusted number from a calorie calculator that's already applied a deficit or surplus, both work well as the starting input here.
Why does fat use a different calories-per-gram number than protein and carbs?
Fat is chemically more energy-dense than protein or carbohydrate — metabolizing a gram of fat releases roughly double the energy of a gram of either of the other two, which is why fat uses 9 calories per gram in the math while protein and carbs both use 4.
Do my percentages have to add up to exactly 100?
Only if you're using the API's custom-percentage option — it accepts a combination within half a percentage point of 100 to allow for ordinary rounding, but rejects anything further off, since a split that doesn't sum to 100 can't be translated into a coherent set of grams against a single calorie total. The browser page's three built-in presets are always pre-balanced, so there's nothing to sum there.
Can I build a completely custom split instead of using a preset?
Not on this page — the browser version only ever runs its three built-in presets side by side. A fully custom percentage split, any protein/carb/fat combination summing to 100, is reachable through this tool's API instead of a named goal.
Will changing the calorie total change my percentage split too?
No — the three built-in percentage splits stay fixed; only the calorie total is adjustable on this page. Changing it keeps every ratio the same and simply scales all three splits' gram figures up or down together, since a percentage defines a ratio rather than an absolute amount.
Why does the browser page show three presets at once instead of letting me pick one?
Showing Balanced, Low-Carb, and Keto together against the same calorie total makes the comparison immediate — no resubmitting the form to see how a second or third dietary pattern would carve up the identical daily number. Anyone who wants a single named split, the High-Protein preset, or a fully custom percentage breakdown returned on its own can get that narrower result from the API instead.
Related Tools
A calorie total is the necessary starting point here, and the calorie calculator is the natural place to generate one, since it already produces maintain/lose/gain figures ready to drop straight into this split. If the protein number specifically is the main thing you're after, independent of the rest of the split, the protein intake calculator derives a grams-per-day figure directly from body weight instead. For the maintenance-level TDEE figure underneath any goal-based calorie target, see the TDEE calculator, and for a general weight-category reference alongside your macro planning, the BMI calculator is available as well.
Ad space
Related tools
Ad space