Macro Calculator

Turn daily calories into grams of carbs, protein and fat. Pick a preset or set your own split, then see the figures for every meal.

Health & Fitness Runs in your browser · no upload

Reviewed 23 November 2026 · Free · No account needed

ExecutionYour browserInput never leaves your tab
File retentionNoneNothing is stored
AccountNot requiredNo sign-up, no paywall
PriceFreeNo trial, no usage cap on the tool itself

How to use

  1. Pick I know my calories and type a daily target, or pick Work it out for me and enter your age, sex, height, weight, activity and goal.
  2. Choose a preset split such as Balanced, High protein, Low carb or Keto, or type your own three percentages that add up to 100.
  3. Read the grams of carbs, protein and fat and the calories each one gives.
  4. Set the number of meals to see the grams for each meal and copy the result.

Example

Input: 2,000 kcal, Balanced 50% carbs, 20% protein, 30% fat

Output: 250 g carbs, 100 g protein, 67 g fat

How it works

Each macronutrient gets its share of your daily calories, and the calories are turned into grams using the energy in each gram: 4 kcal for carbohydrate, 4 kcal for protein and 9 kcal for fat. If you ask the calculator to work out your calories, it finds your basal metabolic rate with the Mifflin-St Jeor equation, multiplies by your activity factor and adds or subtracts calories for your goal.

Grams of carbs = calories × carb % ÷ 4. Grams of protein = calories × protein % ÷ 4. Grams of fat = calories × fat % ÷ 9. Calories from stats = BMR × activity factor + goal adjustment, where BMR (man) = 10 × kg + 6.25 × cm − 5 × age + 5.

Another example

At 2,000 kcal with a 50/20/30 split: carbs 1,000 ÷ 4 = 250 g, protein 400 ÷ 4 = 100 g, and fat 600 ÷ 9 = 66.7, shown as 67 g. Over three meals that is about 83 g of carbs, 33 g of protein and 22 g of fat per meal.

Limits and edge cases

  • Daily calories must be between 800 and 10,000, and the three percentages must add up to 100.
  • Calories from your stats use the Mifflin-St Jeor equation with an activity factor. It is an estimate within about 10% for most adults, so adjust it using your real results over a few weeks.
  • Grams are rounded to whole numbers, so the meal table can differ from the target by a few calories.
  • Presets are common starting points, not medical advice. Very low calorie targets should be followed only under a doctor or dietitian.
  • Fat is 9 kcal per gram, so a 30% fat share is far fewer grams than the same share of carbs. A low gram figure for fat is expected.
  • If you pick a split such as 40/30/30 and then change one box, the preset highlight turns off, and the total must be 100 before grams appear.
  • Alcohol and fibre are not counted. Alcohol gives 7 kcal per gram, so food and drink with alcohol will not match the targets exactly.
  • A target below 1,200 kcal (1,500 kcal for a man when you use your own stats) shows a warning, because eating that little for long needs medical support.

Method & sources

Calories are split by your chosen percentages and converted to grams at 4 kcal per gram of carbohydrate or protein and 9 kcal per gram of fat. The calorie estimate uses Mifflin-St Jeor.

Privacy

Everything is calculated in this browser tab. The numbers you enter are never sent to a server or stored.

About this page

Written and reviewed by Toolnexo on 23 November 2026. The limits above describe the published tool, not an idealised version of it. If a result looks wrong or the page is unclear, email [email protected] with the tool URL and what you entered. Corrections are published here.

Further reading

Guides that use Macro Calculator

All guides →

Related tools

FAQ

Questions about Macro Calculator

How do I calculate my macros?

Start with your daily calories, choose what percentage should come from carbohydrate, protein and fat, and convert each share to grams: carbs and protein are 4 calories per gram, fat is 9. This calculator does all three steps and splits the result across your meals.

What is a good macro split for weight loss?

There is no single best split. A common starting point is 35 to 40% carbs, 30 to 35% protein and 25 to 30% fat, with calories set around 500 below maintenance. Higher protein tends to help you feel full and keep muscle, but the calorie deficit matters most.

How much protein do I need?

Most guidance for healthy adults is about 0.8 g per kilogram of body weight, and people who train hard often use 1.2 to 2.0 g per kilogram. In the Work it out for me mode the calculator shows your protein in grams per kilogram so you can compare.

Is keto 5% carbs?

A strict keto diet is often set at 5 to 10% of calories from carbohydrate, around 20 to 50 grams a day, with most calories from fat. The Keto preset uses 5% carbs, 20% protein and 75% fat, which you can adjust.

Do I have to hit my macros exactly?

No. Daily intake varies and food labels are not precise. Aim to land within about 5 to 10% of each target over a week, and use the results over a few weeks to adjust.

Is my data stored?

No. Everything is calculated in your browser and none of it is uploaded or saved.