GizmoBench guides
Macros Calculation Guide: From Calories to Grams

To calculate your macros, estimate your daily calories, set a protein target by body weight, set a fat target as a share of calories, and give the remaining calories to carbohydrate. Then convert each share to grams using 4 calories per gram for protein and carbohydrate and 9 for fat. The steps below use one worked example so you can follow the arithmetic and repeat it with your own numbers.
The result is an estimate, not a prescription. It gives you a starting point to test against real-world results over a few weeks.
TL;DR
- Estimate calories first: resting energy (BMR) times an activity factor, then reduce 15–25% for weight loss or add 5–15% for weight gain.
- Set protein and fat by body weight or calorie share, then fill the rest with carbohydrate.
- Convert to grams: protein and carbs are 4 kcal per gram, fat is 9 kcal per gram.
- Treat the first numbers as a hypothesis, track for 2–3 weeks, and adjust in small steps.
- Personal medical conditions call for a registered dietitian, not a formula.
Table of Contents
- What macros are and what each one does
- Step 1: Estimate your daily calories
- Step 2: Choose your protein, fat and carb targets
- Step 3: Convert percentages to grams
- A full worked example
- How the targets shift by goal
- Step 4: Track, compare and adjust
- Where macro calculators stop
- Use GizmoBench for the arithmetic
- FAQ
- Sources
What macros are and what each one does
Macronutrients are carbohydrates, protein and fat, the nutrients the body needs in relatively large amounts. According to MD Anderson Cancer Center, carbohydrates primarily fuel muscles and the central nervous system. Protein provides structure to tissues and takes part in metabolic, hormonal and enzyme systems. Fat serves as an energy reserve, provides insulation and organ protection, and helps absorb and transport fat-soluble vitamins.
The energy values are fixed, which is what makes the math work. The Merck Manual gives 4 calories per gram for carbohydrate and protein and 9 calories per gram for fat. Every conversion later in this guide rests on those three numbers.

Step 1: Estimate your daily calories
Macros are shares of a calorie budget, so the budget comes first. The usual route has two parts: estimate resting energy, then scale it for activity.
Resting energy with the Mifflin–St Jeor equation
Healthline’s step-by-step guide uses the Mifflin–St Jeor equation:
- Males: 10 × weight (kg) + 6.25 × height (cm) − 5 × age + 5
- Females: 10 × weight (kg) + 6.25 × height (cm) − 5 × age − 161
If you think in pounds and inches, convert first (1 kg is about 2.2046 lb, 1 inch is 2.54 cm). Our unit converter handles mass and length. For more worked examples of this equation and the others, see our BMR formula guide.
Scale for activity
Healthline multiplies resting expenditure by an activity factor to estimate total daily energy expenditure (TDEE):
| Activity level | Multiplier |
|---|---|
| Sedentary | 1.2 |
| Lightly active | 1.375 |
| Moderately active | 1.55 |
| Very active | 1.725 |
| Extra active | 1.9 |
People tend to rate themselves higher than their week really was, so if you sit between two levels, the lower one is the safer first guess. This is our practical reading, not a sourced rule, and tracking will correct it.
Adjust for your goal
Healthline’s IIFYM guide describes reducing calories by 15–25% for weight loss and increasing them by 5–15% for weight gain. Maintenance stays at TDEE. If you want a closer look at how deficits behave, our calorie deficit formula guide walks through three examples, and the calorie calculator article covers estimating in the browser without sending data anywhere.
Step 2: Choose your protein, fat and carb targets
There are two common ways to set macros: as percentages of calories or as grams per kilogram of body weight. Both end in grams, and the better choice depends on how much you train.
Percentage ranges
The adult reference ranges reported by Cleveland Clinic are 45–65% of calories from carbohydrates, 20–35% from fat and 10–35% from protein. The American Council on Exercise (ACE) reports narrower ranges by goal:
| Goal | Carbohydrate | Protein | Fat |
|---|---|---|---|
| General fitness | 45–55% | 10–15% | 25–35% |
| Medium/high-intensity training | 55–65% | 20–30% | about 30% |
| Weight loss | 45–50% | 25–30% | 20–25% |
The ranges overlap, and that is the point: no single split is correct for everyone. Pick a value inside the range that fits your goal and food preferences.
Grams per kilogram
For protein in particular, body weight is often a steadier basis than a percentage, because a percentage shifts whenever your calories change. MD Anderson cites a protein Recommended Dietary Allowance of 0.8 g/kg/day and notes that individual needs vary with age, activity, medical history and health goals. ACE expresses sports targets by body mass: for general fitness, carbohydrate of 3–5 g/kg/day and protein of 0.8–1.0 g/kg/day; for medium/high-intensity training, carbohydrate of 5–8 g/kg/day and protein of 1.5–2 g/kg/day.
The order matters. Set protein first, then fat, then let carbohydrate take whatever calories remain. The Bodybuilding Dietitians describe carbohydrate in the same way, as the remainder after protein and fat.

Step 3: Convert percentages to grams
The formula is: daily calories × macro percentage ÷ calories per gram. Shape shows it on a 2,000-calorie day with a 50% carbohydrate, 30% fat and 20% protein split:
| Macro | Share | Calories | Grams |
|---|---|---|---|
| Carbohydrate | 50% | 1,000 | 250 g |
| Fat | 30% | 600 | 67 g |
| Protein | 20% | 400 | 100 g |
Fat comes out at 66.7 g, which rounds to 67. Rounding means your totals can be a few calories off, which is irrelevant in practice.
If you want to check a split quickly, the percentage calculator finds a share of a total, and a quick sum of your three calorie amounts should land on your target.
A full worked example
The numbers below are an illustration we built with the formulas above, not a recommendation for any real person. Assume a 35-year-old man, 180 cm, 80 kg, moderately active, who wants to lose weight.
- BMR: 10 × 80 + 6.25 × 180 − 5 × 35 + 5 = 800 + 1,125 − 175 + 5 = 1,755 kcal.
- TDEE: 1,755 × 1.55 = 2,720 kcal (rounded).
- Goal calories: a 20% reduction, within the 15–25% range, gives 2,176 kcal.
- Protein: 1.8 g/kg × 80 kg = 144 g, which is 576 kcal. This falls inside the 1.5–2 g/kg range ACE gives for medium/high-intensity training.
- Fat: 25% of 2,176 = 544 kcal, or about 60 g (540 kcal).
- Carbohydrate: 2,176 − 576 − 540 = 1,060 kcal, which is 265 g.
| Macro | Grams | Calories | Share of total |
|---|---|---|---|
| Protein | 144 g | 576 | about 26% |
| Fat | 60 g | 540 | about 25% |
| Carbohydrate | 265 g | 1,060 | about 49% |
That split sits in the weight-loss ranges ACE reports for carbohydrate and protein, with fat just above them. A person with a different age, height or activity pattern would get different numbers from the same steps, which is why the steps matter more than the example.
How the targets shift by goal
Weight loss. Healthline’s IIFYM guide advises lowering calories while raising protein to help preserve lean mass. Shape’s cited dietitians recommend a calorie deficit with steady protein, carbohydrate reduced as needed and fat kept moderate. The Bodybuilding Dietitians suggest about 2.0–2.4 g/kg/day of protein for resistance-trained people during active fat loss.
Muscle gain. Shape reports that muscle gain generally calls for more calories from carbohydrate and protein, while broader weight gain may also use more fat. The Bodybuilding Dietitians put protein at roughly 1.6–2.4 g/kg/day for resistance-trained people, with the lower end generally enough in maintenance or a surplus, and suggest hard-training people keep carbohydrate above about 2 g/kg/day.
Maintenance. Use TDEE as the calorie target and pick a split from the general-fitness or training row that matches your week.
Step 4: Track, compare and adjust
A calculated target is a prediction. The way to improve it is to compare it with what your body does over time.
- Log food consistently for two to three weeks. Weigh or measure portions where you can. Packaged foods carry label values; for whole foods, the USDA’s FoodData Central is a public food composition database.
- Track a weekly average of body weight, not single mornings. Daily weight moves with water and food volume.
- Compare the trend with your goal. If the trend is flat when you wanted a loss, trim calories slightly, mostly from carbohydrate or fat while holding protein. If you are losing faster than planned or feel run down, add some back. Small steps of roughly 100–200 kcal are our suggested pace, not a sourced standard.
- Recalculate when your body changes. A meaningful change in weight shifts both BMR and your protein target.
Wearable devices can give a second view of activity. They estimate energy use from heart rate and movement, and this overview of how wearables measure exercise intensity explains the signals involved. Treat their calorie estimates as rough, and compare them with your weight trend rather than adding them on top of your activity multiplier.
Where macro calculators stop
A formula uses a handful of inputs, and bodies vary. The Canadian Adult Obesity Clinical Practice Guideline says nutrition recommendations should be personalized to values, preferences, treatment goals, safety, adequacy, cultural acceptability, affordability and long-term adherence, and recommends involving a registered dietitian where possible. It also stresses that long-term sustainability and health outcomes matter more than one scale number or a rigid diet pattern.
In practice, see a registered dietitian or your physician before using these numbers if you are pregnant, managing diabetes or kidney disease, recovering from an eating disorder, or taking medication that interacts with diet. This guide is general information, not medical advice.
Use GizmoBench for the arithmetic
Most of this process is small calculations: converting pounds to kilograms, working out percentages, and checking that grams add back to your calorie target. The everyday tools collection includes a unit converter and a percentage calculator that run in your browser without an account. If you also want your body composition context, the body fat calculator uses the Navy tape method and BMI. Our blog collects more practical guides like this one.
FAQ
How do I calculate macros for weight loss?
Estimate TDEE, reduce it by 15–25%, set protein by body weight, set fat at a moderate share, and fill the rest with carbohydrate. Then convert each share to grams with 4, 4 and 9 calories per gram. Track your weekly weight trend and adjust in small steps.
What is a good protein, carb and fat ratio?
There is no single ratio. Cleveland Clinic’s adult reference ranges are 45–65% carbohydrate, 20–35% fat and 10–35% protein, and ACE narrows these by goal. Start inside the range for your goal and adjust to how you train and eat.
How many grams of protein do I need?
The RDA cited by MD Anderson is 0.8 g/kg/day, and ACE gives 1.5–2 g/kg/day for medium/high-intensity training. Your own number depends on age, activity, health history and goals, so a dietitian can refine it.
Do I need to hit my macros exactly every day?
No. Rounding and food label variation mean daily totals are approximate anyway. Looking at the weekly average of intake and body weight is more informative than any single day.
How often should I recalculate?
Recalculate after a meaningful change in body weight, activity or goal. Otherwise, adjust based on your tracked trend every two to three weeks.
Sources
- MD Anderson Cancer Center: Macronutrients 101
- Merck Manual: Carbohydrates, Proteins, and Fats
- Healthline: How to Count Macros, A Step-By-Step Guide
- Healthline: IIFYM Beginner’s Guide
- Cleveland Clinic: Macronutrients vs. Micronutrients
- ACE: How to Find Your Best Macronutrient Ratio
- Shape: How to Calculate Macros
- The Bodybuilding Dietitians: Daily Macro Targets
- Canadian Adult Obesity Clinical Practice Guideline: Medical Nutrition Therapy
- USDA FoodData Central
- Repbeats: How Wearables Measure Exercise Intensity