← Back to blog
Nutrition

How to Calculate Macros: Grams, Calories, Percent

Convert grams to calories with 4-4-9-7, turn a percent split into grams, and check it against AMDR ranges, with worked examples and the exam traps.

"Calculate macros" sounds like a fitness-app task, but in a nutrition course it is three small pieces of arithmetic that show up on nearly every exam: grams to kilocalories, kilocalories to a percent of intake, and a percent target back to grams. All three use the same four numbers. This guide gives the method, worked examples you can recompute, and the mistakes that cost points.

It follows the energy and DRI chapters of Encodr's free Nutrition course. To check your answers as you go, use the macronutrient calculator, which shows each step.

The four numbers

The Atwater factors give the energy in a gram of each energy source:

Sourcekcal per gram
Carbohydrate4
Protein4
Fat9
Alcohol7

A nutrition "calorie" is a kilocalorie (kcal), and 1 kcal = 4.184 kJ. Vitamins and minerals yield no energy, and alcohol has the second-highest energy per gram, after fat. Fat's 9 kcal per gram is more than twice carbohydrate or protein, which is why a small amount of fat moves the totals so much.

Step 1: grams to kilocalories

Multiply each source by its factor and add:

kcal = 4 x g carbohydrate + 4 x g protein + 9 x g fat + 7 x g alcohol

A food has 50 g carbohydrate, 20 g protein and 10 g fat.

Alcohol works the same way at 7. Ten grams of alcohol is 70 kcal.

Step 2: kilocalories to percent of calories

Divide the nutrient's kilocalories by the total and multiply by 100.

In the example above, fat is 90 / 370 = 24.3% of calories. A common exam variant gives you the total and one nutrient: a food has 250 kcal and 10 g of fat. Fat is 10 x 9 = 90 kcal, so 90 / 250 = 36.0% of calories from fat.

The trap is dividing grams by grams. Percent of calories is always kilocalories over kilocalories. Fat grams carry more than twice the energy of carbohydrate or protein grams, so a share of grams is not a share of calories.

A related variant gives the total, two nutrients, and asks for the third. A serving has 250 kcal, 10 g fat and 35 g carbohydrate, and the rest of the energy is protein. Fat is 90 kcal and carbohydrate is 140 kcal, which leaves 20 kcal for protein, so protein is 20 / 4 = 5 g.

Step 3: a percent target to grams

When a question or a plan gives you a calorie level and a percent split, go the other way:

grams = kcal x percent / kcal per gram

At 2,000 kcal with a 50 / 20 / 30 split of carbohydrate, protein and fat:

Check by adding back: 250 x 4 + 100 x 4 + 66.7 x 9 comes to about 2,000 kcal. If your split does not add to 100%, the grams will not add back to your calorie target, so confirm the percentages first. The calculator warns you when they do not.

The classic error is dividing by 4 for fat. Carbohydrate and protein use 4; fat uses 9. Writing the divisor next to each line, as above, prevents it.

Step 4: check the split against the AMDR

The Acceptable Macronutrient Distribution Range (AMDR) is a percent-of-energy range for each macronutrient. As the course gives it:

GroupCarbohydrateProteinFat
Adults45-65%10-35%20-35%
Ages 4-1845-65%10-30%25-35%
Ages 1-345-65%5-20%30-40%

The 50 / 20 / 30 split above sits inside every adult range. The questions built on this table turn ranges into gram ranges:

The 2023 energy report did not change the AMDR ranges. The AMDR is also a range, not a requirement for each day: it describes a distribution, and it is separate from the RDA, which is a specific amount in grams.

Protein is a different calculation

Do not mix up the AMDR with the RDA. The adult protein RDA is 0.8 g per kg of body weight per day, so a 70 kg adult needs 70 x 0.8 = 56 g. That uses body weight, not a percent of calories, and it is a minimum to prevent deficiency rather than a goal.

The course's performance nutrition unit shows how much the number depends on the source. The ISSN 2017 position stand puts most exercising people at 1.4 to 2.0 g/kg per day, which is 98 to 140 g for the same 70 kg person. The Dietary Guidelines 2025-2030 goal for the general population is 1.2 to 1.6 g/kg per day, or 84 to 112 g. When a question names an edition or a source, answer with that source's number.

How to practice

These calculations are quick, which makes them good material for active recall. Cover your notes, write the factor next to each nutrient, and work a new set of numbers each time. Reading the table over and over trains recognition; doing the problem trains the skill the exam tests. The same applies to the BMR and TDEE calculation, which gives you the calorie level these splits start from.

For the rest of the course, what's in a nutrition course maps every unit and how to study for a nutrition class gives a study plan.

This is a study guide and the calculator is an educational tool, not dietary advice.

Free tool

Macronutrient Calculator

Grams to kilocalories with 4-4-9-7, or a percent split to grams, checked against AMDR.

Try it →

Encodr turns this into a habit: study anything in a feed, and it schedules the rest.

Get started free

Related posts

More on Nutrition

All Nutrition posts →