Macro Ratio Formula: Calories to Grams of Carbs, Protein, Fat

Contents
When you plan meals for a diet or a bulk, the question that comes up a lot is "what ratio of carbs to protein to fat should I use?" Picking a direction alone doesn't tell you how many grams to actually eat per day. To shop and build meals, you need a target in grams. This post covers the formula that turns a daily calorie target and a percentage split into gram amounts, worked examples, and the ratios people commonly use for each goal.
Summary ① Carbs and protein are calculated at 4 kcal per gram; fat at 9 kcal per gram. ② Grams = daily calorie target × ratio (%) ÷ 100 ÷ calories per gram of that nutrient. ③ As a starting point, use 5:3:2 for maintenance, 3:4:3 for weight loss, and 4:4:2 for bulking.
Why You Need the Gram Numbers, Not Just the Ratio
If you only pick a direction like "low-carb, high-fat" or "high-protein," you have no idea how many grams to eat per day. Say you eat 2,000 kcal a day and set protein at 30%. You still have to convert that into grams of protein-containing food before you can build a meal plan. Percentages and grams are different units, and fat has more calories per gram than the other two macros, so you can't just divide the ratio up evenly.
The Formula: How to Calculate It Yourself
The calories each of the three main macronutrients provides per gram is a fixed value.
| Nutrient | Calories per gram |
|---|---|
| Carbohydrate | 4 kcal |
| Protein | 4 kcal |
| Fat | 9 kcal |
Once you know your daily calorie target and the target percentage for each nutrient, you get the gram target with these equations.
- Carbs (g) = daily calorie target × carb ratio (%) ÷ 100 ÷ 4
- Protein (g) = daily calorie target × protein ratio (%) ÷ 100 ÷ 4
- Fat (g) = daily calorie target × fat ratio (%) ÷ 100 ÷ 9
For example, with a daily target of 2,000 kcal and a weight-loss split (30% carbs, 40% protein, 30% fat):
- Carbs: 2,000 × 30% ÷ 4 = 150 g
- Protein: 2,000 × 40% ÷ 4 = 200 g
- Fat: 2,000 × 30% ÷ 9 ≈ 66.7 g
If the three ratios don't add up to 100%, the grams you calculate won't add up to your actual calorie target, so always make the total 100% when you adjust the split.
If multiplying and dividing by hand every time is a hassle, enter your calories and ratios below and see the numbers right away.
Free · No sign-up · Get your carb, protein, and fat grams instantly with goal-based presets

Common Ratios for Each Goal
Three presets are available for different goals, and you can edit the ratios yourself if you need to.
| Goal | Carbohydrate : Protein : Fat |
|---|---|
| Maintenance (balanced) | 5 : 3 : 2 |
| Weight loss | 3 : 4 : 3 |
| Bulking (muscle gain) | 4 : 4 : 2 |
The weight-loss ratio raises the protein share to focus on satiety and preserving muscle mass, while the bulking ratio raises the carb share to increase the energy available for training. These are general reference guidelines, though. If you need to limit a specific nutrient due to a chronic condition or a kidney or digestive disorder, different rules may apply, and you may need to talk to a medical or nutrition professional. Your actual changes in weight and body composition can vary with your activity level, basal metabolic rate, and food choices.
The Short Version
- Carbs and protein are calculated at 4 kcal per gram; fat at 9 kcal per gram.
- Grams = daily calorie target × ratio (%) ÷ 100 ÷ calories per gram of that nutrient.
- For ratios, you can use 5:3:2 for maintenance, 3:4:3 for weight loss, and 4:4:2 for bulking. The ratios must always add up to 100% for the results to be accurate.
- The results are reference numbers. Actual changes in weight and body composition vary from person to person.
Free · No sign-up · Get your carb, protein, and fat grams instantly with goal-based presets
Frequently Asked Questions
What formula is used to calculate the carb, protein, and fat ratio?
Carbs and protein are calculated at 4 kcal per gram and fat at 9 kcal per gram. Multiply your daily calorie target by each nutrient's percentage to get calories, then divide those calories by the calories per gram for that nutrient to get grams.
What happens if the ratios don't add up to 100%?
If the ratios don't add up to 100%, the grams you calculate won't match your actual calorie target. The three ratios must always total 100% to get accurate results.
What are the presets based on?
There are three presets: maintenance (5:3:2), weight loss (3:4:3), and bulking (4:4:2). Pick the one that fits your goal, then adjust the individual ratios yourself if needed.
This article was adapted from our Korean original. Read the Korean original