UtilitiesTools

Macro Calculator

Turn your goal into a daily plate. Enter your stats, pick a goal and a macro split, and get your target calories plus exact grams of protein, carbs, and fat. Everything runs in your browser — no sign-up, nothing uploaded.

Calories / day
  • Protein (g)
  • Carbs (g)
  • Fat (g)

🔒 Calculated in your browser; nothing is uploaded.

What is the Macro Calculator?

The macro calculator turns your body stats and a fitness goal into a clear daily eating target: how many calories to eat and exactly how many grams of protein, carbohydrate, and fat make up those calories. "Macros" is short for macronutrients — the three energy-providing nutrients in food. Counting calories alone tells you how much to eat; counting macros tells you what that food should be made of, which is what actually shapes muscle, energy, and body composition over time.

How to use it

  1. Enter your sex, age, weight, and height. Toggle kg/lb and cm/in so you can type whatever your scale and tape measure show.
  2. Pick your activity level, from sedentary to extra active, so the estimate reflects how much you actually move.
  3. Choose a goal — lose fat, maintain, or build muscle — and the calculator adjusts your calories up or down for you.
  4. Select a macro split preset, or choose Custom and drag the sliders to set your own protein, carb, and fat percentages.
  5. Read your daily calories and macro grams instantly — there is no Calculate button — then copy the result and close the tab.

The formula and method behind it

The calculator runs four short steps in order:

BMR = 10 x kg + 6.25 x cm - 5 x age + s

First it finds your basal metabolic rate (the energy you burn at complete rest) with the Mifflin-St Jeor equation, where s is +5 for men and -161 for women. Then it scales that by an activity factor to get your total daily energy expenditure:

TDEE = BMR x activity factor

The activity factors are 1.2 (sedentary), 1.375 (light), 1.55 (moderate), 1.725 (very active), and 1.9 (extra active). Next it adjusts calories for your goal — a 20% deficit to lose fat, maintenance, or a 10% surplus to build muscle. Finally it splits those calories into grams, using 4 calories per gram for protein and carbohydrate and 9 calories per gram for fat:

grams = (calories x ratio percent) / kcal per gram

Examples

Common use cases

Why use this one

Many macro tools lock you into a single preset or hide the math behind an account. This one gives you five ways to split your calories — balanced, low-carb, high-protein, keto, and a fully custom slider mode — and shows the grams update live as you drag. It handles both metric and imperial units, lays out BMR, TDEE, goal calories, and macros in one screen, and is built mobile first so it works one-handed. Best of all, it is completely private: every number stays in your browser, nothing is uploaded, and there is no app to install or login to create.

Frequently asked questions

How does this macro calculator work?

It first estimates your basal metabolic rate with the Mifflin-St Jeor equation, multiplies it by an activity factor to get your total daily energy expenditure, adjusts those calories for your goal (a 20% deficit to lose fat, maintenance, or a 10% surplus to build muscle), then splits the result into protein, carb, and fat grams using the ratio you pick.

What macro ratio should I use?

Balanced (30/40/30) suits most people. Low-carb (40/20/40) and keto (25/5/70) lower carbohydrate intake, while high-protein (40/40/20) favors muscle gain and fullness. You can also drag the custom sliders to set any split you like; the grams update instantly.

How many calories are in protein, carbs, and fat?

Protein and carbohydrates each provide 4 calories per gram, and fat provides 9 calories per gram. The calculator uses these Atwater factors to convert your calorie target into grams of each macronutrient.

Is my data private?

Yes. Every calculation runs entirely in your browser. Your age, weight, height, and goal are never uploaded, stored, or shared, and you do not need an account.