Macro Calculator
Runs locallyInput stays in your browserFree, no sign-up
Macronutrients — protein, carbohydrate and fat — are the three nutrients that supply energy, and any diet plan ultimately comes down to dividing calories between them. The conversion factors are fixed: protein has 4 kcal per gram, carbohydrate has 4 kcal per gram, and fat has 9 kcal per gram. This tool takes your daily calorie target, splits it by the percentages of your chosen diet, and divides by those factors to get grams. On a 2000 kcal balanced split — 50% carbs, 20% protein, 30% fat — carbs are 1000 kcal divided by 4, or 250 g; protein is 400 kcal divided by 4, or 100 g; and fat is 600 kcal divided by 9, or 66.7 g. The percentages are shares of calories, not shares of weight — fat is the most energy-dense, so the same 30% of calories weighs only two-thirds as much as the protein. Grams are rounded to one decimal place, so the three converted values can add up a few kcal above or below your target; that is rounding, not an error.
Four kinds of people use this tool most. First, people losing fat or gaining muscle: set the calorie target first, then split it into macros — a fat-loss phase can push protein to 30% with the high-protein split to protect muscle, while a muscle-gain phase raises the target and lets carbs climb so the food is actually eatable. Second, people on keto or low carb: keto allows only 5% carbs, which at 2000 kcal is 25 g, and the tool shows immediately whether a meal breaks the budget; low carb at 25% is 125 g and far more forgiving. Third, people who meal prep for training: split the grams across three, four or five meals, weigh out a week in advance, and shift carbs toward the meals before and after training. Fourth, people checking a diet against reality: copy the nutrition label from a takeaway or a recipe, compare it with the tool's targets, and see whether protein is short or fat is over.
Five pitfalls to avoid. First, a wrong calorie target makes everything after it wrong: the tool only splits calories, it does not set them — work out your maintenance calories from body weight and activity level with a calorie calculator, then subtract 300 to 500 kcal for fat loss or add 200 to 300 kcal for muscle gain. Splitting a guessed 2000 kcal means nothing. Second, a custom split must add up to exactly 100% — one point over or under and the tool refuses to calculate, so check the sum first. Third, grams are grams of the nutrient, not grams of food: 100 g of chicken breast holds about 31 g of protein, and 100 g of cooked rice holds about 28 g of carbs — always convert with a nutrition table. Fourth, cooking changes weight: rice doubles as it absorbs water, meat loses weight as it cooks, so weighing cooked food against raw-weight numbers will mislead you in either direction. Fifth, this tool gives general diet information, not medical advice: diabetes, kidney disease, gout, pregnancy and breastfeeding all change which macro split is safe, so ask a doctor before adopting keto or a high-protein split in those cases.
Read the result in three parts. First, the three headline numbers: daily grams of carbs, protein and fat — the whole-day totals that meal planning works from. Second, the table: each row gives the share, the calories, the grams and the per-meal grams, so comparing two splits is a matter of reading the grams column — switching splits changes only the proportions, never the total calories. Third, the per-meal split: daily grams divided evenly by the number of meals, which you can tilt around training as long as the daily total stays the same. Changing the meal count changes the per-meal grams, never the totals. Everything is calculated locally in your browser; the numbers you enter are never sent to any server.
How to use
- Enter your daily calorie target: 800 to 6000 kcal. If you don't know it, work out your maintenance calories with a calorie calculator first.
- Pick a diet split: balanced, high protein, low carb or keto, or choose a custom split and enter the three percentages yourself.
- Pick meals per day: 3, 4 or 5, and see how many grams of protein, carbs and fat each meal holds.
- Read the grams table and the per-meal split, copy the result into your notes, and convert nutrient grams into food weight with a nutrition table when planning meals.
FAQ
On a balanced split, how many grams do I eat at 2000 kcal?
250 g of carbs, 100 g of protein and 66.7 g of fat. The split works on calories first: carbs at 50% are 1000 kcal, divided by 4 kcal per gram gives 250 g; protein at 20% is 400 kcal, divided by 4 gives 100 g; fat at 30% is 600 kcal, divided by 9 kcal per gram gives 66.7 g. Over three meals a day that is 83.3 g of carbs, 33.3 g of protein and 22.2 g of fat per meal. Remember the percentages are shares of calories, not of weight: fat carries 9 kcal per gram, so the same 30% of calories weighs only two-thirds as much as the protein.
What does keto look like at 2000 kcal?
25 g of carbs, 100 g of protein and 166.7 g of fat. Keto keeps carbs at 5%, which is 100 kcal — divided by 4, just 25 g, roughly the carbs in one small bowl of rice — so staple foods are effectively off the menu and carbs come mostly from vegetables and nuts. Protein at 20% is 400 kcal, or 100 g, and fat at 75% is 1500 kcal, or 166.7 g. The tool counts total carbs, not net carbs (total carbs minus fibre); if you track net carbs, the fibre in vegetables is counted separately.
Why is the fat number always the smallest?
Because fat carries 9 kcal per gram, more than double the 4 kcal in protein and carbs. On the balanced split, fat is 30% of calories — which sounds like a lot — but that converts to only 66.7 g, while carbs at 50% of calories come to 250 g. Always separate calorie share from weight share: two splits can differ by 10 percentage points in calories and two to three times in grams. It cuts the other way too — cutting 10 g of fat saves 90 kcal, while cutting 10 g of carbs saves only 40 kcal, so fat has the bigger lever on total calories.
How do I split the grams across meals? Should I eat more around training?
By default the tool divides the daily grams evenly: on a 2000 kcal balanced split over four meals, each meal is 62.5 g of carbs, 25 g of protein and 16.7 g of fat. Even splits are only a starting point — on training days you can tilt it: put more carbs in the meal two hours before training and 20 to 30 g more protein in the meal after, trimming the other meals so the daily total stays the same. Fat digests slowly, so keep it lighter in the pre-workout meal to avoid training on a heavy stomach. In a muscle-gain phase, adding a pre-bed meal of casein or eggs and shifting 20 g of protein into it works the same way.
Is 100 g of chicken breast the same as 100 g of protein?
No. The tool outputs grams of the nutrient, not grams of food: 100 g of raw chicken breast holds about 31 g of protein and 165 kcal, so 100 g of protein takes roughly 320 g of chicken breast. Cooked rice is about 28 g of carbs per 100 g, so 250 g of carbs is around 900 g of cooked rice — about four bowls. When planning meals, convert the nutrient grams into food weight with a nutrition table, and mind the raw-to-cooked change: rice doubles in weight as it absorbs water, meat loses weight as it cooks, so don't weigh cooked food against raw-weight numbers.