Macro Calculator: Your Protein, Carbs and Fat in Grams
Set protein first, then split the rest of your calories into carbs and fat. Get grams per day and per meal for balanced, high-protein, lower-carb, keto or custom splits.
Step 1
We use the same equation as our calorie calculator, so your calories match. This tool’s job is the split: how much protein, carbs and fat.
Please choose your sex and check your numbers: age 18–100 (teens are still growing and shouldn’t diet without a doctor), height 4′7″–7′3″ (140–220 cm) and weight 80–500 lb (36–227 kg).
Step 2
Count both your job and your workouts. Most people overestimate, so if you’re unsure, pick the lower one.
Please answer both questions.
Step 3
Your goal sets both your calories and your protein.
I already know my daily calories
We’ll split this number instead of estimating one. Leave it blank to use the estimate.
Please choose your goal and how fast you want to go.
Please enter 1,000–6,000 calories a day, or leave the box blank.
Step 4
Protein is set first from your goal and training. The style decides how the rest splits between carbs and fat.
Total: 100% ✓
Please choose a style.
Your percentages need to add up to exactly 100%.
Last step
These change what’s safe, so your answer matters.
Please choose one.
Calculating your calories…

This macro calculator splits your daily calories into grams of protein, carbs and fat. It sets protein first, from your goal and training, then fat, and gives the rest to carbs. Example: a 35-year-old woman who is 5 ft 5 in, weighs 170 lb, is lightly active and wants to lose about 1 lb a week gets 1,520 calories on the balanced split: 95 g of protein, 170 g of carbs and 51 g of fat. If you only need a calorie number, start with our calorie calculator. This tool uses the same math, so the two always agree on calories.
How this macro calculator works
You answer five short steps: your sex, age, height and weight; how active you are and whether you lift weights; your goal and pace; how you like to eat; and any health conditions. The calculator then works in four stages.
- Calories. It estimates your resting burn with the Mifflin-St Jeor equation, built from measurements of 498 healthy adults aged 19 to 78 (1), then multiplies by an activity factor from 1.2 (mostly sitting) to 1.9 (athlete or heavy labor). To lose, it subtracts about 500 calories a day for each pound a week, capped at 25% of your maintenance calories or about 1% of your weight a week, and never below 1,200 calories for women or 1,500 for men. To gain, it adds 10% or 15%. Already know your number? Type it in and the calculator skips this stage.
- Protein, in grams per kilogram of body weight, using the same ranges as our protein calculator (see the table below).
- Fat, at 30% of calories on the balanced and high-protein styles, and never under 20% on any preset style.
- Carbs fill whatever calories are left (or a fixed share on the lower-carb and keto styles).
Your result shows grams, calories and the percentage from each macro, a split bar, and the amounts for each of 3 or 4 meals. Three worked examples, exactly as the calculator prints them:
| Example | Calories | Protein / carbs / fat |
|---|---|---|
| Woman, 35, 5 ft 5 in, 170 lb, lightly active, lose 1 lb a week, balanced | 1,520 | 95 g / 170 g / 51 g |
| Man, 30, 180 cm, 80 kg, moderately active, lifts 2–3 days, lean gain, balanced | 3,030 | 155 g / 375 g / 101 g |
| Man, 45, 5 ft 10 in, 200 lb, desk job, lifts 2–3 days, lose, typed in 2,000 calories, keto | 2,000 | 150 g / 25 g / 144 g |
How to calculate your macros by hand
Protein and carbs carry about 4 calories per gram and fat about 9, the general Atwater factors (alcohol is about 7) (2). Using the first example above:
- Calories: 1,520 a day.
- Protein: 95 g × 4 = 380 calories.
- Fat: 30% of 1,520 = 456 calories ÷ 9 = 51 g, or 459 calories once rounded to whole grams.
- Carbs: 1,520 − 380 − 459 = 681 calories ÷ 4 = 170 g.
That works out to 25% protein, 45% carbs and 30% fat. Swap to the lower-carb style and carbs drop to 30% of calories (114 g), with fat rising to 76 g; protein stays at 95 g.
How much protein do you need?
Of the three macros, protein matters most for what your weight is made of. In a meta-analysis of 24 trials (1,063 people, averaging about 12 weeks), higher-protein diets at the same calories led to slightly more weight loss (0.79 kg) and fat loss (0.87 kg), and kept more lean mass (0.43 kg), than standard-protein diets (3).
The calculator uses these ranges, in grams per kilogram of body weight a day:
| Your activity | Maintain | Lose fat | Build muscle |
|---|---|---|---|
| Mostly sitting | 0.8–1.0 | 1.2–1.6 | 1.4–1.8 |
| Lightly active | 1.0–1.2 | 1.2–1.6 | 1.4–1.8 |
| Moderately active or more, no weights | 1.2–1.6 | 1.4–1.8 | 1.4–1.8 |
| Strength training 2–3 days | 1.4–1.8 | 1.6–2.2 | 1.6–2.2 |
| Strength training 4+ days | 1.6–2.0 | 1.8–2.4 | 1.6–2.2 |
The balanced, lower-carb and keto styles use the middle of your range; high-protein uses the top. From age 50 the low end rises, and pregnancy and breastfeeding raise it too. If your BMI is 27 or more, the grams are based on what you’d weigh at a healthier body-fat level, so body fat doesn’t inflate them. One pound is 0.45 kg, so 1.6 g per kg is about 0.73 g per pound.
Where the numbers come from:
- The ISSN position stand recommends 1.4–2.0 g per kg a day for most people who exercise, and says 2.3–3.1 g per kg may be needed to keep muscle when resistance-trained people eat less (4). Some of its authors have consulted for or received funding from companies that sell protein supplements or sports nutrition products.
- A meta-analysis of 49 studies (1,863 people) found that, alongside strength training, protein beyond about 1.6 g per kg a day added no further gains in lean mass (5). One author has received grants and fees from the US National Dairy Council, which supported some of the trials reviewed.
- The 2025–2030 Dietary Guidelines for Americans set a protein goal of 1.2–1.6 g per kg a day, adjusted for your calorie needs (6). That’s above the long-standing RDA of 0.8 g per kg, the amount set to prevent deficiency (4). Our maintenance ranges for people who mostly sit or are lightly active start below this new goal; if you want to follow it, use the custom style and set protein higher.
Spreading protein out helps. A review concluded that about 0.4 g per kg per meal, over at least four meals, is a sensible way to reach 1.6 g per kg a day for muscle building (7). Its first author serves on a supplement company’s scientific advisory board. The calculator shows this per-meal target under your results.
Is there a best macro ratio for weight loss?
No. When calories and protein are matched, the carb-to-fat split makes little difference to weight loss for most people. The strongest evidence:
- DIETFITS. 609 adults with overweight or obesity were randomly assigned to a healthy low-fat or a healthy low-carb diet for 12 months. By the end, the low-fat group ate 48% of calories from carbs and 29% from fat; the low-carb group 30% carbs and 45% fat. Weight loss was 5.3 kg versus 6.0 kg, a difference that wasn’t statistically significant. Neither genotype nor insulin response predicted who did better on which diet (8).
- A network meta-analysis of 121 trials (21,942 people) found low-carb and low-fat diets produced similar weight loss at six months compared with usual eating: 4.63 kg and 4.37 kg. By 12 months most of the effect on weight had faded for every diet (9). The review had no specific grant funding; one author reported earlier graduate funding from ILSI North America.
- Metabolic ward trials led by Kevin Hall at the US National Institutes of Health. With every meal provided and measured, 19 adults with obesity lost more body fat over 6 days when fat was cut (89 g a day) than when the same calories were cut from carbs (53 g a day), though modeling suggested the gap shrinks over time (10). In 17 men, four weeks of a ketogenic diet at the same calories as a high-carb diet didn’t speed fat loss; it slowed (11). When 20 adults could eat as much as they liked, they ate about 689 calories a day less on a low-fat, plant-based diet than on a ketogenic, animal-based one over two weeks (12).
The practical answer: get your calories and protein right, then pick the carb and fat split you can live with. Long term, sticking with it matters more than the ratio.
Which diet style should you choose?
| Style | Protein | Fat | Carbs |
|---|---|---|---|
| Balanced | Middle of your range | 30% of calories | The rest |
| High-protein | Top of your range | 30% of calories | The rest |
| Lower-carb | Middle of your range | The rest (at least 20%) | 30% of calories |
| Keto | Middle of your range | The rest | 5% of calories, 20–50 g |
| Custom | Your % | Your % | Your % |
- Balanced keeps you close to the adult ranges listed in the 2020–2025 Dietary Guidelines: 10–35% of calories from protein, 45–65% from carbs and 20–35% from fat (13).
- High-protein suits you if you’re dieting, lifting, or find you’re hungry on fewer calories.
- Lower-carb puts carbs at 30% of calories. The American Diabetes Association’s consensus report notes there’s no single definition of low-carb and describes low-carbohydrate eating as 26–45% of calories (14), and 30% is about what the DIETFITS low-carb group ate. Our low-carb foods list helps you fill it.
- Keto keeps carbs within the 20–50 g of non-fiber carbs a day that very-low-carb plans often aim for to reach ketosis (14). That report also warns that very-low-carb eating can lower blood sugar quickly and cause fluid loss, so anyone on insulin or other glucose-lowering medicine needs a clinician to adjust doses at the start.
- Custom lets you set your own percentages with three sliders. They must add up to exactly 100%, and the calculator flags protein below your range or fat under 20%.
How to count macros
Hitting macros means tracking what you eat, at least for a while. Food labels list grams of protein, carbs and fat per serving, and most tracking apps do the math for you.
- Track honestly. A review of 22 studies found that recording what you eat was consistently linked to more weight loss, though the studies were weak in design (15). Under-counting is common: in one small study, people who reported failing to lose weight on very few calories underreported their food by 47% and overreported their activity by 51% (16).
- Weigh food for the first week or two. It shows you what a real portion looks like.
- Hit protein and calories first. Treat carbs and fat as the flexible part: if one runs over, trim the other.
- Adjust after two to three weeks. Weigh yourself a few mornings a week. If the trend isn’t moving as planned, change calories by 100–200 a day, mostly from carbs or fat, and keep protein the same.
To turn your numbers into meals, see our high-protein meal plan, the protein per serving in our list of foods high in protein, or build a week of meals with the meal plan generator.
Who shouldn’t use a macro calculator?
- Anyone with an eating disorder, now or in the past. The calculator won’t show numbers and points you to support instead.
- People with kidney disease, or anyone told to limit protein. The calculator won’t give numbers; your doctor or a renal dietitian can set safe targets.
- Pregnant women get maintenance calories, not a deficit, and should check targets with their doctor or midwife.
- Under-18s, who are still growing. The calculator accepts ages 18 to 100.
- People taking diabetes medicine, before any big cut in carbs.
The calorie step is an estimate for an average person of your size and activity. Treat the result as a starting point and let your weight trend tell you whether to adjust. Find more free calculators on our health tools page.
This calculator gives an educational estimate and isn’t medical or dietetic advice. See our medical disclaimer.
Sources
- Mifflin MD, et al. A new predictive equation for resting energy expenditure in healthy individuals. Am J Clin Nutr. 1990;51(2):241-7. PubMed 2305711
- Food and Agriculture Organization of the United Nations. Food energy: methods of analysis and conversion factors. FAO Food and Nutrition Paper 77, chapter 3. FAO; 2003. fao.org
- Wycherley TP, et al. Effects of energy-restricted high-protein, low-fat compared with standard-protein, low-fat diets: a meta-analysis of randomized controlled trials. Am J Clin Nutr. 2012;96(6):1281-98. PubMed 23097268
- Jäger R, et al. International Society of Sports Nutrition Position Stand: protein and exercise. J Int Soc Sports Nutr. 2017;14:20. PubMed 28642676
- Morton RW, et al. A systematic review, meta-analysis and meta-regression of the effect of protein supplementation on resistance training-induced gains in muscle mass and strength in healthy adults. Br J Sports Med. 2018;52(6):376-384. PubMed 28698222
- US Department of Agriculture and US Department of Health and Human Services. Dietary Guidelines for Americans, 2025–2030. 2026. realfood.gov
- Schoenfeld BJ, Aragon AA. How much protein can the body use in a single meal for muscle-building? Implications for daily protein distribution. J Int Soc Sports Nutr. 2018;15:10. PubMed 29497353
- Gardner CD, et al. Effect of Low-Fat vs Low-Carbohydrate Diet on 12-Month Weight Loss in Overweight Adults and the Association With Genotype Pattern or Insulin Secretion: The DIETFITS Randomized Clinical Trial. JAMA. 2018;319(7):667-679. PubMed 29466592
- Ge L, et al. Comparison of dietary macronutrient patterns of 14 popular named dietary programmes for weight and cardiovascular risk factor reduction in adults: systematic review and network meta-analysis of randomised trials. BMJ. 2020;369:m696. PubMed 32238384
- Hall KD, et al. Calorie for Calorie, Dietary Fat Restriction Results in More Body Fat Loss than Carbohydrate Restriction in People with Obesity. Cell Metab. 2015;22(3):427-36. PubMed 26278052
- Hall KD, et al. Energy expenditure and body composition changes after an isocaloric ketogenic diet in overweight and obese men. Am J Clin Nutr. 2016;104(2):324-33. PubMed 27385608
- Hall KD, et al. Effect of a plant-based, low-fat diet versus an animal-based, ketogenic diet on ad libitum energy intake. Nat Med. 2021;27(2):344-353. PubMed 33479499
- US Department of Agriculture and US Department of Health and Human Services. Dietary Guidelines for Americans, 2020–2025, Appendix 1, Table A1-2. 2020. dietaryguidelines.gov
- Evert AB, et al. Nutrition Therapy for Adults With Diabetes or Prediabetes: A Consensus Report. Diabetes Care. 2019;42(5):731-754. PubMed 31000505
- Burke LE, et al. Self-monitoring in weight loss: a systematic review of the literature. J Am Diet Assoc. 2011;111(1):92-102. PubMed 21185970
- Lichtman SW, et al. Discrepancy between self-reported and actual caloric intake and exercise in obese subjects. N Engl J Med. 1992;327(27):1893-8. PubMed 1454084
This article is for informational purposes only and is not medical advice. See our Medical Disclaimer before changing your exercise, diet, or supplement routine.
See every method in action
New research-backed workouts on YouTube every week — no gym required.
Frequently asked questions
How do I calculate my macros?
Start with your daily calories. Set protein in grams per kilogram of body weight for your goal, then fat (at least 20% of calories), and give the rest to carbs. Protein and carbs have about 4 calories per gram and fat about 9. At 1,520 calories, 95 g protein, 51 g fat and 170 g carbs add up to about 1,520.
What is the best macro ratio for weight loss?
There isn’t one. In the year-long DIETFITS trial, people on a healthy low-carb diet lost 6.0 kg and those on a healthy low-fat diet 5.3 kg, a difference that wasn’t significant. A review of 121 trials found similar results. Get calories and protein right, then choose the carb and fat split you can stick with.
How much protein should I eat a day?
Most people who exercise do well on 1.4 to 2.0 g per kg of body weight a day, according to the International Society of Sports Nutrition. For muscle gain, extra protein stopped adding lean mass at about 1.6 g per kg in a large meta-analysis. The 2025–2030 Dietary Guidelines set a goal of 1.2 to 1.6 g per kg.
What macros should I eat on keto?
Keto plans usually keep non-fiber carbs to about 20 to 50 g a day, around 5% of calories, with protein at your normal target and fat making up the rest. If you take insulin or other diabetes medicine, talk to your doctor first: very-low-carb eating can lower blood sugar quickly, so your doses may need to change.
What is a good macro split for building muscle?
Eat a small calorie surplus and train with weights; our calculator uses about 10% above maintenance for a lean gain. Set protein around 1.6 to 2.2 g per kg of body weight a day; gains in lean mass level off around 1.6 g per kg, so more is a safety margin. Split the remaining calories between carbs and fat in whatever way suits you.
Do I need to count macros to lose weight?
No. Calories drive weight loss, and protein helps protect muscle and keep you full. But tracking helps many people: in a review of 22 studies, recording what you ate was consistently linked to more weight loss. Most people undercount, so weigh your food for a week or two to learn what real portions look like.
Is the macro calculator the same as the calorie calculator?
They use the same calorie math, the Mifflin-St Jeor equation with the same activity levels and goal settings, so both give you the same calories. The calorie calculator focuses on your deficit, maintenance and resting burn. The macro calculator splits those calories into protein, carbs and fat, per day and per meal, for the eating style you choose.