How to Calculate Your Macros for Any Goal

Health June 18, 2026

A step-by-step guide on how to calculate your macros, choose a macro split for fat loss or muscle gain, and use IIFYM flexible dieting.

Counting calories tells you how much you are eating, but counting macros tells you what you are eating, and that distinction is often the difference between simply losing weight and actually changing your body composition. "Macros" is shorthand for macronutrients, the three nutrients your body needs in large amounts: protein, carbohydrates, and fat. Each supplies energy, but each also plays a unique role in building muscle, fuelling workouts, and keeping your hormones and brain functioning. Learning how to calculate macros gives you a flexible, evidence-based framework for almost any goal, whether you want to lose fat, build muscle, or simply eat with more intention.

This guide walks through the full process: working out your calorie target, splitting those calories into a sensible macro split, and adjusting the ratio for your goal. You can run the whole calculation automatically with our macro calculator, but understanding the logic behind it will help you adjust intelligently as you progress.

What are macronutrients?

The three macronutrients each carry a fixed amount of energy per gram, which is the foundation of all macro maths:

Because protein and carbs carry 4 calories per gram and fat carries 9, the same gram count of fat contributes more than double the energy. Keeping these numbers in mind makes it easy to convert between grams and calories in either direction.

What is IIFYM?

IIFYM stands for "If It Fits Your Macros," a flexible dieting approach that focuses on hitting daily protein, carbohydrate, and fat targets rather than banning specific foods. The premise is that body composition is driven primarily by total calories and macronutrient balance, so as long as a food fits within your daily macro budget, it can be part of your plan. IIFYM offers freedom and sustainability, but it works best when most of your intake still comes from nutrient-dense whole foods, with treats fitted in around them rather than dominating the budget.

Step 1: Calculate your calorie needs

Macros are simply a way of dividing up a calorie total, so you must first establish that total. It starts with your Basal Metabolic Rate (BMR), the energy your body burns at complete rest. The widely used Mifflin-St Jeor equation calculates BMR from your weight, height, age, and sex.

You then multiply BMR by an activity factor to get your Total Daily Energy Expenditure (TDEE), the calories you burn in a typical day including movement and exercise:

Activity levelDescriptionMultiplier
SedentaryLittle or no exercise, desk jobBMR Γ— 1.2
Lightly activeLight exercise 1-3 days/weekBMR Γ— 1.375
Moderately activeModerate exercise 3-5 days/weekBMR Γ— 1.55
Very activeHard exercise 6-7 days/weekBMR Γ— 1.725
Extra activePhysical job or twice-daily trainingBMR Γ— 1.9

Step 2: Adjust calories for your goal

Your TDEE is your maintenance level, the intake that keeps your weight stable. From there you create a surplus or deficit depending on your goal:

Aggressive deficits or surpluses tend to backfire by costing you muscle or adding unwanted fat, so moderate adjustments usually win over the long term.

Step 3: Set your macro split

With a calorie target in hand, you divide it among the three macros. A reliable, evidence-based way to do this is to set protein first, then fat, and let carbohydrates fill the remainder.

Protein: Most research supports 1.6 to 2.2 grams of protein per kilogram of body weight (about 0.7 to 1.0 grams per pound) for people who train, with the higher end useful during a fat-loss phase to protect muscle. Fat: Aim for at least 0.5 to 1.0 grams per kilogram, or roughly 20-35% of total calories, to support hormone health. Carbohydrates: Whatever calories remain after protein and fat are assigned to carbs, fuelling your training and daily energy.

The classic "balanced" starting ratio many people use is 40% carbs, 30% protein, 30% fat, but the right protein carbs fat ratio depends heavily on your goal and preferences. The table below shows typical starting splits.

GoalProteinCarbsFat
Balanced / maintenance30%40%30%
Fat loss (higher protein)40%30%30%
Muscle gain (higher carb)30%50%20%
Low carb35%20%45%

A worked example

Suppose your TDEE is 2,400 calories and your goal is fat loss, so you target a 20% deficit, giving 1,920 calories per day. You decide on a 40/30/30 protein/carb/fat split:

Notice how converting from calories to grams uses the per-gram energy values: divide protein and carb calories by 4, and fat calories by 9. Doing this by hand for every adjustment is tedious, so the macronutrient calculator performs all of these steps, from BMR to final gram targets, the moment you enter your details and pick a goal.

How to hit your macros in practice

Numbers on paper only help if you can translate them into meals. A few practical habits make macro tracking sustainable:

Adjusting your macros over time

Your first set of macros is a starting estimate, not a permanent prescription. Track your progress for two to three weeks, then adjust. If you are losing weight too quickly and feeling drained, add some carbs back. If fat loss has stalled for several weeks, trim 100-200 calories, usually from carbs or fat while keeping protein high. As your weight changes, your TDEE shifts too, so periodic recalculation keeps your targets accurate. The process is a feedback loop: set, track, assess, adjust, repeat.

A note on individual needs

Macro calculators provide excellent estimates, but they cannot account for everything. Medical conditions, medications, pregnancy, a history of disordered eating, or specific athletic demands can all change what is appropriate for you. If any of these apply, or if you are unsure how to structure your nutrition safely, please consult a doctor or registered dietitian before making significant dietary changes. Used sensibly, macro tracking is a powerful tool; used rigidly, it can become stressful, so keep the bigger picture of health and sustainability in view.

Ready to get your personalised targets? Enter your stats and goal into the IIFYM macro calculator and start with numbers tailored to you.

Macros for different diet styles

The "right" macro split is not a single universal number. It shifts depending on the dietary framework you choose, your training style, and your personal tolerance for carbohydrates and fats. Below are the most common approaches people search for, and how the protein, carbohydrate, and fat percentages typically change for each.

A balanced split usually lands around 30% protein, 40% carbohydrate, and 30% fat. From there, you can dial things up or down. A higher-carb endurance athlete might push carbohydrates to 55-60%, while someone following a ketogenic approach drops carbohydrates to roughly 5-10% and lets fat dominate. The table below gives you a quick starting point before you fine-tune using a macro calculator.

Diet styleProteinCarbohydrateFatBest suited to
Balanced / general health30%40%30%Most people, sustainable maintenance
Higher-protein (cutting)40%30%30%Fat loss while preserving muscle
Low-carb35%20%45%Appetite control, insulin sensitivity
Ketogenic25%5%70%Therapeutic and dedicated keto users
Endurance / high-carb20%60%20%Distance runners, cyclists, triathletes
Lean bulk30%45%25%Muscle gain with minimal fat

Notice that protein stays fairly stable across most of these. That is intentional. Protein has the strongest evidence behind it for body composition, satiety, and recovery, so it usually anchors the plan while carbohydrate and fat flex around your energy needs and preferences.

Counting macros in grams instead of percentages

Percentages are useful for setting a target, but your kitchen scale and food labels speak in grams. Converting is simple once you remember the calorie value of each macronutrient: protein and carbohydrate each provide 4 calories per gram, while fat provides 9 calories per gram. Alcohol, for the record, sits at 7 calories per gram, which is why it can quietly derail a plan.

Suppose your daily target is 2,000 calories on a 30/40/30 split. Protein is 30% of 2,000, which is 600 calories. Divide by 4 and you get 150 grams of protein. Carbohydrate is 40% of 2,000, or 800 calories; divide by 4 for 200 grams. Fat is 30% of 2,000, or 600 calories; divide by 9 for roughly 67 grams. Always sanity-check that the grams multiply back to your calorie total, because rounding can introduce a 20-30 calorie gap.

A common beginner mistake is to set protein and carbohydrate first, then forget that fat is calorie-dense. Two tablespoons of olive oil quietly adds about 28 grams of fat and 250 calories. If your fat target is only 67 grams, that single cooking step uses nearly half of it. Weighing fats early in the day prevents nasty surprises at dinner.

Protein quality and timing

Not all protein grams are equal in practice. Animal sources such as eggs, dairy, poultry, fish, and lean red meat are "complete," meaning they contain all nine essential amino acids in useful proportions. Plant sources are often lower in one or more essential amino acids, so vegetarians and vegans benefit from combining sources across the day, for example legumes with grains, or adding a soy or pea protein supplement.

Distribution matters too. Research on muscle protein synthesis suggests spreading protein across three to four meals of roughly 0.4 grams per kilogram of bodyweight each is more effective than loading it all into one evening meal. For an 80 kg person that is around 30-35 grams per meal. You do not need to be obsessive about timing, but a protein-light breakfast followed by a huge dinner is a pattern worth correcting if muscle retention is your goal.

Tracking accuracy: where people go wrong

Most plateaus blamed on metabolism are actually tracking errors. Studies repeatedly show that people underestimate their intake by 20-40%, often without realising it. The fixes are unglamorous but reliable.

First, weigh foods in grams rather than using cups or "eyeballing." A heaped versus level cup of rice can differ by 50%. Second, log oils, sauces, and dressings; these calorie-dense extras are the most commonly forgotten. Third, weigh meat in its raw state where possible, because cooking changes weight as water is lost. A label saying 165 calories per 100 grams of chicken usually refers to the raw weight, and 100 grams of cooked chicken may have started as 130-140 grams raw.

Tracking habitHidden errorBetter practice
Using cups/spoonsUp to 50% varianceWeigh in grams on a digital scale
Skipping cooking oil100-300 extra calories/dayLog oil before it hits the pan
Cooked vs raw confusion20-30% off on meatWeigh raw, or use cooked-specific entries
Guessing restaurant mealsOften double the estimatePick conservative database entries
Forgetting drinksLattes, juice, alcohol add upLog every liquid calorie

Fibre, micronutrients, and the limits of macros

Hitting your macros perfectly while eating only protein shakes, white bread, and butter would technically satisfy the numbers but leave you deficient in fibre, vitamins, and minerals. Macros are a framework for energy and body composition, not a complete nutrition plan. Aim for 25-38 grams of fibre per day, mostly from vegetables, fruit, legumes, and whole grains. Fibre slows digestion, improves satiety, and supports gut health, none of which shows up directly on a macro tracker.

Think of it as macros first, food quality second, and the two together producing a diet you can actually sustain. A useful rule is the "80/20" approach: aim to get roughly 80% of your intake from whole, minimally processed foods, and leave 20% of flexibility for treats that still fit your numbers. This is the practical heart of flexible dieting, and it is far easier to maintain than an all-or-nothing approach.

UK and US measurement and labelling differences

If you split your shopping between UK and US sources, the labels can trip you up. US nutrition labels show calories per serving and use ounces and cups, while UK and EU labels show energy in both kilojoules and kilocalories and list values per 100 grams as standard. Per-100-gram labelling is actually a gift for macro counters because it removes the guesswork around serving sizes.

For consistency, pick one unit, ideally grams, and stick to it across every food you log. Mixing ounces, cups, and grams in the same day is where most counting errors creep in.

Adapting macros for special situations

Standard splits assume a healthy adult with no major medical considerations. Several situations call for adjustments. During pregnancy and breastfeeding, calorie and protein needs rise, and you should work with a healthcare provider rather than self-prescribe a deficit. Older adults often benefit from protein at the higher end, around 1.2-1.6 grams per kilogram, to counter age-related muscle loss. People managing blood sugar may distribute carbohydrates more evenly and favour lower-glycaemic sources.

Vegetarians and vegans can hit any macro target, but reaching high protein on a plant-based diet takes planning around tofu, tempeh, seitan, legumes, and protein supplements. Athletes in weight-class sports may cycle carbohydrates, eating more on heavy training days and less on rest days, while keeping protein constant. The principle throughout is that the calculator gives you a starting point, and real life supplies the adjustments. Recheck your numbers every few weeks against the scale, the mirror, and your energy levels, then nudge as needed.

Carb cycling and refeeds

Once you are comfortable hitting a steady daily target, you might explore more advanced structures. Carb cycling means varying your carbohydrate intake day to day rather than eating the same amount every day. The logic is to put more carbohydrate where it does the most good, around hard training, and pull it back on rest days when you need less fuel. Protein typically stays fixed, and fat moves inversely to carbohydrate to keep total calories roughly on target across the week.

A simple template for someone training four days a week might pair higher-carb days with the toughest sessions and lower-carb days with rest. The weekly average still has to match the calorie goal that drives fat loss or gain, so cycling is a redistribution rather than a free pass. Refeeds are a related idea: a deliberate single day at maintenance calories, mostly from extra carbohydrate, during a long diet. Beyond the physical effect of topping up muscle glycogen, refeeds offer a psychological break that helps many people stick with a deficit for longer.

Day typeCarb levelFat levelWhen to use
High-carbHighestLowestHard training / long sessions
Moderate-carbMiddleMiddleLighter training days
Low-carbLowestHighestRest days
RefeedVery highLowPeriodic break in a long diet

Carb cycling is not magic; the total weekly energy balance still decides the outcome. But for experienced dieters it can make training feel better and dieting feel more sustainable, which indirectly improves results because adherence is the real driver of success.

Reading your body's feedback signals

Numbers on a tracker are only half of the picture. Your body provides constant feedback about whether your macros are working, and learning to read it keeps you from chasing the scale alone. Persistent low energy, poor gym performance, disrupted sleep, constant hunger, or a stalled-out mood often signal that calories are too low or that one macronutrient is being neglected, frequently fat, which is essential for hormone production.

Conversely, steady energy, good strength in training, reasonable hunger, and stable mood usually mean your split is in a sustainable place. The scale is a noisy daily signal because water weight shifts with sodium, carbohydrate intake, stress, and the menstrual cycle, so judge trends across two to three weeks rather than reacting to a single high morning. Take progress photos, track waist measurements, and note your training numbers. When several of these signals line up, you have far better information than the scale alone could ever give you, and you can adjust your macros with confidence rather than guesswork.

Frequently asked questions

How do I calculate my macros?

First calculate your TDEE (maintenance calories), then adjust it for your goal by creating a deficit or surplus. Next set protein based on body weight, set fat at roughly 20-35% of calories, and assign the remaining calories to carbohydrates. Finally convert each macro's calories to grams using 4 calories per gram for protein and carbs and 9 for fat.

What is the best macro split for fat loss?

A higher-protein split such as 40% protein, 30% carbs, 30% fat works well for fat loss because protein preserves muscle and keeps you full in a calorie deficit. There is no single perfect ratio, though; the most important factors are an appropriate calorie deficit and adequate protein.

What does IIFYM mean?

IIFYM stands for "If It Fits Your Macros," a flexible approach that focuses on hitting daily macronutrient targets rather than forbidding specific foods. It allows variety and sustainability, but works best when most of your intake comes from nutritious whole foods.

How much protein do I need?

For people who train, research generally supports 1.6 to 2.2 grams of protein per kilogram of body weight (roughly 0.7 to 1.0 grams per pound). The higher end is useful during fat loss to protect muscle. Spreading intake across several meals improves muscle maintenance.

Do I need to count macros to lose weight?

No. A calorie deficit alone will cause weight loss. However, counting macros, especially protein, helps ensure that more of the lost weight is fat rather than muscle and improves how you feel and perform, so it leads to better body composition results than calorie counting alone.

How often should I recalculate my macros?

Recalculate every few weeks or whenever your weight changes by a few kilograms, since your calorie needs shift as your body changes. Treat your macros as a feedback loop: track results for two to three weeks, then adjust based on whether you are progressing toward your goal.

Have a question, a correction, or a calculator request? Contact our editorial team — we usually reply within a day.