Calories decide whether your weight goes up, down or nowhere — but macros decide what that change is made of. Two people can eat the same 2,000 calories and get very different results: the one who eats enough protein keeps muscle while losing fat, fuels training properly and stays full; the one who does not may lose muscle along with fat and feel hungry all day. That is the point of macro counting. Instead of tracking calories alone, you set targets for the three calorie-providing nutrients — protein, carbohydrate and fat — so the total you already chose is spent in proportions that match your goal.
The four styles in this calculator cover the splits most people actually use. Balanced (30/40/30) is the default recommendation for general health and is the easiest to live with. Low-carb (35/25/40) shifts energy from carbohydrate to protein and fat, which some people find keeps hunger quieter. High-protein (40/30/30) is the athlete's split, built for training and for dieting without losing muscle. Keto (25/5/70) cuts carbohydrate to about 25–50 grams a day to maintain ketosis — effective for some, but restrictive, hard to sustain socially, and unsuitable for a number of medical situations, so read the note below before choosing it.
Your goal nudges the split, because the ideal proportions are not the same in a deficit and a surplus. When you are losing, protein needs rise — your body is short of energy and more tempted to burn muscle — so the calculator moves 5 percent from carbohydrate to protein (from fat instead on keto, where carbs are already at the floor). When you are gaining, it moves 5 percent from fat to carbohydrate, since carbs fuel the training that makes a surplus become muscle rather than just stored energy. These are modest, sensible adjustments rather than magic numbers; consistency with any reasonable split beats perfection with an ideal one.
The math, with worked examples
Protein and carbohydrate provide 4 calories per gram; fat provides 9 calories per gram. So grams = (calorie target × percentage) ÷ calories per gram. For a 2,000-calorie target on the balanced split while maintaining: protein is 2,000 × 30% = 600 calories ÷ 4 = 150 g; carbohydrate is 2,000 × 40% = 800 ÷ 4 = 200 g; fat is 2,000 × 30% = 600 ÷ 9 = 67 g (66.7 before rounding). Split across three meals, that is roughly 50 g of protein, 67 g of carbs and 22 g of fat per plate.
Two more examples so you can check the calculator's goal adjustments yourself. On keto at 2,000 calories maintaining, the split is 25/5/70: protein 500 ÷ 4 = 125 g, carbs 100 ÷ 4 = 25 g, fat 1,400 ÷ 9 = 156 g. On high-protein at 2,500 calories while losing, the goal adjustment moves the split to 45/25/30: protein 1,125 ÷ 4 = 281 g, carbs 625 ÷ 4 = 156 g, fat 750 ÷ 9 = 83 g. Every result above is produced by exactly this arithmetic.
Using your macros in real life
Start by finding your calorie target if you have not already — the TDEE Calculator estimates what you burn, and your goal decides whether you eat at, below or above it. Then track honestly for two weeks before judging: food labels carry legal margins of error, restaurant portions are guesses, and almost everyone under-reports cooking oils and snacks at first. Weighing food for a fortnight teaches your eye what 150 grams of protein actually looks like on a plate, after which many people track more loosely and keep most of the benefit.
Keep the hierarchy in mind when a day goes off plan: total calories first, protein second, the carb-fat split a distant third. And a firm safety note — macro ratios are a planning framework, not a prescription. Diabetes, kidney disease, pregnancy, a history of eating disorders and many medications all change what an appropriate diet looks like, and ketogenic diets in particular should only be followed with medical guidance. If any of that applies to you, talk to your doctor or a registered dietitian before acting on numbers from any calculator, including this one. Pair your targets with the Water Intake Calculator to cover the other half of daily nutrition planning.
Frequently asked questions
What are macros?
Macros, short for macronutrients, are the three nutrients that provide calories: protein and carbohydrate at 4 calories per gram, and fat at 9 calories per gram. Counting macros means planning how your daily calories are split between the three.
How do I know my calorie target?
Your target depends on your size, activity and goal. The TDEE calculator on this site estimates the calories you burn each day; eat at that level to maintain weight, below it to lose, or above it to gain. Use that figure as the calorie target here.
How much protein do I actually need?
The minimum to avoid deficiency is about 0.8 grams per kilogram of body weight, but people who train or are dieting generally do better with roughly 1.6 to 2.2 grams per kilogram. The high-protein setting here lands most people in that zone.
Which diet style should I choose?
The one you can stick to. Balanced suits most people; low-carb helps some control appetite; high-protein supports training and dieting; keto is a strict medical-style diet that is not appropriate for everyone. Total calories matter more than the exact split for weight change.
Why does the goal change the split?
When losing weight, extra protein helps protect muscle, so this calculator adds 5 percent protein at the expense of carbohydrate (or fat, on keto). When gaining, it adds 5 percent carbohydrate to fuel training, taken from fat.
Do the grams add up exactly to my calorie target?
Almost. Grams are rounded to whole numbers, so multiplying them back can land a few calories either side of your target. That rounding is far smaller than the error in food labels and portion estimates, so it makes no practical difference.
Is keto safe for everyone?
No. Ketogenic diets are not recommended for some people, including those with certain kidney, liver or pancreatic conditions, some people with diabetes, and during pregnancy. Talk to a doctor before starting keto or any other restrictive diet.
Should I hit my macros exactly every day?
No — treat them as targets to average over the week. Hitting your calories and protein consistently matters most; day-to-day wobbles in carbs and fat are normal life and do not undo your progress.
Is my health data stored?
No. The calculation happens entirely in your browser. Nothing you enter is uploaded, saved or logged.