Macro calculator

Convert your calorie target and protein/fat percentages to grams; the remaining calories go to carbohydrate.

On your device · No account
Privacy details

Macro calculator processes your input in this browser. Inputs and results are excluded from analytics. Recent tools save tool names, visit counts and last-visit times. Saved tools store only their names. Draft saving is optional and stays on this device; delete saved text with the draft controls. Loading text from a URL is optional and contacts that server; its URL and your IP address are visible to the server. An optional “Use in” action keeps a handoff in this tab. The next tool removes it on arrival and ignores it if more than a minute has passed.

Copy link includes the inputs you choose to share in the address. Anyone with that link can reopen them. Files and generated results are excluded. Password and key tools share settings only.

More inputs and assumptions

Answer

…

Convert your calorie target and protein/fat percentages to grams; the remaining calories go to carbohydrate.

More results
Precision and calculation record

Rounding changes displayed numbers, not the calculation. Text, fractions, matrices and CSV schedules keep their own formatting. Automatic keeps up to 12 significant digits, with money shown to cents where applicable.

Saved scenario

Save the current answer, then change an input to compare. This clears when you leave.

Formula and assumptions

This converts an allocation you supply. The example percentages are illustrative, not a recommended diet. Protein and carbohydrate use 4 kcal/g and fat uses 9 kcal/g. Alcohol, fiber and food-specific energy factors are excluded. Individual needs and medical diets require individualized advice.

Automatic precision shows numbers to 12 significant digits. Thousands separators such as 1,000 are accepted; use a dot for decimals.

Scratch calculator

Use +, −, ×, ÷, parentheses and %. A percentage is divided by 100. This does not change the main tool.

Reset reloads the tool with its starting values and releases open files and device controls. Saved drafts stay on this device until you delete them.

Links include your inputs and settings. Anyone with the link can see them, so leave out private text. Files and generated results are left out; random draws run again.

Keyboard shortcuts

Updated

Using Macro calculator

Convert your calorie target and protein/fat percentages to grams; the remaining calories go to carbohydrate.

This converts an allocation you supply. The example percentages are illustrative, not a recommended diet. Protein and carbohydrate use 4 kcal/g and fat uses 9 kcal/g. Alcohol, fiber and food-specific energy factors are excluded. Individual needs and medical diets require individualized advice.

Next: Calorie calculator

Next: Protein calculator

A worked example

For daily calories you have chosen (kcal) = 2000, protein share of calories (%) = 25, fat share of calories (%) = 30, carbohydrate (g) = 225.

Before you use the result

This converts an allocation you supply. The example percentages are illustrative, not a recommended diet. Protein and carbohydrate use 4 kcal/g and fat uses 9 kcal/g. Alcohol, fiber and food-specific energy factors are excluded. Individual needs and medical diets require individualized advice.

Example results for daily calories you have chosen (kcal)

These examples use Protein share of calories (%): 25; Fat share of calories (%): 30. They are reference calculations, not recommended settings.

Daily calories you have chosen (kcal)Carbohydrate (g)
1000112.5
2000225
4000450
Cite this page

ToolOctopus. “Macro calculator.” Updated 2026-09-29. https://tooloctopus.com/macro-calculator.

Add an access date if your instructions require one.

Citation formatting uses citeproc-js by Frank Bennett and Citation Style Language styles. Licence and source code.

Find a tool

Search by task. Use ↓ and ↑ to choose, Enter to open.