FOOD CALCULATOR

Carbohydrate Calculator: Daily Carb Needs by Diet Type

Work out daily carbohydrate needs in grams from your calorie needs and a diet type, from balanced to keto.

Reviewed by the Calculator.nu math team
Updated September 2026
years
in
lb
Estimated daily calories (TDEE)
4450.5 kcal/day
Recommended carbohydrates per day
556.3 g
Minimum carbs
472.9 g
Maximum carbs
639.8 g
Grams per meal
139.1 g
Calories from carbohydrates
2225.2 kcal

The formula

carb grams = daily calories × diet's carb % ÷ 4 kcal per gram
# daily calories (TDEE) from Mifflin-St Jeor BMR × activity multiplier; carbohydrate provides 4 kcal per gram

How to calculate carbohydrate needs

Carbohydrate needs scale with two things: how many calories you need overall, and what share of those calories your chosen diet allocates to carbs. This calculator works out your estimated daily calories first, then applies a carb percentage for the diet type you pick, converting the result to grams.

Daily calories are estimated with the Mifflin-St Jeor equation for basal metabolic rate, scaled by an activity multiplier for total daily energy expenditure. That calorie figure is then split by diet type: balanced diets allocate roughly 50% of calories to carbs, low carb around 25%, keto as low as 5%, and high-carb diets around 65%. Since carbohydrate supplies 4 kcal per gram, dividing the carb calories by 4 gives the gram target.

The calculator asks for:

  • Gender
  • Age (years)
  • Height (cm)
  • Weight (kg)
  • Activity level
  • Diet type

No submit button: type and the answer moves. Your inputs end up in the link, so the page can be shared already filled in.

The order the fields are filled in makes no difference to the result — the calculator recomputes the whole formula from whatever is currently in every field, not step by step. That means it is safe to adjust one number, watch the result change, and adjust it back, without worrying about resetting anything first.

Why carbohydrate needs matters

Most people who look up a carbohydrate needs calculation already have a specific number in mind — a quote, an offer, a target — and want to check it rather than learn the theory behind it. This page is built for that: enter your own figures, see the result immediately, and change any field to see how the answer moves without redoing the arithmetic from scratch each time.

Beyond a one-off check, the same calculation is worth revisiting whenever the underlying numbers change — a new interest rate, a change in income, a different term. Because the figures live in the page's own web address, coming back to update just one field and compare the new result against the old one takes seconds rather than starting again from a blank page.

The reason a page like this exists at all, rather than leaving the calculation to a spreadsheet or a textbook appendix, is that the formula behind carbohydrate needs is fiddly enough to get wrong by hand but not complicated enough to need specialist software. That middle ground — real enough maths to matter, simple enough to check instantly — is exactly what a dedicated calculator is for, and it is why the same figure recalculated here should match a careful manual calculation almost exactly.

A calculator like this one is often bookmarked and returned to repeatedly over months rather than used once, particularly for anything tied to an ongoing plan such as a mortgage, a savings goal or an investment being tracked. Because the figures live in the web address rather than only in memory, coming back to the same page with updated numbers is quicker than starting from a blank spreadsheet each time.

Worked example

A concrete run-through, using the values already in the fields:

  • Gender: male
  • Age: 30 years
  • Height: 170 cm
  • Weight: 70 kg
  • Activity level: moderately_active
  • Diet type: balanced

That gives:

  • Estimated daily calories (TDEE): 2,507.1 kcal/day
  • Recommended carbohydrates per day: 313.4 g
  • Minimum carbs: 266.4 g
  • Maximum carbs: 360.4 g
  • Grams per meal: 78.3 g
  • Calories from carbohydrates: 1,253.6 kcal

These figures are only the calculator's own starting values, included so the working is visible rather than hidden inside the tool above. Replace them with your own numbers and the same arithmetic applies — nothing about the method changes, only the inputs feeding it.

Reading the result

Because keto's target here is a percentage of your total calories rather than a fixed number, it can land noticeably below the commonly quoted "20-50 g a day" keto rule of thumb once your total calorie need is on the higher side — the percentage-based method and the flat-gram rule of thumb are simply two different ways of approximating the same diet, and they will not always agree.

Where this goes wrong. "Low carb" has no single agreed definition in nutrition guidance, so the 25% used here is a reasonable middle value rather than a fixed clinical threshold — some sources set it lower, some higher. Treat every figure on this page as a planning estimate, not a medical prescription, and adjust based on how your body responds.

A useful check on any unfamiliar result is to compare it against a rough mental estimate first — round the inputs to convenient numbers and see whether the calculator's answer lands in roughly the same territory. A wildly different figure usually means one of the fields was entered in the wrong unit, most often a percentage typed as a whole number where a decimal was expected, or the reverse.

Because diet type already does that work more precisely — a keto or low-carb selection already determines the carbohydrate share far more specifically than a generic "lose weight" option would, so adding both would be redundant. If you want a calorie deficit or surplus for weight change, adjust your activity level or track your actual TDEE against a target separately.

That common rule of thumb is a flat gram target, while this calculator applies keto's 5% as a share of your total calories. At higher calorie needs, 5% of calories can work out to more grams than 20-50g; at very high calorie needs the two methods can diverge either way. Both are reasonable approximations of the same diet, not exact prescriptions.

The headline figure is estimated daily calories (TDEE). With 30 years age, 170 cm height and 70 kg weight, that comes to 2,507.1 kcal/day. Change any field and the figure moves with it.

Whenever one of the underlying figures changes — a new interest rate, a different balance, an updated term — since the result only reflects what is currently in the fields. There is no need to keep a separate record of past results; the web address for a filled-in version already carries the figures used to produce it.

Not unless a tax rate or a fee is explicitly one of the inputs above. Where it is not, the figure shown is a gross calculation, and any tax due depends on your personal circumstances and current tax rules, which are worth checking separately.

The arithmetic itself is exact — the calculator applies the formula shown above precisely, with no rounding until the final figure is displayed. The uncertainty, where it exists, is entirely in the inputs: an estimated rate or an approximate balance carries that same approximation through to the result.

Was this calculator helpful?

Tap a star to rate it. Your feedback helps us improve the tools people rely on most.