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
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:
- 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.
- 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.
- Carbohydrates fill the remaining calories, or are capped at 25 g for keto.
Macro splits compared
| Style | Protein | Carbs | Fat | Best for |
|---|---|---|---|---|
| Balanced | ~25% | ~45% | 30% | Most people, long-term habits |
| High protein | 30–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?
<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>
Frequently asked questions
How much protein do I need per day?+
What is the best macro ratio for weight loss?+
What macros should I eat to build muscle?+
How many carbs are allowed on keto?+
Do I need to hit my macros exactly?+
Guides that use this tool

Meal Prep for Beginners: A Simple Weekly Plan
Meal prep for beginners: a 2-hour Sunday plan for 5 lunches, what to put in each box, how long it keeps in the fridge, and the mistakes to avoid.

How Much Protein Do I Need a Day? (By Goal & Weight)
Protein needs range from 0.8 to 2.2 g per kg of body weight depending on your goal. Find out how much protein you need to lose fat, build muscle or stay healthy.
More free health tools
Calorie Calculator (TDEE)
Find out how many calories you burn each day and how much to eat to lose, maintain or gain weight.
Body Fat Calculator
Estimate your body fat percentage, fat mass and lean mass with a tape measure (US Navy method).
One Rep Max Calculator
Estimate your 1RM for bench, squat and deadlift, with a full percentage and rep chart.
Intermittent Fasting Calculator
Plan your 16:8, 18:6, 20:4, OMAD or 5:2 schedule and see your exact eating window.