How to count macros: a beginner's guide

What macros are, the 4/4/9 rule, how to set targets in the right order, and how to track them without weighing every meal.

By the Cal.AI Team · Published · 5 min read

Short answer Macros are protein, carbohydrate and fat. Protein and carbohydrate give 4 kcal per gram and fat gives 9. To count them, set a calorie target, choose protein first (1.2 to 2.2 g per kg of body weight), set fat at 20 to 35% of calories, and fill the rest with carbohydrate. Then log and compare grams to targets.

What does counting macros mean?

Counting macros means tracking grams of protein, carbohydrate and fat instead of only tracking calories. The three macronutrients are where your calories come from, so the two methods are linked: protein and carbohydrate provide 4 kcal per gram and fat provides 9 kcal per gram. Alcohol adds 7 kcal per gram but is not a macro you plan around.

Calories decide whether you lose, hold or gain weight. Macros decide how you feel while doing it and what you keep: enough protein protects muscle and controls hunger, enough fat supports hormones and makes food taste good, and carbohydrate fuels training. Counting macros is calorie counting with better information.

Step 1: Set your calorie target

Macros are shares of a calorie budget, so the budget comes first. Estimate your total daily energy expenditure with the Mifflin-St Jeor equation and an activity multiplier, then subtract 10 to 25% to lose weight, add 5 to 15% to gain, or keep it as-is to maintain. For this guide we will use a target of 1,800 kcal for a 70 kg (154 lb) woman who wants to lose fat.

Step 2: Set protein first, in grams per kilogram

Protein is the macro with the strongest evidence behind a specific target, so it goes first. The RDA of 0.8 g per kg is a floor for sedentary adults. During weight loss or regular training, 1.2 to 1.6 g per kg works well; for muscle gain, benefits plateau around 1.6 g per kg with a range up to about 2.2.

Our example trains three times a week and is dieting, so she picks 1.6 g per kg: 1.6 × 70 kg = 112 g of protein. In calories that is 112 × 4 = 448 kcal, which is 448 ÷ 1,800 = 25% of her budget.

Step 3: Set fat, then let carbs fill the rest

Fat has a wide acceptable range: the National Academies' Acceptable Macronutrient Distribution Range puts it at 20 to 35% of calories for adults. Pick a point in that range based on taste. Lower fat leaves more room for carbs, which many people prefer when training; higher fat suits people who find it more filling. Our example picks 25%.

  1. Fat calories: 1,800 × 0.25 = 450 kcal
  2. Fat grams: 450 ÷ 9 = 50 g of fat
  3. Remaining calories for carbohydrate: 1,800 − 448 − 450 = 902 kcal
  4. Carbohydrate grams: 902 ÷ 4 = about 226 g of carbohydrate
MacroGrams per dayCaloriesShare of 1,800 kcalAcceptable range (National Academies)
Protein112 g448 kcal25%10 to 35%
Fat50 g450 kcal25%20 to 35%
Carbohydrate226 g902 kcal50%45 to 65%
Total1,800 kcal100%

All three land inside the National Academies' ranges, which the previous (2020–2025) edition of the Dietary Guidelines for Americans was designed to meet. That makes them a useful sanity check for any split you build. If protein came out above 35% or carbohydrate below 45%, nothing is wrong, but you would be running a less conventional plan and should expect to work harder at meal variety.

How to hit your macros without obsessing

Beginners often treat macro targets as three exact numbers to nail every day. That is not how they work. Treat protein as a minimum, calories as a ceiling, and let carbs and fat trade places by 10 to 20 g from one day to the next. Hitting protein within 10 g and calories within 100 kcal on most days is a good week.

A few habits make the targets easier to reach:

How to track macros with photos and barcodes

Tracking macros used to mean looking up three numbers per food and adding them by hand. You do not need to do that. In Cal.AI, scanning a plate returns each item with its calories, protein, carbs and fat and a meal total; if a portion looks off, Fix Results lets you adjust it and the totals recalculate. Packaged foods scan by barcode, which pulls the label values.

The home screen shows protein, carb and fat rings against the targets set during setup, so you can see at lunch whether dinner needs to be protein-heavy.

Barcode entries are only as good as the serving size you select, and photo estimates carry some error on dense foods like nuts and oils. For the honest version of what to expect, read how accurate AI calorie counting is. Weigh the few foods that drive most of the error, such as oils, nut butters and cheese, and estimate the rest.

Common mistakes

Track your macros with a photo in Cal.AI Cal.AI is free on iPhone, Apple Watch and Android. Snap a photo, scan a barcode or search any food, then fix anything the AI gets wrong.
Download on the App Store Get it on Google Play

Frequently asked questions

What is the best macro ratio for weight loss?

There is no single best ratio. Set protein by body weight at 1.2 to 1.6 g per kg, keep fat between 20 and 35% of calories, and give the rest to carbohydrate. On a moderate calorie target that often works out to roughly 25 to 35% protein, 25 to 30% fat and 40 to 50% carbohydrate, but the calorie deficit drives the loss, not the ratio.

Do I need to count macros or just calories?

Calories alone decide weight change, so you can lose weight tracking only calories. Counting protein as well is the single most useful upgrade because it protects muscle and keeps hunger down. Many people track calories and protein closely and let carbs and fat land wherever a balanced diet puts them.

Do vegetables and fruit count toward my macros?

Yes. Their carbohydrate, protein and fat count like any other food. A medium banana contributes roughly 27 g of carbohydrate by USDA data, and a cup of raw broccoli about 6 g. They are low in calories per gram, so they rarely break a budget, but they do add up over a day of large portions.

What happens if I go over on one macro?

Nothing dramatic, as long as total calories stay near target. Carbs and fat can trade places from day to day. The one to watch is protein on the low side, since missing it repeatedly costs muscle during a deficit. Treat protein as a minimum, calories as a ceiling, and judge the week rather than the day.

Sources

Related articles

Cal.AI TeamWe build Cal.AI, an AI calorie counter for iPhone, Apple Watch and Android. Every number in this article links to its source; see how we research and fact-check. This is general nutrition-tracking guidance, not medical advice.