Home / Macro Calculator

Macro Calculator

Free macro calculator. Turn your daily calorie target into grams of protein, carbs, and fat for fat loss, maintenance, or muscle gain in seconds.

Calories matter, but macros define your results.

Calculate your ideal protein, carbs, and fat intake based on your calorie goal.

Based on widely used nutrition guidelines.

Your daily macro split

Daily target
0kcal
Protein 0% Carbs 0% Fat 0%
Protein
0g
0 g per kg bodyweight
Priority macro. Hit this first every day.
Carbs
0g
0% of calories
Fuel for training and recovery.
Fat
0g
0% of calories
Hormones, absorption, satiety.

How to use your macros

  • Spread protein across meals. Aim for 3 to 5 servings of 25 to 45 grams spaced through the day. Your body uses protein better in steady doses than in one big hit.
  • Anchor carbs around training. Heavier carb meals before and after workouts fuel output and speed recovery. Rest days can trend lower without hurting results.
  • Keep fat consistent. Fat stabilises hormones and satiety. Spreading it across meals beats one massive fat bomb at dinner.
  • Weigh in weekly, not daily. If your 7-day average weight is moving the wrong direction after 2 to 3 weeks, nudge calories by 100 to 150 and recompute.

What are macronutrients?

Macronutrients, or macros, are the three categories of nutrients your body needs in gram quantities every day: protein, carbohydrates, and fat. Micronutrients like vitamins and minerals matter too, but you measure those in milligrams. Macros are the ones that build your calorie total and shape how your body composition changes over weeks and months.

Protein is made of amino acids. It is the raw material for muscle, skin, hair, enzymes, and most of the structural tissue in your body. Every gram of protein delivers 4 kcal. Unlike carbs and fat, your body cannot store protein in a dedicated form, which is why intake needs to be consistent across the day rather than loaded into a single meal.

Carbohydrates break down into glucose, the fuel your muscles and brain prefer for hard work. Every gram of carbs also delivers 4 kcal. Some carbs digest quickly, like fruit and rice, and some slowly, like oats and legumes, but once they reach the bloodstream the body treats them the same way. Stored carbs (glycogen) sit inside muscle and liver waiting to power your next session.

Fat is the densest macro at 9 kcal per gram. It regulates hormones, helps you absorb vitamins A, D, E and K, and is the primary fuel for lower-intensity activity. Dropping fat too low for too long tends to flatten testosterone, menstrual function, and mood, which is why most evidence-based plans keep fat at 20 to 30 percent of calories even during aggressive fat loss phases.

How to calculate your macros

The calculation above follows a simple order: pick a calorie target, set protein first in grams per kilogram of bodyweight, set fat as a percentage of total calories, then fill the remaining calories with carbs. Running the numbers by hand looks like this for a 75 kg person eating 2200 kcal in a fat loss phase:

  • Protein: 2.0 g per kg × 75 kg = 150 g, which is 150 × 4 = 600 kcal.
  • Fat: 25 percent of 2200 kcal = 550 kcal, which is 550 / 9 = about 61 g.
  • Carbs: 2200 minus 600 minus 550 = 1050 kcal remaining, which is 1050 / 4 = about 263 g.

That is the identical logic this calculator runs in your browser. You change a value, it recomputes instantly, and your inputs save locally so they are still there when you come back tomorrow.

How much protein do you need?

Research on trained lifters consistently lands in the 1.6 to 2.2 grams per kilogram range for people chasing muscle growth or preserving muscle during a cut. Going above 2.2 g per kg does not add extra muscle in almost any study, but it does increase satiety, which makes a dieting phase easier to survive. Going below 1.4 g per kg increases the risk of losing lean tissue alongside fat when calories are low.

For fat loss, the higher end of the range is the safer bet. When you are in a calorie deficit, protein protects muscle from being broken down for energy, keeps you full for longer per calorie, and costs the most energy to digest (roughly 25 percent of its own calories, compared to 8 to 10 percent for carbs and 2 to 3 percent for fat). That digestion cost alone can account for 80 to 120 kcal per day on a high-protein plan.

For muscle gain, protein requirements sit a touch higher but the real lever is total calories and training stimulus. Eating 3.0 g per kg will not grow muscle faster than 2.2 g per kg if you are not lifting hard. Eating 1.2 g per kg while lifting hard leaves progress on the table. The sweet spot for serious lifters in a surplus is 1.8 to 2.4 g per kg.

Are carbs bad for weight loss?

Carbs are not uniquely fattening. Every well-designed study that matches calories and protein between a low-carb and higher-carb group has found roughly the same fat loss on both. The real driver of fat loss is the calorie deficit, not which macro supplies the calories.

What low-carb diets sometimes do well is help people eat fewer calories without counting, because protein and fat are more filling per calorie than ultra-processed carbs. That is an adherence effect, not a metabolic one. If you track intake and hit your calorie and protein targets, carbs can sit almost anywhere from 15 to 60 percent of your diet without changing the scale result.

For anyone who trains with intensity, carbs earn their keep. They refill muscle glycogen, keep hard sessions feeling sharp, and make training something you look forward to rather than grind through. The few cases where a carb-lower approach genuinely wins are metabolic syndrome, insulin resistance, and people who simply prefer the eating style. None of those cases apply to most readers.

How to adjust macros based on your goal

The three goal buckets call for small but meaningful shifts in the split:

  • Fat loss. Prioritise protein at 1.8 to 2.2 g per kg, keep fat at 20 to 30 percent of calories for hormones and satiety, and take the cut out of carbs. Carbs will drop, but they should not crash to zero unless you really want a ketogenic style.
  • Maintenance. Slightly more relaxed. Protein 1.6 to 2.0 g per kg, fat around 25 to 30 percent, carbs balancing the rest. This is the plate that sustains body composition long term.
  • Muscle gain. Protein 1.8 to 2.4 g per kg, fat pulled slightly lower at 20 to 25 percent to make room for more carbs to fuel hard training, and carbs pushed up. A clean lean bulk rarely needs more than 300 to 400 kcal surplus.

Everything above assumes a reasonable calorie target to start from. If you still need to dial that in, run our calorie calculator first, then come back here to split those calories into macros.

GoalProtein (g/kg)Fat (% cal)Carbs
Fat loss1.8 to 2.220 to 30Remainder
Maintenance1.6 to 2.025 to 30Remainder
Muscle gain1.8 to 2.420 to 25Remainder

Do macros matter more than calories?

Calories decide whether you gain or lose weight. Macros decide what the weight is made of. A 500 kcal deficit with 0.8 g per kg of protein will lose weight, but a meaningful chunk of that loss will be lean tissue. The same 500 kcal deficit with 2.0 g per kg of protein and a real lifting plan will lose almost pure fat.

So the honest answer is both, in order. Calories first: if that number is wrong, macros cannot save the plan. Macros second: once calories are in range, the protein target is the single highest-leverage nutrition variable you can control. After protein, fat and carbs are more about personal preference, training style, and how full you like to feel at meals.

The people who get noticeably leaner or more muscular over a 6 to 12 month window almost always have two things in common. Their calorie target is set roughly right for their goal, and their protein intake is high and consistent. Everything else is optimisation on top of those two.

Frequently asked questions

What is a macro calculator?

A macro calculator turns a daily calorie target into gram-by-gram targets for protein, carbs, and fat. You enter your calories, bodyweight, and goal, and the tool applies research-backed ratios to split those calories into the three macros so your body has what it needs to hit the goal you picked.

How do I calculate my macros?

Start with a calorie target that matches your goal. Set protein first, usually between 1.6 and 2.4 grams per kilogram of bodyweight. Set fat next at 20 to 30 percent of total calories. Fill the rest with carbs. This calculator runs all of that automatically once you enter your numbers.

How much protein do I need per day?

For most adults who train, 1.6 to 2.2 grams per kilogram of bodyweight is the evidence-backed range. A 75 kg person lands around 120 to 165 g per day. Push toward the top of the range during fat loss to protect muscle, and during muscle gain to support growth.

What is the best macro split for fat loss?

A common and effective fat loss split is roughly 30 percent protein, 25 percent fat, and 45 percent carbs, adjusted for bodyweight and activity. The exact percentages matter less than hitting a high protein target, keeping fat above 20 percent of calories, and staying in a modest calorie deficit you can sustain for weeks.

Are carbs bad for weight loss?

No. Carbs are not inherently fattening. Weight loss depends on calories, not on which macro supplies them. Low-carb diets can help some people eat fewer calories naturally, but controlled studies that match calories and protein show similar fat loss on high-carb and low-carb plans.

Should I track macros or calories?

Track calories if you are just starting out and want the simplest possible tool. Track macros once calorie control feels easy and you want to get specific about body composition. Macros add one layer of precision on top of calories, most usefully for hitting your protein number every day.

How accurate is this calculator?

This calculator applies protein, fat, and carb ratios that align with current sports nutrition literature, including recommendations from the International Society of Sports Nutrition. The numbers are population guidelines, tuned for healthy adults with a body composition goal.

Individual needs vary. Training history, sleep, stress, medical conditions, and genetics can all shift the ideal split by 10 to 20 percent in either direction. Treat the output as a well-informed starting point, then adjust from real results: weigh in weekly, track performance in the gym, and nudge protein or calories by 100 to 150 kcal if your trend is not moving the way you want.

The tool runs entirely in your browser. No data leaves your device, nothing is stored on our servers, and your last-used inputs are saved to local storage so you can come back without retyping.

Download on the App Store

OKKAI Community

Hit your macros. Track what you eat.

Do you track what macros you eat?

Loading meals…

Feel Better.

OKKAI engine computes your next meal.

OKKAI dashboard
Food detail
OKKAI engine

One photo.
Full breakdown.

Point your camera at any meal — restaurant dish, homemade food, snack, smoothie. OKKAI identifies what you're eating and returns a complete nutritional profile in seconds.

  • ·Calories, protein, carbs, and fat — instantly
  • ·20+ vitamins and minerals estimated per meal
  • ·Works on any meal, any cuisine, anywhere
  • ·Ingredient breakdown with adjustable portions
  • ·Recipe generation from any logged food
Food nutrition detail

See what people
are actually eating.

Every meal logged by OKKAI users — from Stockholm to Seoul.

Loading meals…

Built for people who take
nutrition seriously.

Feature screenshot
The OKKAI engine

Your body keeps score.

OKKAI ingests your sleep, exercise, food, weight, age, location and weather data. It breaks food down to its smallest compounds, computes vitamin and mineral half-lives, and models your body's current state as accurately as possible from all available data.

The OKKAI engine keeps track of what cannot be seen.

Computed every hour.

Your body is never static. Vitamins deplete, minerals interact, absorption rates shift with activity and time of day.

The engine recomputes every hour in order to give a suggestion on what to eat and when.

Deep Apple Health integration.

OKKAI reads from and writes to Apple Health — bi-directionally. Every meal pushes macros, vitamins, and minerals into your health record. Every workout and sleep session flows back into OKKAI's analysis.

Works with Apple Health
Bi-directional sync
Certified integration

Reads from Health

  • Steps
  • Active calories
  • Workouts
  • Weight
  • Sleep hours
  • Resting heart rate

Writes to Health

  • Dietary calories
  • Protein, carbs, fat
  • Fiber
  • All 13 vitamins
  • All 10 minerals
Apple Health integration screen

What people on Instagram say.

Instagram review
Instagram review

Coming very soon.

OKKAI is launching on iOS shortly. Sign up for the waiting list and be among the first to track nutrition the way it should be tracked.

Download on the App Store

Common questions.

You take a photo of any meal. OKKAI's AI identifies the food, estimates the ingredients, calculates calories and macronutrients, and estimates 20+ vitamins and minerals — all within a few seconds. You can then adjust portions or add ingredients manually.
Yes — OKKAI tracks 13 vitamins (A, C, D, E, K, B6, B12, folate, and more) and 10 minerals (calcium, iron, magnesium, zinc, potassium, and more). After logging enough meals, OKKAI provides an in-depth analysis of your body's nutrient stores and tells you exactly which foods to eat to fill the gaps.
OKKAI supports 30+ protocols: daily time-restricted eating (12:12, 14:10, 16:8, 18:6, 20:4, OMAD), multi-day (5:2, alternate day fasting), extended fasts (24h, 36h, 48h, 72h, 96h), and religious fasts including Ramadan. You can also run a custom fast for any duration.
Yes — deeply. OKKAI reads steps, active calories, workouts, weight, sleep, and resting heart rate from Apple Health. It also writes every meal's calories, macros, fiber, and all micronutrients back to your Health record so your full nutritional data lives in one place.
OKKAI is free to download. Core features — food logging, calorie and macro tracking, fasting, weight tracking, and Apple Health sync — are free. Advanced AI analysis including the full micronutrient breakdown and personalized recommendations is available with OKKAI Premium.