This macro calculator turns a calorie number into a daily plan of grams. Enter your maintenance calories, pick a goal (lose fat, maintain or build muscle) and a split, and you get your calorie target and how many grams of protein, carbohydrates and fat to aim for. Counting macros is a flexible way to eat for a goal, and the splits here are common starting points rather than medical prescriptions.
Formula
Target = calories x 0.8 (lose), x 1 (maintain) or x 1.1 (gain). Protein g = target x protein% / 4. Carbs g = target x carbs% / 4. Fat g = target x fat% / 9.
How it works
Enter your maintenance calories (from the TDEE calculator, for example) and choose a goal: the calculator takes 20% off for fat loss or adds 10% for muscle gain. It then splits the target between the three macronutrients by percentage and converts each share to grams using the Atwater factors: 4 kcal per gram of protein and carbohydrate and 9 kcal per gram of fat. The splits are common starting templates, not prescriptions; a dietitian can adjust them to your health and training.
How to calculate your macros step by step
First you need your maintenance calories, the energy you burn per day. If you do not know it, estimate it with the TDEE calculator. Then adjust for your goal: the calculator multiplies maintenance by 0.8 for fat loss (a 20% deficit), by 1 to maintain and by 1.1 for muscle gain (a 10% surplus).
Next, split the target between the three macronutrients by percentage and convert to grams with the Atwater factors: protein and carbohydrates provide 4 kcal per gram and fat 9 kcal per gram. So with a 30/40/30 split, protein grams = target x 0.30 / 4, carb grams = target x 0.40 / 4 and fat grams = target x 0.30 / 9.
Worked example: 2,500 kcal maintenance, fat loss, balanced split
With 2,500 kcal maintenance and a fat-loss goal, the target is 2,500 x 0.8 = 2,000 kcal. A balanced 30/40/30 split gives 600 kcal of protein (150 g), 800 kcal of carbohydrates (200 g) and 600 kcal of fat (67 g). For an 80 kg person, 150 g of protein is about 1.9 g per kg, inside the range sports nutrition groups suggest when dieting.
The same person building muscle with a high-carb endurance split (20/55/25) would eat 2,750 kcal: 138 g of protein, 378 g of carbohydrates and 76 g of fat. Small rounding differences of a gram or two are normal and do not matter in practice.
Choosing a split: what the guidelines say
The US National Academies set Acceptable Macronutrient Distribution Ranges (AMDR) for adults of 10% to 35% of calories from protein, 45% to 65% from carbohydrates and 20% to 35% from fat. The balanced and high-carb presets sit close to those ranges; low-carb and keto deliberately go outside them and are better discussed with a professional, especially if you have diabetes, kidney disease or take medication.
For protein, think in grams per kilogram too. The RDA for adults is 0.8 g/kg, while the International Society of Sports Nutrition (ISSN) suggests about 1.4 to 2.0 g/kg for people who train. A high-protein split on a high calorie target can overshoot that, so check the gram number against your weight and adjust the split if needed.
Tips and common mistakes when counting macros
Hit protein first and treat carbs and fat as flexible: if one day is higher in fat and lower in carbs at the same calories, the effect on body composition is small. Weigh food raw when possible, because the label values refer to raw weight, and remember that cooking oil and sauces count toward fat.
Do not set the deficit too aggressive. Recalculate when your weight changes by 4 to 5 kg, since your maintenance calories move with it. For the resting part of your energy use, see the BMR calculator, and for a full calorie overview, the calorie calculator.
Frequently Asked Questions
- Where do I get my maintenance calories?
- From a TDEE estimate based on your BMR and activity level, or better, from the average calories you ate during 2 to 3 weeks in which your weight stayed stable.
- What is the best macro split for weight loss?
- The best split is one you can stick to with enough protein. A balanced or high-protein split (30% to 40% protein) helps keep muscle and control hunger, but total calories drive weight loss.
- How many grams of protein do I need a day?
- At least 0.8 g per kg of body weight for adults (RDA), and about 1.4 to 2.0 g/kg if you train regularly, according to the ISSN. For 70 kg that is roughly 98 to 140 g.
- How many calories are in a gram of protein, carbs and fat?
- Protein and carbohydrates have about 4 kcal per gram and fat about 9 kcal per gram. Alcohol, which is not a macro here, has about 7 kcal per gram.
- Do fiber grams count as carbs?
- On US labels fiber is included in total carbohydrates. In Brazil and Europe it is usually listed separately. Be consistent with whichever system your tracking app uses.