Macro Calculator: Daily Protein, Carbs & Fat for Your Goal

Get your daily calories plus protein, carb and fat targets in grams for weight loss, maintenance, muscle gain, low carb or keto. Free, accurate and instant.

Updated November 2026 · Free, no signup · Educational estimate, not professional advice

Calculate your daily macros

Calories tell you how much to eat. Macros tell you what to eat. The macro calculator above is a free macronutrient calculator that turns your age, height, weight, activity and goal into a daily calorie target and a gram target for protein, carbohydrate and fat. It works for fat loss, maintenance, muscle gain and low-carb or keto plans, and it splits the totals into per-meal numbers so you can actually use them.

What are macros?

"Macros" is short for macronutrients, the three nutrients your body needs in large amounts: protein, carbohydrate and fat. Every food you eat is some mix of the three (plus water, fiber and micronutrients), and each one supplies a fixed amount of energy.

MacronutrientCalories per gramMain jobsCommon sources
Protein4Builds and repairs muscle, supports immune function, keeps you fullMeat, fish, eggs, dairy, tofu, beans
Carbohydrate4Fuels the brain and high-intensity exercise, restores glycogenRice, oats, potatoes, fruit, bread
Fat9Hormone production, vitamin absorption, cell membranes, long-lasting energyOlive oil, nuts, avocado, fatty fish, butter
Alcohol (not a macro, but counts)7No essential roleBeer, wine, spirits

Because the calorie values are fixed, macros and calories are tied together. A day with 150 g of protein, 200 g of carbs and 70 g of fat adds up to (150 x 4) + (200 x 4) + (70 x 9) = 600 + 800 + 630 = 2,030 calories. That relationship is what lets a calculator move from one number to the other.

How this macro calculator works

The calculator runs in three steps, the same steps a dietitian would use on paper.

Step 1: Estimate your resting energy (BMR)

We use the Mifflin-St Jeor equation, which research has repeatedly found to be the most accurate of the common predictive formulas for healthy adults:

Men: BMR = 10 x weight(kg) + 6.25 x height(cm) - 5 x age + 5
Women: BMR = 10 x weight(kg) + 6.25 x height(cm) - 5 x age - 161

If you want to see this number on its own, use our BMR calculator.

Step 2: Scale for activity and goal

BMR is multiplied by an activity factor (1.2 for sedentary up to 1.9 for athletes) to get your total daily energy expenditure, or TDEE. Your goal then shifts the target: a 10 to 20 percent deficit for fat loss, no change for maintenance, or a modest 10 percent surplus for muscle gain. A safety floor of 1,200 calories for women and 1,500 for men stops the tool from suggesting an unsafe intake.

Step 3: Split calories into macros

Your calorie target is divided by percentage across protein, carbs and fat, then converted to grams using 4, 4 and 9 calories per gram. You choose the split with the diet style menu, and the results panel also shows grams per meal and protein per kilogram of body weight so you can sanity-check the numbers against research-based ranges.

Choosing the right macro split

There is no single perfect ratio. The best split is the one that hits your protein minimum, fits your food preferences and that you can follow for months. Here is how the presets in the calculator compare.

StyleProtein / Carb / FatBest for
Balanced30 / 40 / 30General health, maintenance, most active people
High protein35 / 35 / 30Muscle gain, strength training, older adults
Fat loss focus40 / 30 / 30Cutting while keeping muscle and staying full
Low carb25 / 20 / 55People who feel better with fewer carbs or have insulin resistance (check with a clinician)
Keto25 / 5 / 70Ketogenic diets, usually under 50 g net carbs a day

Macro calculator for weight loss

For fat loss, calories matter most and protein comes second. A moderate deficit of about 15 to 20 percent below maintenance usually loses roughly 0.5 to 1 percent of body weight per week. Keep protein high, around 0.7 to 1 gram per pound of body weight (1.6 to 2.2 g/kg), because it protects muscle in a deficit and is the most filling macro. Fill the rest of your calories with carbs and fat according to preference. If you want to see exactly how large your deficit is, use the calorie deficit calculator.

Macros for muscle gain

To build muscle you need a small surplus, protein in the 1.6 to 2.2 g/kg range, and enough carbohydrate to fuel training. A 10 percent surplus works well for most people: it supports gains while limiting fat gain. Carbs are especially helpful here because they replenish glycogen and let you train harder. Our protein calculator goes deeper on exact protein targets.

Keto macro calculator

On a ketogenic diet, carbs are capped (commonly 20 to 50 grams per day), protein is moderate and fat provides the majority of calories. Choose the keto preset to see the gram targets. Keep in mind that the "5 percent carbs" figure is a ceiling, not a goal. Many people aim for under 30 g of net carbs (total carbs minus fiber). Keto is not appropriate for everyone, so speak with a clinician first if you have diabetes, kidney problems or take glucose-lowering medication.

How to hit your macros in real life

  1. Start with protein. Build each meal around a palm-sized or larger portion of a protein food. Hitting protein first makes the rest of the day easier.
  2. Weigh and log for two weeks. A food scale and a tracking app teach portion sizes faster than anything else. After that, many people can eyeball.
  3. Treat the numbers as ranges. Landing within 5 to 10 grams of each target is plenty accurate. Perfection is not needed.
  4. Prioritize in this order: total calories, then protein, then everything else.
  5. Plan repeatable meals. Having three or four breakfasts and lunches you know the macros of removes daily guesswork.
Example: A 180 lb (82 kg), 30-year-old, 5'10" male who trains 3 to 5 times a week has a TDEE near 2,760 calories. On the balanced split at maintenance that is roughly 207 g protein, 276 g carbs and 92 g fat. With a 20 percent deficit the target drops to about 2,210 calories (166 g protein, 221 g carbs, 74 g fat).

Macros per meal and meal timing

Total daily intake matters far more than when you eat. Still, spreading protein across three to five meals (20 to 50 grams each) gives you steady amino acids for muscle repair and keeps hunger in check. The per-meal numbers in the results panel divide your day evenly, but feel free to shift carbs around training sessions if that feels better. Eating a carb-rich meal one to three hours before a hard workout and a protein-rich meal afterward is a simple pattern that works for most people.

Adjusting your macros over time

Any calculator gives a starting point. Your real maintenance calories can differ by 10 percent or more because of genetics, non-exercise activity and measurement error in food logging. Use this process:

  • Follow your targets for 14 days, weighing yourself at the same time each morning.
  • Compare the weekly average weight to the previous week.
  • If you are not moving in the right direction, adjust calories by 100 to 200 per day, mostly through carbs or fat. Keep protein constant.
  • Recalculate when your weight changes by 10 pounds or more, or when your activity level changes.

Common macro mistakes

  • Setting calories too low. Aggressive cuts cost muscle, energy and adherence. A smaller deficit you can keep beats a crash diet.
  • Ignoring fiber. Aim for 25 to 38 grams a day. Fiber is a carbohydrate, so it counts toward your carb target but supplies fewer usable calories.
  • Trusting package labels blindly. Labels can be off by up to 20 percent. Consistency matters more than precision.
  • Not counting cooking oils and sauces. A tablespoon of oil is about 120 calories and 14 grams of fat.
  • Chasing a perfect ratio. Macro percentages are a convenience. Grams of protein and total calories are what you actually need to hit.

Who should be careful with macro tracking?

Tracking is a tool, not a requirement. If counting food triggers anxiety, guilt or restrictive habits, skip it and use simpler methods such as hand-portion sizes. People with a history of eating disorders, pregnant or breastfeeding women, teenagers and those with kidney disease or diabetes should work with a healthcare professional before using calculated targets.

Pair this tool with the TDEE calculator to see your maintenance calories, the body fat calculator to track composition rather than just weight, and the water intake calculator to cover hydration. For the step-by-step math behind this tool, read how to calculate macros. Browse everything in the health calculators hub.

About this calculator and your privacy

This calculator runs entirely in your web browser. The numbers you type are never sent to a server, stored or shared, and you do not need an account. Results update when you press the calculate button, and the reset button clears them. We review the formulas whenever published guidelines or tax figures change, and the page was last reviewed in November 2026. If you spot a number that looks wrong, or would like another feature added, please contact us and include your inputs so we can reproduce the issue. Remember that every calculator is a simplification of real life: treat the output as a starting point for planning and check important decisions with a qualified professional.

Frequently asked questions

How do I calculate my macros?

Estimate your BMR with the Mifflin-St Jeor equation, multiply by an activity factor to get TDEE, adjust calories for your goal, then split calories into protein, carbs and fat using percentages and 4/4/9 calories per gram. The calculator above does all of that for you.

What is the best macro split for weight loss?

A high-protein split such as 40% protein, 30% carbs and 30% fat works well for most people because protein protects muscle and keeps you full. Aim for roughly 0.7 to 1 gram of protein per pound of body weight.

What is a good macro ratio for beginners?

A balanced 30/40/30 split (protein/carbs/fat) is a sensible starting point. Adjust after two to three weeks based on your hunger, energy and progress.

How many calories are in a gram of protein, carbs and fat?

Protein and carbohydrate each provide 4 calories per gram, fat provides 9 calories per gram and alcohol provides 7.

How many carbs should I eat on keto?

Most ketogenic diets keep carbs between 20 and 50 grams per day, often measured as net carbs. Pick the keto preset to see a gram target, and check with a clinician if you have a medical condition.

Do I need to hit my macros exactly every day?

No. Being within about 5 to 10 grams of each target, and hitting your protein and calorie goals most days, is accurate enough to see results.

How often should I recalculate my macros?

Recalculate whenever your weight changes by about 10 pounds, your activity level changes noticeably, or your progress stalls for three to four weeks.

Is this macro calculator free?

Yes. It is completely free, needs no signup and runs in your browser, so your numbers are not stored or sent anywhere.

This calculator provides general educational estimates based on the Mifflin-St Jeor equation and common macronutrient guidelines. It is not medical advice. Talk to a doctor or registered dietitian before major diet changes, especially if you are pregnant, under 18, or managing a health condition.