This macro calculator turns a daily calorie figure and the percentage split you choose into grams of protein, carbohydrate and fat. It is a conversion tool: you decide the percentages, and it shows what they mean on a food label.
How to use the Macro calculator
- Enter your daily calories in Daily energy (kcal). If you need an estimate first, use the Daily Calorie Needs calculator.
- Type percentages in Protein share, Carbohydrate share and Fat share. They must add up to exactly 100.
- Read grams of protein in the main result and grams of carbohydrate and fat in the detail line.
How the macro calculation works
How grams are worked out
Each macronutrient supplies a set number of calories per gram: 4 for protein, 4 for carbohydrate and 9 for fat. These general factors are the ones US nutrition labels may use. The calculator multiplies your calories by each share, then divides by 4 or 9.
Because fat carries more than twice the energy per gram, a 30% fat share produces far fewer grams than a 30% protein share. That is expected and is not a rounding problem.
The tool leaves out alcohol (about 7 kcal per gram) and does not treat fiber separately. Label values themselves are rounded, so your daily totals from food tracking will rarely match to the gram.
Choosing a split
For adults, the National Academies set Acceptable Macronutrient Distribution Ranges of 10–35% of calories from protein, 45–65% from carbohydrate and 20–35% from fat. These ranges are linked with lower chronic disease risk while meeting nutrient needs, and they are a reasonable reference when you test a split.
Protein is often easier to plan in grams per kilogram of body weight. The adult RDA is 0.8 g per kg per day, the amount that meets the needs of nearly all healthy adults. A 70 kg adult would need 56 g to meet it, well below what most macro splits produce.
Very high-protein or very low-carbohydrate plans, and anyone managing diabetes, kidney disease or another condition, should be set up with a doctor or registered dietitian.
Worked example
Daily energy: 2200 kcal · Protein share: 25 % · Carbohydrate share: 45 % · Fat share: 30 %
- Protein: 2,200 × 25% = 550 kcal; 550 ÷ 4 = 137.5 g.
- Carbohydrate: 2,200 × 45% = 990 kcal; 990 ÷ 4 = 247.5 g.
- Fat: 2,200 × 30% = 660 kcal; 660 ÷ 9 = 73.333 g.
- Check: 550 + 990 + 660 = 2,200 kcal.
Result: 137.5 g protein
Assumptions and limits
Adult screening/fitness estimate, not a diagnosis, treatment plan or medical advice. Individual needs vary; consult a clinician. Uses 4/4/9 kcal per gram. Percentages are chosen by you, not a recommended diet; alcohol/fiber and labeling variations excluded.
Formula and worked examples last checked November 20, 2026. Spotted a problem? Report an error.
Frequently asked questions
How many grams of protein are in 100 calories of protein?
25 grams, because protein provides 4 calories per gram. The same is true for carbohydrate. For fat, 100 calories is about 11.1 grams, because fat provides 9 calories per gram.
What is a good macro ratio for weight loss?
No single ratio suits everyone, and weight change depends on total calories over time, whatever the split. Staying within the adult ranges of 10–35% protein, 45–65% carbohydrate and 20–35% fat is a sensible reference. A registered dietitian can tailor it to you.
Why must my percentages total 100?
Each percentage is a share of the same calorie total, so the shares cannot add up to more or less than the whole. If you enter 30, 40 and 25, five percent of your calories would be unassigned, and the tool asks you to fix it.
Do I count fiber as a carbohydrate?
On US labels, fiber is included in total carbohydrate. This calculator applies 4 kcal per gram to the whole carbohydrate share, so it matches label totals, even though fiber supplies fewer usable calories in practice.
Is 150 grams of protein a day too much?
It depends on body size, activity and health. For a 70 kg adult, 150 g is about 2.1 g per kg, nearly three times the 0.8 g/kg RDA, and is within the range some athletes use. People with kidney disease should not raise protein intake without medical advice.