Health & Fitness
Carbohydrate Calculator
Turn a daily calorie target into actual grams of carbohydrate, protein and fat.
Carbohydrate Calculator
About the Carbohydrate Calculator
A calorie target tells you how much to eat. This tells you what — converting a daily calorie figure into actual grams of carbohydrate, protein and fat.
Five presets are built in: balanced, low carb, high protein, endurance and ketogenic. You can also set your own percentages, and the tool checks they add to 100 before calculating. Enter a calorie target directly, or let it work one out from your height, weight, age, sex and activity level.
The conversion rests on the Atwater factors: carbohydrate and protein supply 4 calories per gram, fat supplies 9. Those three numbers are why the same calorie total produces very different amounts of food depending on the split.
How to use the Carbohydrate Calculator
- Choose whether to work out calories from your body, or enter a target you already have.
- If working it out, enter sex, age, height, weight and activity level.
- Pick a macro split preset, or choose Custom to set your own percentages.
- Set how many meals a day you eat to get a per-meal figure.
- Select Calculate macros for grams of each macronutrient.
The conversion
Grams = (calories × percentage ÷ 100) ÷ calories per gram
Carbohydrate 4 kcal/g Protein 4 kcal/g Fat 9 kcal/g
Worked example
A 2,000-calorie day on a balanced 50/25/25 split.
Carbs: 2000 × 0.50 = 1,000 kcal ÷ 4 = 250 g
Protein: 2000 × 0.25 = 500 kcal ÷ 4 = 125 g
Fat: 2000 × 0.25 = 500 kcal ÷ 9 = 56 g
250 g carbs · 125 g protein · 56 g fat
Note how fat gives the smallest number for the same calories. At 9 kcal per gram it is more than twice as energy-dense as the other two.
The five presets compared
Grams shown for a 2,000-calorie day:
| Split | C / P / F % | Carbs | Protein | Fat |
|---|---|---|---|---|
| Balanced | 50 / 25 / 25 | 250 g | 125 g | 56 g |
| Low carb | 25 / 35 / 40 | 125 g | 175 g | 89 g |
| High protein | 40 / 35 / 25 | 200 g | 175 g | 56 g |
| Endurance | 60 / 20 / 20 | 300 g | 100 g | 44 g |
| Ketogenic | 5 / 25 / 70 | 25 g | 125 g | 156 g |
The ketogenic row shows how extreme that split is in practice. Twenty-five grams of carbohydrate is roughly one slice of bread and an apple — for the entire day.
How many carbs should you eat a day?
There is no single right answer, and anyone offering one is overselling. The reference ranges most public health bodies work from are wide:
| Nutrient | Accepted range | On 2,000 kcal |
|---|---|---|
| Carbohydrate | 45–65% of calories | 225–325 g |
| Protein | 10–35% of calories | 50–175 g |
| Fat | 20–35% of calories | 44–78 g |
Within those ranges, what suits you depends on what you do and what you can stick to. Endurance athletes genuinely need more carbohydrate to fuel training. Someone lifting weights in a deficit benefits from more protein. Someone who simply finds low-carb eating easier to sustain is not doing anything wrong.
Adherence beats optimisation. The split you can maintain for a year outperforms the theoretically superior one you abandon in three weeks.
Protein, and why it matters most in a deficit
Used as a protein calculator for weight loss, this tool’s high-protein preset puts you near the 1.6 g per kg of body weight that research supports for keeping muscle while dieting.
If you are losing weight, protein is the macronutrient worth getting right. It preserves lean tissue while you are in a deficit, and it is the most satiating of the three per calorie.
Common guidance sits around 1.6 to 2.2 grams per kilogram of body weight for people training while losing fat — considerably above the 0.8 g/kg minimum set to prevent deficiency, which is a floor rather than a target. For a 70 kg person that is roughly 112 to 154 grams a day.
How to calculate net carbs (including Atkins)
Low-carb and ketogenic approaches often count net carbs rather than total:
Net carbs = total carbohydrate − fibre − sugar alcohols
The reasoning is that fibre passes through largely undigested and most sugar alcohols are only partly absorbed, so neither raises blood glucose the way starch and sugar do. This calculator works in total carbohydrate; subtract fibre yourself if you are tracking net.
Net carbs is not a regulated term everywhere, and food labels differ. In the US, labels show total carbohydrate with fibre listed separately, so you can work it out. In the UK and EU the declared carbohydrate figure already excludes fibre, so it is closer to net already — check which convention your labels use before subtracting twice.
Why fat has 9 calories per gram
Because of its chemistry. Fat molecules are long hydrocarbon chains that are far less oxidised than carbohydrate, so burning them releases more energy per unit mass. Carbohydrate already carries oxygen bound within it, which leaves less energy to extract. Alcohol sits between the two at about 7 kcal per gram.
This is a fact about energy density, not about whether fat is good or bad. It does mean that a small change in fat intake moves your calorie total more than the same weight change in carbohydrate or protein.
To get a calorie target in the first place, use the calorie calculator.
This is an estimate, not a prescription. Individual energy needs vary by roughly ±10% even between people with identical height, weight, age and sex. Nothing here is medical or dietary advice. If you are pregnant, breastfeeding, managing a health condition, taking medication that affects appetite or metabolism, or have a history of disordered eating, talk to a doctor or registered dietitian before changing what you eat.
Calories per gram of carbs, protein and fat (1 gram of carbs = 4 calories)
Every macro calculator rests on these four numbers:
| Nutrient | Calories per gram | 100 g gives |
|---|---|---|
| Carbohydrate | 4 kcal | 400 kcal |
| Protein | 4 kcal | 400 kcal |
| Fat | 9 kcal | 900 kcal |
| Alcohol | 7 kcal | 700 kcal |
So 1 gram of carbs has 4 calories. To turn calories into grams of carbs, divide by 4. 1,000 calories from carbs is 250 g.
How many carbs per day to build muscle?
Carbs fuel hard training. Sports nutrition guidance usually gives carbs per kilogram of body weight:
- Light training — about 3–5 g per kg a day.
- Moderate to hard training (about 1 hour a day) — about 5–7 g per kg.
- Endurance athletes (1–3 hours a day) — 6–10 g per kg.
A 75 kg lifter training most days might aim for 375–525 g of carbs. Pair that with about 1.6 g of protein per kg. Pick the High protein or Balanced preset above and adjust from there.
Keto diet macro calculator
Choose the Ketogenic preset. It sets 5% carbs, 25% protein and 70% fat. On 2,000 calories that is about 25 g of carbs, 125 g of protein and 156 g of fat. Most keto plans keep total carbs under 20–50 g a day, or count net carbs instead.
If you have diabetes or take medicine that lowers blood sugar, talk to your doctor or dietitian before changing your carbs. There is no single right number of carbs for people with diabetes — it should be set with your care team.
How to calculate calories in a recipe
A recipe nutrition calculator does nothing magic. You can work out the nutrition facts from a recipe yourself in four steps:
- List every ingredient with its weight in grams.
- Look up the calories, carbs, protein and fat for each one on the packet or in a food database such as USDA FoodData Central.
- Add the totals together for the whole dish.
- Divide by the number of servings.
Example: a pasta dish with 300 g dry pasta (1,070 calories), a 400 g jar of sauce (280) and 30 g of olive oil (265) totals 1,615 calories. Split into 4 servings, that is about 404 calories each. To find calories from fat, multiply the fat grams by 9; from carbs or protein, multiply by 4.
How many carbs should a diabetic eat a day?
There is no single number. The American Diabetes Association recommends an individual plan rather than a fixed carb target. Many diabetes educators start adults at roughly 45–60 g of carbs per meal and adjust from there, based on blood sugar readings, medication and activity.
People who use insulin may also work with an insulin-to-carb ratio — the grams of carbohydrate one unit of insulin covers. That ratio is set by your doctor or diabetes team and is different for every person.
If you have diabetes, use this calculator only to plan meals within targets your care team has given you. Do not change medication based on a calculator.
Other ways to use this calculator
The macro split presets cover most popular diets.
- Keto macro calculator — pick the Ketogenic preset: 5% carbs, 25% protein, 70% fat.
- Macros calculator for weight loss — enter a calorie target below your maintenance and choose High protein.
- Macro to calorie calculator — 4 kcal per gram of carbs and protein, 9 per gram of fat — see calories from macros.
- Low carb diet calculator — the Low carb preset sets 25% carbs.
- Carb calculator and carbs calculator — daily carbs in grams from your calorie target.
- Macronutrient split and keto macros — pick a preset or set your own percentages.
- How many calories in 1 gram of carbs? — 4, the same as protein.
- How much carbs per day to build muscle? — commonly 3–5 g per kg of body weight for people training hard; use the endurance or balanced preset.
Related guides
Frequently asked questions
Most public health guidance puts carbohydrate at 45–65% of daily calories — roughly 225 to 325 grams on a 2,000-calorie diet. That range is wide because needs genuinely differ. Endurance athletes benefit from the upper end; people following low-carb approaches sit well below it and can do so healthily. Within the range, the split you can actually sustain matters more than the exact figure.
A macro split is how your daily calories divide between carbohydrate, protein and fat, given as percentages. A balanced split is 50/25/25; low carb is around 25/35/40; ketogenic is roughly 5/25/70. The percentages always total 100. Because fat carries 9 calories per gram against 4 for the others, the same percentage produces very different gram amounts.
Because fat molecules are long hydrocarbon chains that are much less oxidised than carbohydrate, so burning them releases more energy per gram. Carbohydrate already carries oxygen within its structure, leaving less energy to extract. Alcohol falls between at about 7 kcal per gram. It is a fact about energy density, not a judgement about whether fat is good for you.
The one you can stick to. Trials comparing low-carb, low-fat and balanced approaches at matched calories generally find similar results over a year, with adherence explaining most of the difference. That said, protein is worth prioritising in a deficit — around 1.6 to 2.2 g per kilogram of body weight preserves muscle and keeps you fuller, whichever way you arrange the rest.
One gram of carbohydrate has 4 calories, the same as protein. Fat has 9 calories per gram. To turn calories from carbs into grams, divide by 4.
Sports nutrition guidance suggests about 5 to 7 g of carbs per kilogram of body weight a day for moderate to hard training. A 75 kg person would aim for roughly 375 to 525 g, alongside enough protein.
Take the total carbohydrate on the label and subtract the fibre and any sugar alcohols. A food with 20 g of carbs, 8 g of fibre and 4 g of sugar alcohols has 8 g of net carbs. Atkins counts net carbs, not total carbs.
One gram of carbohydrate has about 4 calories, the same as protein. Fat has about 9 calories per gram and alcohol about 7.
Sources and further reading
- Dietary Guidelines for Americans 2020–2025 — the acceptable macronutrient distribution ranges quoted above
- National Academies — Dietary Reference Intakes for macronutrients — the 45–65% carbohydrate and 10–35% protein ranges
- FDA — Nutrition labelling and carbohydrate declaration — how total carbohydrate and fibre appear on US labels
- NHS Eatwell Guide — UK dietary guidance and label conventions