Carbohydrate Intake Calculator

Calculate how many carbs fit into your daily calories after protein and fat.

your calorie target

grams of protein per day

grams of fat per day

Enter calories, protein grams, and fat grams.

How this carbohydrate intake calculator works

A carbohydrate intake calculator fills leftover calories after protein and fat. Carb grams = remaining calories ÷ 4. The headline rounds grams to 0 decimals. Details also show carb calories, carb percentage of the calorie target, and — when Target comparison is open with a target greater than 0 — target carb grams.

Calories must be greater than 0. Empty or typed 0 calories is no result. Empty protein or fat grams count as 0. Leftover calories are floored at 0, so carbs never go negative. Target comparison is GPA-style Advanced: the target is unused while the section is closed, even if a percentage stays typed.

How to use the carbohydrate intake calculator

  1. Enter daily calories greater than 0. Empty or typed 0 is no result.
  2. Enter protein grams and fat grams if you have them. Empty fields count as 0.
  3. Leave Target comparison closed to see leftover carb grams, carb calories, and carb percentage only.
  4. Open Target comparison only to compare leftover carbs with a target percentage. Enter a target greater than 0 to show the target-grams row. Closing the section treats the target as unused even if the number stays typed.

Target comparison, and closing it

This section is GPA-style. Closed, the target is unused and the target-grams row hides. Open, empty target counts as 0 (clamped 0–100) and the row still hides. Open with a target greater than 0, target grams = calories × target% ÷ 4 and the row shows. Closing the section is an opt-out. Leftover carbs are always floored at 0; they do not go negative.

Carb formulas

Remaining calories = max(0, calories − protein×4 − fat×9). Carb grams = remaining ÷ 4. Carb calories = carb grams × 4. Carb percent = carb calories ÷ calories. Target grams, only while Target comparison is open and the target is greater than 0, are calories × target% ÷ 4.

Carb grams from leftover calories
carbs g=remaining kcal4
Target carb grams
target g=calories×target fraction4

Worked examples

Example: 2000 kcal, 140 g protein, 65 g fat, Target comparison closed

Protein calories are 140 × 4 = 560. Fat calories are 65 × 9 = 585. Remaining calories are max(0, 2000 − 560 − 585) = 855. Carb grams are 855 ÷ 4 = 213.75. The headline rounds to 214 g. Carb calories are 855. Carb percent is 855 ÷ 2000 = 42.8%. The target-grams row hides.

Example: the same inputs with Target comparison open and a 45% target

Leftover carbs stay 213.75 g (headline 214 g). Target grams are 2000 × 0.45 ÷ 4 = 225 g. Closing Target comparison hides the 225 g row even if 45% stays typed.

Example: 2000 kcal, 400 g protein, 80 g fat

Protein calories are 1600 and fat calories are 720, which already exceed 2000. Remaining calories are max(0, 2000 − 1600 − 720) = 0, so carb grams, carb calories, and carb percent are 0. Unlike the macro calculator’s body-weight mode, leftover carbs on this page never go negative.

Things to keep in mind

This fills leftover calories after protein and fat; it is not a meal plan or medical advice. Protein and carbs are 4 kcal/g; fat is 9 kcal/g. Empty protein or fat grams count as 0, so calories alone put 100% of the target into carbs.

Carbohydrate intake calculator FAQ

Which fields are required?

Only daily calories, and they must be greater than 0. Empty or typed 0 is no result. Empty protein or fat grams count as 0. Target comparison is optional.

What happens when I close Target comparison?

The target is unused even if a percentage stays typed — the same GPA contract as other calculators on this site. The target-grams row hides. Calories, protein, and fat still produce leftover carb grams.

When does the target-grams row appear?

Only while Target comparison is open and the target is greater than 0. Open with an empty target (treated as 0) still hides that row.

Can leftover carbs go negative?

No. Remaining calories are floored at 0, so carb grams cannot be negative. If protein and fat already use more than the calorie target, carbs are 0 g.

How is carb percentage calculated?

Carb calories (leftover calories, which equal carb grams × 4) divided by the calorie target. On 2000 kcal with 140 g protein and 65 g fat, that is 855 ÷ 2000 = 42.8%, shown to 1 decimal.

Does this carbohydrate intake calculator store my numbers?

Completed results can be saved in this browser’s local history so you can reopen them later. They stay on your device and are not sent to our servers or to analytics.