How to use the macro calculator
- Enter your body weight in the first field and choose kilograms or pounds from the dropdown. Accurate weight ensures the protein calculation scales correctly.
- Input your daily calorie target (often called TDEE or maintenance calories). If you do not know this number, use a TDEE calculator first; guessing too high or low will skew every macro target.
- Select a diet preset: Standard uses your protein-per-kg and fat-percent inputs, Keto locks a 5/70/25 split, and Custom lets you set both numbers freely.
- For Standard or Custom presets, adjust protein per kg and fat percentage if the defaults do not match your preference. Typical ranges are 1.6-2.2 g/kg for protein and 20-35% for fat.
- Read the macro gram and calorie breakdown instantly. The results show grams and calories for each macronutrient plus a total calorie check so you can verify the math.
How the macro calculator works
The macro calculator first converts your weight to kilograms using the exact factor 1 lb = 0.45359237 kg. For Standard and Custom presets, protein grams = protein g/kg x weight kg. Protein calories = protein g x 4. Fat calories = total calories x (fat % / 100). Fat grams = fat calories / 9. Carbohydrate calories = total calories - protein calories - fat calories. Carbohydrate grams = carb calories / 4. For the Keto preset the split is fixed at 25% protein, 70% fat, 5% carbs regardless of weight.
Worked example: 70 kg, 2000 kcal, 1.8 g/kg protein, 25% fat. Protein = 1.8 x 70 = 126 g (504 kcal). Fat = 2000 x 0.25 = 500 kcal (55.6 g). Carbs = 2000 - 504 - 500 = 996 kcal (249 g). The calculator performs these steps in the browser and displays each intermediate value so you can audit the result.
Reference table: common macro splits
| Preset | Protein % | Fat % | Carbs % | Typical use |
|---|---|---|---|---|
| Standard | ~25% | 25-30% | 45-50% | General fitness |
| High protein | 35-40% | 20-25% | 35-40% | Muscle gain |
| Keto | 25% | 70% | 5% | Ketogenic diet |
| Low fat | 30% | 15-20% | 50-55% | Endurance |
| Zone | 30% | 30% | 40% | Balanced |
Practical use cases for the macro calculator
- Weight loss: set calories below TDEE, choose a higher protein split (2.0-2.4 g/kg) to preserve lean mass while in a deficit.
- Muscle building: set calories above TDEE, use 1.8-2.2 g/kg protein and moderate fat (25-30%) to support hormone function.
- Ketogenic diet: select the Keto preset; the macro calculator enforces the 5/70/25 split and shows the very low carb gram target.
- Custom experimentation: use Custom to test any protein g/kg and fat % combination, for example a high-carb low-fat approach for endurance training.
- Recomposition: eat at maintenance calories with protein at 2.2 g/kg and fat at 25% to slowly shift body composition.
Common mistakes and edge cases
- Entering a calorie target too low to cover the protein and fat you requested returns an error. Raise calories or lower protein/fat.
- Using pounds without converting leads to inflated protein grams; always pick the correct unit in the dropdown.
- Setting fat % to 100% only works if protein per kg is 0, because every calorie then goes to fat and the macro calculator shows 0 g of carbs and protein. With any protein target above zero it returns an error instead.
- Protein per kg above 3 g/kg is rarely needed and may be excessive for most people; research shows diminishing returns beyond 2.2 g/kg for natural trainees.
- Forgetting to update the calculator after your weight changes lets the protein target drift; recalculate after every few kilograms of change.
Background: Atwater factors and macro energy
The Atwater system assigns 4 kcal/g to protein and carbohydrate, 9 kcal/g to fat. These values are averages derived from bomb calorimetry corrected for human digestibility; actual metabolizable energy varies slightly by food source (for example, fiber contributes about 2 kcal/g). The macro calculator uses these standard factors because they are the basis for nutrition labeling worldwide and provide a consistent framework for planning.
Adjusting macros over time
As your weight changes, recalculate your targets. A lower body weight reduces protein grams if you keep the same g/kg. If you stall, try increasing protein by 0.2 g/kg or shifting 5% of calories from carbs to fat. Track weekly averages rather than daily fluctuations. For fat loss, a reduction of 100-200 kcal from carbs or fat (not protein) every 2-3 weeks is a common approach. For muscle gain, add 100-200 kcal from carbs when weight gain stalls.
Protein quality and distribution
The macro calculator gives a total daily protein target. Spreading it across several meals is a common way to eat it, and many people aim for roughly 20-40 g of protein per meal. Animal proteins, soy and quinoa supply all essential amino acids, and plant-based eaters who vary their foods through the day usually cover them too. The calculator does not adjust for protein quality or digestibility, so if your diet is mostly plant-based you may choose a slightly higher protein per kg value. This is a planning tool, not medical or dietary advice, so check with a doctor or registered dietitian before changing your diet, especially if you have a health condition.
Worked examples
| Example | Input | Result |
|---|---|---|
| Standard split, 70 kg, 2000 kcal | Body weight: 70; Weight unit: kg; Daily calories (TDEE): 2000; Diet preset: standard; Protein per kg: 1.8; Fat percentage of calories: 25 | Protein (g): 126.0; Fat (g): 55.6; Carbs (g): 249.0; Protein (kcal): 504; Fat (kcal): 500; Carbs (kcal): 996; Total calories: 2000 |
| Keto preset, 80 kg, 1800 kcal | Body weight: 80; Weight unit: kg; Daily calories (TDEE): 1800; Diet preset: keto | Protein (g): 112.5; Fat (g): 140.0; Carbs (g): 22.5; Protein (kcal): 450; Fat (kcal): 1260; Carbs (kcal): 90; Total calories: 1800 |
| Custom split, 150 lb, 2500 kcal | Body weight: 150; Weight unit: lb; Daily calories (TDEE): 2500; Diet preset: custom; Protein per kg: 2; Fat percentage of calories: 30 | Protein (g): 136.1; Fat (g): 83.3; Carbs (g): 301.4; Protein (kcal): 544; Fat (kcal): 750; Carbs (kcal): 1206; Total calories: 2500 |
| High protein, 75 kg, 2200 kcal | Body weight: 75; Weight unit: kg; Daily calories (TDEE): 2200; Diet preset: custom; Protein per kg: 2.2; Fat percentage of calories: 20 | Protein (g): 165.0; Fat (g): 48.9; Carbs (g): 275.0; Protein (kcal): 660; Fat (kcal): 440; Carbs (kcal): 1100; Total calories: 2200 |
FAQ
Do I need to know my TDEE before using this macro calculator?
Yes. The macro calculator requires a daily calorie target. If you don't know your TDEE, use a TDEE calculator first. Guessing calories will make every macro target inaccurate.
Can I use this macro calculator for a ketogenic diet?
Select the Keto preset. It applies a fixed 5% carb, 70% fat, 25% protein split of your calories and ignores body weight. At 2000 kcal that is 25 g of carbs, so the target is very low.
Why does the macro calculator show an error for my inputs?
The error appears when your calorie target cannot cover the protein and fat amounts you requested. Lower protein per kg or fat percentage, or increase calories until the remainder for carbs is zero or positive.
Are the gram values rounded?
Protein, fat and carb grams are shown to one decimal place and calories to the nearest whole number. The total calories row repeats your input, rounded to a whole number.
Does this tool store or send my data anywhere?
No. All calculations run in your browser; nothing is uploaded or saved. Refresh the page and the fields reset to defaults.
Can I link to this macro calculator from my site?
Yes, you may link to /tools/macro-calculator/ freely. No attribution is required but it is appreciated.
What if I want a macro split not listed in the presets?
Choose the Custom preset and enter your own protein per kg and fat percentage values. The calculator will derive carbs as the remainder.
Should I track macros or just calories?
Tracking macros ensures adequate protein for muscle retention and lets you manipulate carb/fat ratio for performance or satiety. Calories alone determine weight change; macros determine body composition change.