✦ Free tool

Macro Calculator: Protein, Carbs & Fat for Your Goal

Turn your calorie target into daily grams of protein, carbs and fat for fat loss, maintenance or muscle gain, with balanced, high-protein, low-carb and keto options.

Your details

Don't know? Use the calorie calculator first.

Units
Goal
🥗
Enter your calories and goal to see your macros.
✦ The NutriPath app

Hit your macros without the maths

NutriPath shows your protein, carbs and fat in real time as you log. Snap a photo, scan a barcode or just say what you ate.

  • AI food scanner with 3M+ foods
  • Voice logging: just say what you ate
  • Personal 24/7 AI nutrition coach
  • Free to download on iOS & Android

How the macro calculator works

Macronutrients ("macros") are the three nutrients that provide calories: protein and carbohydrates provide 4 kcal per gram, and fat provides 9 kcal per gram. The calculator sets protein first, then fat, and gives the remaining calories to carbs:

  1. Protein is set by body weight and goal: 2.0 g/kg when losing fat, 1.6 g/kg to maintain and 1.8 g/kg to build muscle. The high-protein style adds 0.4 g/kg.
  2. Fat is set as a percentage of calories: 30% for balanced, 25% for high protein and 40% for low carb. Keto gets whatever is left after protein and carbs.
  3. Carbohydrates fill the remaining calories, or are capped at 25 g for keto.

Macro splits compared

StyleProteinCarbsFatBest for
Balanced~25%~45%30%Most people, long-term habits
High protein30–40%~35%25%Fat loss while keeping muscle
Low carb~30%~25%40%People who prefer fewer starches
Keto~20–25%~5%~70%Those following a ketogenic diet

Percentages vary with your calorie target and body weight, which is why the calculator works in grams.

Easy ways to hit your protein target

  • Build every meal around a protein source: eggs, Greek yogurt, chicken, fish, tofu, lentils or cottage cheese.
  • Spread protein over 3–5 meals of roughly 25–40 g each.
  • Keep high-protein snacks around, such as jerky, skyr, edamame and protein shakes.

Read our full guide: how much protein do you really need?

1Choose a style2Copy the code3Paste it into your page
HTML · embed code
<iframe id="np-macro-calculator" src="https://nutripath.io/embed/macro-calculator" title="Macro Calculator" width="100%" height="1000" style="border:0;max-width:1100px;border-radius:16px" loading="lazy"></iframe>
<p style="font:14px/1.4 sans-serif;margin:6px 0 0"><a href="https://nutripath.io/tools/macro-calculator">Macro Calculator</a> by NutriPath</p>
<script>window.addEventListener("message",function(e){if(e.origin==="https://nutripath.io"&&e.data&&e.data.npEmbed==="macro-calculator"){document.getElementById("np-macro-calculator").style.height=e.data.npHeight+"px"}})</script>
Works with WordPress (Custom HTML block), Wix, Squarespace, Shopify and plain HTML. Please keep the small "by NutriPath" credit link. Live preview ↗All 13 calculators

Frequently asked questions

How much protein do I need per day?+
Most active adults do well on 1.6–2.2 grams of protein per kilogram of body weight (about 0.7–1 g per pound). Higher intakes are most useful when you're in a calorie deficit, to protect muscle. The minimum for sedentary adults is 0.8 g/kg.
What is the best macro ratio for weight loss?+
There's no single best ratio: total calories drive weight loss. That said, higher protein (25–35% of calories) helps you feel full and keep muscle, so a high-protein split is a strong default. Choose the carb and fat balance you can stick to.
What macros should I eat to build muscle?+
Eat in a small calorie surplus (about 250–500 kcal), with around 1.6–2.2 g of protein per kg, 20–35% of calories from fat and the rest from carbohydrates to fuel training.
How many carbs are allowed on keto?+
Ketogenic diets usually keep net carbs under about 20–50 g a day, with most calories from fat and moderate protein. This calculator caps keto carbs at 25 g.
Do I need to hit my macros exactly?+
No. Aim to land within about 5–10 g of protein and within your calorie target on most days. Consistency over weeks matters far more than perfection on any single day.