YourFit: snap a photo of your meal and get the calories.

Get the free app →

Macro Calculator

Get daily targets for protein, carbohydrate and fat based on your maintenance calories and goal. Choose how much protein you want per unit of body weight; the rest of your calories are split between fat and carbs.

Units
Goal
Sex
Activity level
Protein target (body weight)

Enter your age, height and weight to see your daily macros.

How your macros are calculated

  • Calories: your TDEE from the Mifflin-St Jeor equation and your activity level, then 20% less for fat loss or 10% more for muscle gain.
  • Protein: your body weight times the protein setting you pick (1.6, 2.0 or 2.2 g per kg, which is about 0.7, 0.9 or 1.0 g per lb).
  • Fat: 25% of calories, and never less than 0.6 g per kg of body weight.
  • Carbs: whatever calories are left, divided by 4.

Choosing a goal

Lose fat

A deficit of about 20% below maintenance is a moderate pace for most people. Keep protein at the higher settings and keep lifting weights so more of the weight you lose comes from fat.

Maintain

Eat at maintenance to hold your weight while you improve performance or recover from a diet.

Build muscle

A small surplus (about 10%) supports muscle gain with less fat gain than a large one. Progress in the gym matters more than the exact surplus.

Related tools

Just want your maintenance number? Use the TDEE calculator. Focused on protein? The protein calculator gives a range and a per-meal target.

Frequently asked questions

What are macros?

Macronutrients are the three nutrients that provide calories: protein and carbohydrate (about 4 calories per gram) and fat (about 9 calories per gram). Alcohol also has calories (about 7 per gram) but isn't counted as a macro here.

What macro split should I use to lose fat?

Set protein first (around 1.6-2.2 g per kg of body weight), keep fat at roughly 20-30% of calories, and let carbs fill the rest. The total calorie deficit drives fat loss; the protein target helps you keep muscle while you lose weight.

Why does this calculator set protein by body weight instead of a percentage?

Protein needs scale with body size, not with how many calories you eat. A percentage split can give too little protein in a deficit and more than you need when calories are high.

Do I have to hit my macros exactly?

No. Getting close to your calorie and protein targets most days matters much more than being exact on carbs and fat. Many people aim to land within about 5-10 grams of protein and 100 calories of the calorie target.

How often should I recalculate my macros?

Recalculate when your weight changes by a few kilograms (5+ lb), when your training changes, or when your progress stalls for two to three weeks.

Hit your macros without the spreadsheet

YourFit logs meals from a photo, barcode or restaurant menu, and its AI coach builds your nutrition plan and adjusts it weekly.

Get YourFit free

Free on iPhone and Android, with an optional Pro plan.

Last reviewed September 29, 2026. These calculators give estimates for healthy adults and aren't medical advice. Talk to a doctor or registered dietitian if you have a medical condition, are pregnant, or have a history of disordered eating.