Carbohydrates are the body’s primary energy source, but the amount you need varies dramatically depending on your activity level, metabolic health, and dietary philosophy. A Carb Calculator estimates your Total Daily Energy Expenditure using the Mifflin-St Jeor equation and then allocates a portion of those calories to carbohydrates based on the diet type you select from a standard high-carb eating pattern all the way down to a ketogenic approach. It also shows you the accompanying protein and fat grams so you can see your complete macronutrient picture. Whether you are an endurance athlete carb-loading for performance, someone exploring low-carb eating for metabolic health, or simply tracking macros for body composition, Toolraxy provides a free, client-side Carb Calculator that personalizes your carbohydrate target to your body and your goals.
ย
How to Use the Carb Calculator
Select your sex by clicking the Male or Female button.
Enter your age, weight, and height. Choose kilograms or pounds, and centimeters or inches.
Select your activity level from the dropdown, ranging from sedentary to extremely active.
Choose your diet type: standard, moderate carb, low carb, keto, or custom carb percentage.
If you select custom, enter your desired carbohydrate percentage in the field that appears.
Click Calculate. The tool displays your BMR, TDEE, carbohydrate percentage, daily carb grams and calories, and a complete macro breakdown showing protein and fat alongside carbs. The summary cards give you an at-a-glance view of all three macronutrients.
ย
How the Tool Works
This Carb Calculator first determines your total daily calorie needs using the Mifflin-St Jeor equation and an activity multiplier. It then applies a carbohydrate percentage based on your selected diet type and calculates the remaining macronutrients.
BMR Calculation (Mifflin-St Jeor Equation):
For males:
BMR = (10 ร weight in kg) + (6.25 ร height in cm) – (5 ร age in years) + 5
For females:
BMR = (10 ร weight in kg) + (6.25 ร height in cm) – (5 ร age in years) – 161
Weight and Height Conversion:
TDEE Calculation:
TDEE = BMR ร Activity Factor. Five activity levels are available with standard multipliers from 1.2 (sedentary) to 1.9 (extremely active).
ย
Carbohydrate Allocation by Diet Type:
Each diet type corresponds to a range and midpoint for carbohydrate intake as a percentage of total calories:
Standard: 45โ65%, midpoint 55%
Moderate Carb: 30โ45%, midpoint 37.5%
Low Carb: 15โ30%, midpoint 22.5%
Keto: 5โ10%, midpoint 7.5%
Custom: user-defined percentage
The midpoint of the selected range is used for the calculation. For custom, the user’s entered percentage is used directly.
ย
Macronutrient Calculations:
Carbohydrate calories = TDEE ร (Carb percentage รท 100), rounded
Carbohydrate grams = Carbohydrate calories รท 4, rounded (carbs provide 4 kcal per gram)
Protein grams = Body weight in kg ร 1.8, rounded (approximately 1.8g per kg of body weight as a general active individual recommendation)
Protein calories = Protein grams ร 4
Fat calories = TDEE – Carbohydrate calories – Protein calories, minimum 0
Fat grams = Fat calories รท 9, rounded (fat provides 9 kcal per gram)
The macronutrient summary cards display all three values for a complete nutritional snapshot.
ย
Worked Example
Consider a 30-year-old male who weighs 70 kg, is 170 cm tall, is lightly active, and follows a standard diet:
Male Mifflin-St Jeor BMR: (10 ร 70) + (6.25 ร 170) – (5 ร 30) + 5 = 700 + 1,062.5 – 150 + 5 = 1,617.5, rounded to 1,618 kcal/day.
Lightly active TDEE: 1,618 ร 1.375 โ 2,225 kcal/day.
Standard diet carb percentage: 55% midpoint.
Carb calories: 2,225 ร 0.55 โ 1,224 kcal.
Carb grams: 1,224 รท 4 = 306 grams.
Protein: 70 kg ร 1.8 = 126 grams (504 kcal).
Fat calories: 2,225 – 1,224 – 504 = 497 kcal.
Fat grams: 497 รท 9 โ 55 grams.
Final macro split: 306g carbs, 126g protein, 55g fat.
If the same person switched to a keto diet (7.5% carbs), carbohydrate intake would drop to approximately 42 grams per day (167 carb calories), while fat would increase to fill the remaining calories. This dramatic shift illustrates how the same TDEE can support vastly different macronutrient distributions depending on dietary preference.
Benefits of Using This Carb Calculator
Saves time by calculating carbohydrates from your TDEE and diet preference.
Supports five diet types from standard high-carb to ketogenic.
Provides a complete three-macro breakdown including protein and fat.
Displays results in both calories and grams for flexible tracking.
Free and private, with all calculations running in your browser.
Supports both metric and imperial units.
ย
FAQs
How accurate is this carb calculator?
The calculator uses the Mifflin-St Jeor equation for BMR and standard activity multipliers. The carbohydrate targets are based on well-established diet type ranges. It provides a reliable starting point that you can adjust based on your individual response and goals.
Can I set a custom carbohydrate percentage?
Yes. Select “Custom carb %” from the diet type dropdown and enter any percentage between 5% and 80%. The calculator will use your exact number.
How is protein calculated?
Protein is set at 1.8 grams per kilogram of body weight. This is appropriate for active individuals. If your protein needs differ, adjust your total intake manually using the macro breakdown as a reference.
Why do my fat grams change when I switch diet types?
Fat fills the remaining calories after carbohydrates and protein are accounted for. When you lower carbohydrates, fat automatically increases to maintain the same total calorie intake.
Does this calculator account for weight loss or gain goals?
This calculator provides maintenance-level carbohydrate targets. For weight loss, use a calorie deficit calculator first to determine your target calorie intake, then use the custom carb percentage to match your preferred macro split.
Can I use this calculator for a diabetic diet?
The calculator provides general carbohydrate estimates. Individuals with diabetes should work with a registered dietitian or certified diabetes educator to determine personalized carbohydrate targets based on medication, blood sugar patterns, and treatment goals.
How do I track carbs using the numbers from this calculator?
Use a food diary app or nutrition label reading to count the grams of carbohydrates in your meals and snacks throughout the day. Compare your total to the target shown.
Can I share my carb targets?
Yes. Use the Copy button to copy all results, or the Share button to send a summary that includes your carbohydrate, protein, and fat targets.
Does this calculator store my personal data?
No. All calculations run entirely in your browser. No personal health data is saved or transmitted.
Is this calculator a substitute for professional nutrition advice?
No. This tool provides estimates for educational purposes. Consult a registered dietitian or healthcare professional for personalized nutrition guidance.