Macro Calculator
Daily protein, carbs and fat in grams for weight loss, maintenance or muscle gain.
Calories use the Mifflin-St Jeor equation with standard activity factors. Protein and carbs have 4 kcal per gram and fat has 9 kcal per gram. This is an estimate for healthy adults, not medical advice.
Macros to calories
Already know your grams? Enter them to see the calories and the percentage split.
Macro Calculator: How Many Grams of Protein, Carbs and Fat Should I Eat?
This free calorie and macro calculator works out your daily calorie target and splits it into protein, carbohydrates and fat in grams.
It works for weight loss, maintenance or muscle gain, for men and women, in US units (pounds, feet and inches) or metric units (kilograms and centimetres).
“Macros” is short for macronutrients, the three nutrients that supply almost all of the calories in food. Tracking them, rather than calories alone, helps you eat enough protein to protect muscle while you lose fat, or fuel training while you build muscle.
How to Use the Macro Calculator
- Choose US units or Metric.
- Enter your sex, age, height and weight.
- Pick your activity level and your goal: lose weight, maintain or gain muscle.
- Choose a macro split, or set your own percentages.
- Read your daily calories, your grams of protein, carbs and fat, and how much to eat at each meal.
If you already know your calorie target, for example from a dietitian, type it into the optional box and the calculator will just split it into macros.
What Are Macros? (Protein, Carbs and Fat)
- Protein builds and repairs muscle and other tissues, and helps you feel full. Good sources include meat, fish, eggs, dairy, beans, lentils and tofu.
- Carbohydrates are the body’s main source of energy, especially for exercise. Whole grains, fruit, vegetables and beans also provide fibre.
- Fat is needed for hormones and for absorbing vitamins A, D, E and K. Choose mostly unsaturated fats such as olive oil, nuts, seeds and oily fish.
Alcohol also has calories (7 per gram), but it is not counted as a macro you need.
How to Calculate Your Macros
Step 1: Work out your calories
The calculator first estimates your basal metabolic rate (BMR), the calories your body burns at rest, using the Mifflin-St Jeor equation (Mifflin et al., 1990):
- Men: BMR = 10 × weight (kg) + 6.25 × height (cm) − 5 × age + 5
- Women: BMR = 10 × weight (kg) + 6.25 × height (cm) − 5 × age − 161
It then multiplies your BMR by an activity factor, from 1.2 (sedentary) to 1.9 (extra active), to get your maintenance calories, also called your TDEE (total daily energy expenditure).
For weight loss it takes away 600 calories a day, which the NHS describes as a safe and sustainable way to lose weight.
A gentler option of 300 calories is also available, and you can add 300 calories a day to gain muscle slowly.
Step 2: Split the calories into macros
Each macro has a fixed number of calories per gram:
- Protein: 4 calories per gram
- Carbohydrates: 4 calories per gram
- Fat: 9 calories per gram
Grams of a macro = daily calories × percentage ÷ calories per gram.
For example, on 2,000 calories a day with a balanced split, protein is 2,000 × 25% ÷ 4 = 125 g, carbs are 2,000 × 50% ÷ 4 = 250 g, and fat is 2,000 × 25% ÷ 9 = 56 g.
Macros to Calories: Convert Grams to Calories
If you already know your grams, multiply protein and carbs by 4 and fat by 9, then add them up:
Calories = (protein g × 4) + (carbs g × 4) + (fat g × 9)
For example, 150 g protein, 200 g carbs and 60 g fat is 600 + 800 + 540 = 1,940 calories, split 31% protein, 41% carbs and 28% fat. The “Macros to calories” tool under the calculator does this for you.
Which Macro Split Should I Choose?
| Split | Protein | Carbs | Fat | Good for |
|---|---|---|---|---|
| Balanced | 25% | 50% | 25% | Most people and general health |
| High protein | 35% | 45% | 20% | Weight loss and building muscle |
| Lower carb | 30% | 30% | 40% | People who prefer fewer carbs |
| Keto | 20% | 5% | 75% | A ketogenic diet |
The US National Academies recommend that adults get 10–35% of calories from protein, 45–65% from carbohydrates and 20–35% from fat. The balanced and high-protein splits stay inside these ranges.
The lower-carb and keto splits go outside them, so the calculator shows a note when you choose them. If you have a medical condition, speak to a doctor or dietitian before following a very low-carb diet.
Macro Calculator Examples for Weight Loss, Maintenance and Muscle Gain
Macros for maintenance (man)
A 30-year-old man, 5 ft 10 in and 180 lb, who exercises 3–5 days a week, has a BMR of about 1,783 calories and maintenance calories of about 2,763 a day.
On a balanced split that is 173 g protein, 345 g carbs and 77 g fat.
Macros for weight loss (woman)
A 35-year-old woman, 5 ft 5 in and 150 lb, with light activity, has maintenance calories of about 1,892 a day.
Cutting 600 calories gives 1,292, which is below her BMR of about 1,376, so the calculator shows a warning.
The gentler 300-calorie cut gives 1,592 calories, and on the high-protein split that is 139 g protein, 179 g carbs and 35 g fat.
Macros for muscle gain (metric)
A 28-year-old man, 180 cm and 80 kg, who trains hard 6–7 days a week, has maintenance calories of about 3,088.
Adding 300 calories gives 3,388 a day, or 212 g protein, 424 g carbs and 94 g fat on a balanced split.
Tips for Hitting Your Macros
- Spread protein through the day. The calculator shows grams per meal, so you can plan 3, 4 or 5 meals.
- Check your protein per kilogram. Most active people do well on 1.2–2.0 g of protein per kg of body weight. Our Protein Calculator works out a range for your goal.
- Weigh and track for a couple of weeks. If your weight isn’t changing as expected, adjust your calories by 100–200 a day and recalculate.
- Update as your weight changes. Recalculate after every 5 kg or 10 lb you lose or gain.
Frequently Asked Questions
What are the best macros for weight loss?
There is no single best split. A calorie deficit is what causes weight loss, and plenty of protein helps you keep muscle and feel full. A high-protein split of 35% protein, 45% carbs and 20% fat is a good place to start.
Is the macro calculator different for women?
Yes. The Mifflin-St Jeor equation gives women a lower BMR than men of the same age, height and weight, so women get a lower calorie target and fewer grams of each macro.
What macros should I eat to build muscle?
Eat slightly more calories than you burn (around 300 extra a day), get enough protein, and follow a strength training programme. A balanced or high-protein split works well.
How accurate is this macro calculator?
The Mifflin-St Jeor equation is one of the most widely used ways to estimate calorie needs, but every body is different. Treat the result as a starting point and adjust it based on how your weight changes over a few weeks.
Is this the same as a calorie calculator?
It uses the same starting point, but goes a step further by splitting your calories into protein, carbs and fat. If you only want your calorie needs, use our Calorie Calculator.
Sources
- Mifflin MD, St Jeor ST, et al. A new predictive equation for resting energy expenditure in healthy individuals. American Journal of Clinical Nutrition, 1990.
- US National Academies (Institute of Medicine), Dietary Reference Intakes: Acceptable Macronutrient Distribution Ranges, 2005 (also published by Health Canada).
- NHS, Calorie counting: reduce your intake by around 600 calories a day to lose weight.
This calculator gives estimates for healthy adults and is not medical advice. If you are pregnant, under 18, or have a medical condition, speak to a doctor or registered dietitian.
Related Calculators
More free tools from our Health Calculators collection:
Link to this calculator
Teacher, blogger or student? Share this free Macro Calculator with your readers or class by pasting this code into your website:

About the author
Tahir Mehmood
Tahir Mehmood is the founder of Digital Designs SEO LTD, a UK company, with five years of hands-on experience in SEO, content writing and web development. He builds and maintains the calculators on All in Calculators and keeps them up to date. Spotted an error? Contact us and we will fix it.
Last updated: 27 November 2026