Macro Ratio Adjuster screenshot

Macro Ratio Adjuster

Convert a calorie total and three macro percentages into grams of protein, carbohydrate and fat.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Instant
No signup

Percentages into grams

Enter a daily calorie total and three percentages. The page converts each share with the Atwater factors: 4 kcal per gram of protein, 4 per gram of carbohydrate and 9 per gram of fat. Two thousand calories at 30, 40 and 30 becomes 150 g of protein, 200 g of carbohydrate and 66.7 g of fat.

The three percentages must add to exactly 100, and the page refuses a set that does not, naming how many points are short or over. It does not judge the split, does not know your training, and does not check the grams against any guideline. Fibre, alcohol and the difference between labelled and metabolisable calories are outside the model.

Every conversion runs in this tab from the four numbers you type. Nothing is uploaded, no plan is stored, and the same figures always print the same grams.

Grams of protein, carbohydrate and fat from a calorie total and three percentages, converted at the Atwater factors: 4 kcal per gram of protein, 4 per gram of carbohydrate and 9 per gram of fat. Two thousand kilocalories at 30/40/30 reads 150 g protein, 200 g carbohydrate and 66.7 g fat, and the page prints the factors it used. The three percentages must add to exactly 100, because a total of 105 would describe more energy than the calories typed while still looking plausible — the page refuses and names the difference rather than normalising silently. Each percentage must also sit inside 0–100 and the calorie total must be above zero.

Macro grams from calories × percentage ÷ 4 (protein, carbohydrate) or ÷ 9 (fat), with the percentages required to total exactly 100.

How to use it

Enter a daily calorie total and the protein, carbohydrate and fat percentages, then press Run. The output is one line of grams and one line of the arithmetic. If the three shares do not total 100, the page stops and tells you by how many points they are out, which is quicker than hunting for the typo.

The arithmetic

Each share of the calorie total is computed in kilocalories, then divided by that macronutrient's energy density: four for protein, four for carbohydrate, nine for fat. The Atwater factors are averages, so a mixed meal's real yield differs slightly. Nothing is rounded to whole grams before the total, so the printed grams still reconstruct the calorie figure.

Where it stops

Calories must be above zero, each percentage inside 0–100, and the three must total exactly 100. The page converts a split you choose; it does not recommend one, and it says nothing about food sources, timing or fibre. Alcohol and fibre are not among the three shares, so a diet containing either needs a different accounting.

What to Expect

Best for

  • Turning a calorie total and a macro split into grams.
  • Catching a split whose percentages do not add up.

What this tool keeps

  • Calories and percentages are used in the browser and never sent; a reload clears them.

Sample input

2000 kcal at 30/40/30

Sample output

Protein 150 g, carbs 200 g, fat 66.7 g 2000 kcal at 30/40/30; 4 kcal per gram of protein and carbohydrate, 9 per gram of fat.

Frequently asked questions

How do I use the macro ratio adjuster?

Enter your calorie total and the three percentages, then press Run. The page prints grams of protein, carbohydrate and fat, or refuses if the percentages do not total 100.

Is anything uploaded?

No. The division happens in this tab; no request is made, no account is involved, and nothing is stored.

What are its limits?

Calories must be above zero, each percentage must be within 0–100, and the three must add to exactly 100 — 105% is refused rather than rescaled. The Atwater factors are averages, alcohol and fibre are outside the three shares, and the page converts a split rather than recommending one.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.