onlinecalculator.me

How to calculate your macros in 3 simple steps

Learn the exact math behind setting up a proper macro split. By anchoring your protein to your body weight, setting a healthy baseline for fat, and filling the rest with carbs, you can optimize your diet for fat loss or muscle growth.

Jul 11, 2026 5 min read

A person in a kitchen using a food scale to weigh chicken, avocado, and rice on the counter.

Macronutrients—protein, carbohydrates, and fat—make up all the calories you eat in a day. While your total calorie intake decides if your weight moves up or down, your macronutrient breakdown decides your body composition. Getting this balance right means that if you lose weight, you lose fat instead of muscle. If you gain weight, you build muscle instead of just storing fat.

Calculating these targets is just a sequence of three basic math steps. Think of it as a budgeting exercise. You start with your total daily calorie goal, spend a specific amount on protein based on your body weight, set aside a baseline percentage for fat, and spend whatever calories are left on carbohydrates.

Here is the exact math behind setting up a proper macro split.

The Calorie Exchange Rate

Before setting up your targets, you need to know the exchange rate between grams of food and calories of energy. Your body extracts a highly predictable amount of energy from each macronutrient. Protein provides 4 calories per gram. Carbohydrates also provide 4 calories per gram. Fat is much denser, carrying 9 calories per gram.

You also need a starting daily calorie target. You can find your maintenance calories using a TDEE calculator (Total Daily Energy Expenditure, which estimates how many calories you burn in a day), and adjust that number up or down. Eat less to cut body fat, or eat more to bulk up and build muscle. Once you have a calorie target and your current body weight, you are ready to do the math.

Step 1: Anchor Your Protein

Protein is the raw material your body uses to build and repair tissue. It is the only macronutrient calculated using your actual physical body weight rather than a percentage of your diet.

The goal is to eat enough protein to keep your existing muscle mass or build new muscle. Following the guidelines of the International Society of Sports Nutrition (ISSN), protein targets scale based on your current goal.

If you want to maintain your current weight, multiply your body weight in pounds by 0.8.

If you are eating in a calorie deficit to lose fat (cutting), your body might try to break down muscle tissue for energy. To prevent this, multiply your body weight in pounds by 1.0.

If you are eating in a calorie surplus to grow (bulking), your body needs extra raw material to synthesize new tissue. Multiply your body weight in pounds by 1.0 as well.

Once you have your target in grams, multiply it by 4 to see how many calories of your daily budget are now “spent” on protein.

Step 2: Set Your Dietary Fat

Dietary fat comes next. Fat is essential for hormone regulation, brain function, and absorbing fat-soluble vitamins like A, D, E, and K. Because it is vital for baseline health, fat is calculated as a fixed percentage of your total daily calories.

Standard macro formulas assign 25 percent of your total calories to fat. This sits at the lower bound of the Acceptable Macronutrient Distribution Range (AMDR) for fat. Keeping it at a healthy minimum ensures your hormonal systems run smoothly while deliberately leaving as much room as possible in your calorie budget for carbohydrates.

To find your fat target, multiply your total daily calories by 0.25. This gives you your fat calories. Because fat contains 9 calories per gram, divide that number by 9 to get your daily target in grams.

Step 3: Fill the Rest with Carbohydrates

Carbohydrates are your body’s preferred and most efficient fuel source, especially for high-intensity exercise and weightlifting. Once your essential requirements for protein (tissue repair) and fat (hormone function) are met, every remaining calorie in your budget goes toward carbs.

This is known as the remainder method. To find your carbohydrate allowance, take your total daily calorie goal and subtract the calories you already spent on protein and fat.

The number you are left with is your carbohydrate calorie budget. Since carbohydrates contain 4 calories per gram, just divide that remaining number by 4. That gives you your carb target in grams.

Summary of the Macro Formula

MacroMethod
Protein0.8g/lb (maintain) or 1.0g/lb (cut or bulk)
Fat25% of total calories ÷ 9
CarbsRemaining calories ÷ 4

Why Not Just Use Percentages?

You might see generic diets recommending a strict percentage split, like 30 percent protein, 30 percent fat, and 40 percent carbs. While that works for some people in the middle of the bell curve, it breaks down quickly at the extremes.

Say a 200-pound athlete is eating 4,000 calories a day to bulk up. A strict 30 percent protein target comes out to 300 grams. That is far more than their body can actually use for muscle synthesis, and it displaces valuable carbohydrates they need for hard training.

Conversely, if a 130-pound person is eating 1,200 calories to aggressively cut fat, 30 percent protein is only 90 grams. That might not be enough to prevent muscle loss during a severe deficit.

By tying protein directly to your physical weight, locking fat to a healthy baseline, and letting carbs scale to match your energy demands, this hybrid calculation method ensures your body gets exactly what it needs. Total calories aside, your baseline biological requirements are always covered.

A Complete Walkthrough Example

To see the math in action, let us calculate the macros for someone who weighs 154 pounds, wants to maintain their weight, and has a daily target of 2,000 calories.

1. Calculate Protein: Because the goal is maintenance, the multiplier is 0.8 grams per pound. 154 lbs × 0.8 = 123 grams of protein. Next, find the calories: 123 grams × 4 calories per gram = 492 calories.

2. Calculate Fat: Fat gets 25 percent of the 2,000-calorie budget. 2,000 × 0.25 = 500 calories. Next, find the grams: 500 calories ÷ 9 calories per gram = 56 grams of fat.

3. Calculate Carbohydrates: Start with 2,000 calories and subtract the 492 calories for protein and 500 calories for fat. 2,000 − 492 − 500 = 1,008 calories remaining. Next, find the grams: 1,008 calories ÷ 4 calories per gram = 252 grams of carbohydrates.

For a 154-pound person maintaining their weight on 2,000 calories, the final daily targets are 123g of protein, 56g of fat, and 252g of carbohydrates.

Find your exact daily targets without doing the math by hand using our Macro Calculator.

Why do I calculate protein based on body weight instead of a percentage?
Using a strict percentage for protein can lead to eating too much or too little depending on your total calorie intake. Tying protein directly to your physical weight ensures your body gets the exact amount of raw material it needs to maintain or build muscle. This method covers your biological requirements regardless of how many calories you eat.
How many calories are in each macronutrient?
Protein and carbohydrates both provide four calories per gram of food. Dietary fat is much denser and provides nine calories per gram. You need to know these exchange rates to convert your daily calorie budget into actual grams of food.
What is the remainder method for carbohydrates?
The remainder method involves spending your daily calorie budget on protein and fat first. Once those essential biological needs are met, every single calorie left over is assigned to carbohydrates. You then divide those leftover calories by four to find your daily carbohydrate target in grams.
Macro Calculator Open the calculator →

← All articles