Macro Calculator – Carbs, Protein and Fat
Turn your calorie needs into grams of carbohydrate, protein and fat. Choose a goal and a split, and the calculator shows daily calories, grams for each macro, protein per kilogram and a fibre target, and flags any split outside the U.S. Dietary Guidelines ranges.
Macro calculator
On this calculator: Ctrl+Enter copies the result, Shift+Alt+L copies a link to the current inputs, Shift+Alt+R resets, Shift+Alt+P opens Print / Save PDF. These shortcuts do not run while you type in a field, except Ctrl+Enter.
Saved results on this device
Stored only in this browser, not on our servers.
How to use the macro calculator
- Enter your details. Sex, age, weight, height and activity level give your maintenance calories with the Mifflin-St Jeor equation.
- Choose a goal. Maintain, lose about 1 lb (0.5 kg) a week, or gain about 0.5 lb (0.25 kg) a week. Loss never goes below 1,200 calories (women) or 1,500 (men).
- Pick a split. Balanced is 50% carbohydrate, 20% protein and 30% fat. Higher protein is 45/25/30. Or enter your own percentages and fat fills the remainder.
- Read the grams. Carbohydrate and protein count 4 calories a gram, fat 9. The result also shows protein per kilogram of body weight and a fibre goal.
Not medical advice. This calculator gives general information from published formulas and is not a diagnosis, treatment or substitute for a doctor, midwife or registered dietitian. This is not suitable as written for pregnancy, kidney disease, diabetes or an eating disorder. Ask a registered dietitian for advice tailored to you.
How the grams are worked out
Calories × percentage ÷ 4 = grams of carbohydrate or protein
Calories × percentage ÷ 9 = grams of fat
First the tool estimates maintenance calories and applies your goal: minus 500 for loss (never below the calorie floor), plus 250 for a slow gain. Then it splits that total by your chosen percentages.
Worked examples
A 30-year-old man, 80 kg, 180 cm, moderately active, maintaining, balanced 50/20/30. Calories 2,760: 345 g carbohydrate, 138 g protein, 92 g fat. Protein is 1.73 g/kg and the fibre goal is 39 g.
A 35-year-old woman, 165 lb, 5 ft 7 in, lightly active, losing about 1 lb a week, 45/25/30. Calories 1,530: 172 g carbohydrate, 96 g protein, 51 g fat, protein 1.28 g/kg, fibre 21 g.
Custom 30% carbohydrate, 40% protein. The result flags that carbohydrate and protein are outside the guideline ranges, so it is worth checking with a dietitian.
Guideline ranges
| Macro | Share of calories | Calories per gram |
|---|---|---|
| Carbohydrate | 45–65% | 4 |
| Protein | 10–35% | 4 |
| Fat | 20–35% | 9 |
Using the numbers well
Percent splits are targets for the average day, not a daily pass or fail. Check your calories with the calorie calculator, compare protein with the protein calculator, and plan the pace with the weight loss calculator. Choose mostly whole grains, vegetables, fruit, legumes and lean protein, and drink enough with the water intake calculator.
Frequently asked questions
What are macros?
Macronutrients are carbohydrate, protein and fat, the three nutrients that supply calories. Alcohol also supplies energy at 7 calories a gram but is not counted as a macro here.
What macro split should I use?
The Dietary Guidelines for Americans give acceptable ranges of 45 to 65% of calories from carbohydrate, 10 to 35% from protein and 20 to 35% from fat. The balanced and higher-protein presets sit inside those ranges.
How many calories are in a gram of each macro?
Carbohydrate and protein each have about 4 calories a gram, and fat about 9. So 2,000 calories at 50/20/30 is 250 g carbohydrate, 100 g protein and about 67 g fat.
How much fibre should I aim for?
The Dietary Guidelines use 14 grams of fibre per 1,000 calories as the target, which the result shows for your calorie level.
Is a high-protein split safe?
Healthy adults can usually eat above the 0.8 g/kg RDA, and the ISSN suggests 1.4 to 2.0 g/kg for people who exercise. People with kidney disease should ask a doctor first. See the protein calculator for ranges by situation.
Why is low-carb not a preset?
Going below the 45% carbohydrate range suits some people but needs individual guidance, especially with diabetes or medicines. You can enter a custom split, and the tool flags anything outside the guideline ranges.
Do macros matter more than calories?
For weight change, calories decide the direction. Macros shape fullness, muscle retention and nutrition quality, so both matter, along with food quality and fibre.
Related calculators
Calorie Calculator (BMR & TDEE)
BMR, TDEE and maintenance calories with the Mifflin-St Jeor equation.
Protein Calculator
Daily protein in grams from body weight and activity.
Weight Loss Calculator (Calorie Deficit)
Daily calories, deficit and a realistic goal date for a weight goal.
Water Intake Calculator
Daily water from drinks and food, plus workout replacement.
Sources and references
- Dietary Guidelines for Americans – acceptable macronutrient distribution ranges and fibre
- National Academies – Dietary Reference Intakes for Energy, Carbohydrate, Fiber, Fat, Fatty Acids, Cholesterol, Protein and Amino Acids
- Jäger R et al. (2017) – ISSN position stand: protein and exercise, J Int Soc Sports Nutr
- Mifflin MD et al. (1990) – A new predictive equation for resting energy expenditure in healthy individuals, Am J Clin Nutr
- NHLBI – Facts About Healthy Weight (calorie ranges for weight loss)
About this calculator
Written and maintained by Rashid Mehmood, founder of CalcTen. The formulas are unit-tested against hand-worked examples, and the content is reviewed whenever product sizes or guidance change. Last updated and reviewed 14 November 2026. See our editorial policy. If you spot a mistake, report it.
This calculator gives general information and is not medical advice, diagnosis or treatment. Results are estimates based on population averages. Talk to a doctor or other qualified health professional about your own situation. Read the disclaimer.