Keto Macro Calculator
Calculate ketogenic diet macros for proper ketosis.
Formula
Keto: 5% carb, 75% fat, 20% protein
Example
2,000 cal, 25g carbs → 167g fat, 100g protein.
Embed this calculator on your site
Add this free calculator to your own website with one line of code. The embedded version is responsive, ad-free, and includes a small attribution link back to CalcNest AI.
<iframe src="https://calcnestai.com/embed/keto-macro-calculator.html" width="100%" height="700" frameborder="0" style="border: 1px solid #e5e5e5; border-radius: 12px; max-width: 720px;" loading="lazy" title="Keto Macro Calculator — Free Tool by CalcNest AI"></iframe>
Understanding the Keto Macro Calculator
A keto macro calculator splits a calorie target into the very low carbohydrate, high fat pattern the ketogenic diet requires. It fixes fat at 75% of calories and assigns protein whatever remains after your carbohydrate target, which is a reasonable default and not the only defensible way to structure it.
How it actually works
Enter daily calories and a net carbohydrate target in grams. The calculator allocates 75% of calories to fat, converts your carbohydrate target to calories at 4 per gram, and assigns the remainder to protein. At 2,000 calories with 25 grams of net carbohydrate, that gives 167 grams of fat at 75%, 25 grams of carbohydrate at 5%, and 100 grams of protein at 20%.
| Macronutrient | Share of calories | At 2,000 kcal |
|---|---|---|
| Fat | 70-80% | 156-178 g |
| Protein | 15-25% | 75-125 g |
| Carbohydrate | 5-10% | 25-50 g |
| Net carbs for ketosis | typically under 50 g | often 20-30 g |
The deeper context most people miss
Net carbohydrate means total carbohydrate minus fibre, and sometimes minus sugar alcohols, on the reasoning that these aren't absorbed as glucose. The concept is broadly sound for fibre and considerably shakier for sugar alcohols, which vary in how they're metabolised, with maltitol in particular having a meaningful glycaemic effect despite frequently being subtracted on product labels.
What ketosis is and what the evidence supports
Restricting carbohydrate sufficiently depletes glycogen and shifts the liver toward producing ketone bodies from fatty acids, which the brain and other tissues can use as fuel in place of glucose. This is nutritional ketosis, a normal metabolic state distinct from diabetic ketoacidosis, which is a dangerous condition involving both very high ketones and very high blood glucose in the absence of adequate insulin. The distinction matters because the names are similar and the states are not. Where the evidence is strongest is in epilepsy: ketogenic diets have been used clinically since the 1920s for drug-resistant epilepsy, particularly in children, and remain an established therapy with genuine trial support. For weight loss, ketogenic diets produce results broadly comparable to other approaches when calories and protein are matched, with somewhat faster early loss that largely reflects glycogen and associated water depletion rather than fat. Appetite suppression is a commonly reported and reasonably supported effect, which helps adherence for some people. For type 2 diabetes, low-carbohydrate approaches including ketogenic patterns have shown meaningful improvements in glycaemic control and in some studies medication reduction, and this is an area of active and reasonably promising research, though it requires medical supervision because diabetes medication frequently needs adjusting quickly to avoid hypoglycaemia. Claims extending to cancer treatment, neurodegenerative disease, and general longevity are considerably less well supported and should be treated as hypotheses rather than established findings.
A worked example: why the protein figure deserves attention
At 2,000 calories the default gives 100 grams of protein, which is 20% of calories. Whether that's adequate depends on body size and activity. For a 70-kilogram person that's about 1.4 grams per kilogram, at the lower end of the 1.6 to 2.2 range commonly recommended for active people and adequate for a sedentary one. For a 90-kilogram person it's 1.1 grams per kilogram, likely insufficient if they're training. The structural issue is that fixing fat at 75% and letting protein absorb the remainder means protein becomes the residual rather than the priority, which is backwards from how most nutrition practitioners set macros. A more defensible approach sets protein first based on body weight, sets carbohydrate at your ketosis threshold, and lets fat take the remainder. At 2,000 calories with 140 grams of protein and 25 grams of carbohydrate, fat would be about 149 grams, or 67% of calories, which is still comfortably ketogenic. There's a persistent belief in some keto communities that excess protein disrupts ketosis through gluconeogenesis, and this is largely overstated: gluconeogenesis is demand-driven rather than supply-driven in most circumstances, and moderate to high protein intake is generally compatible with ketosis while better preserving lean tissue during a deficit.
Deciding whether ketogenic eating suits you
It's a substantial restriction and suits some people considerably better than others. It tends to work well for people who find it genuinely satiating and don't miss carbohydrate, who eat few meals out, and who cook most of their own food, since eating ketogenically in restaurants and social settings requires constant vigilance. It works poorly for people who train at high intensity, since anaerobic work depends on glycogen and performance in that domain generally suffers, though endurance capacity at lower intensities can partially adapt over weeks to months. It's difficult to sustain for anyone whose social or cultural food patterns centre on grains, and the adherence data across low-carbohydrate diets generally shows substantial dropout over a year, which is worth factoring into expectations. Several groups should not attempt it without medical guidance: anyone with type 1 diabetes, anyone taking medication for type 2 diabetes or blood pressure that will likely need adjusting, people with a history of pancreatitis, gallbladder disease, or fat malabsorption, those with certain rare metabolic disorders affecting fat metabolism, and anyone pregnant or breastfeeding. People with a history of disordered eating should approach any highly restrictive pattern cautiously. And anyone with kidney disease should discuss it first, since dietary changes of this magnitude affect renal handling of several substances.
The transition, and what to monitor
The first one to two weeks commonly involve a cluster of symptoms often called keto flu: fatigue, headache, irritability, difficulty concentrating, muscle cramps, and reduced exercise capacity. Most of this is attributable to fluid and electrolyte shifts rather than to ketosis itself. Lower insulin levels reduce sodium retention by the kidneys, so sodium is lost along with the water that glycogen was holding, and potassium and magnesium follow. Deliberately increasing sodium intake during this period, alongside adequate potassium and magnesium, substantially reduces the symptoms, which is why experienced practitioners emphasise electrolytes so heavily. Beyond the transition, several things are worth monitoring. Blood lipids respond variably: many people see improved triglycerides and HDL, while LDL responses range from little change to substantial increases in some individuals, particularly those who are lean and metabolically healthy, a pattern that has attracted research attention and remains debated. Testing before and a few months into the diet is sensible. Fibre intake often falls sharply, which affects bowel function and the gut microbiome, and deliberately including low-carbohydrate fibre sources helps. Micronutrients that commonly fall short include magnesium, potassium, and several B vitamins, and the exclusion of most fruit and many vegetables narrows the range of what's consumed. Ketone testing through blood, breath, or urine can confirm ketosis, though blood measurement is the most reliable and urine strips become less useful as the body adapts.
Variations: standard, cyclical, targeted, and lower-fat approaches
Standard ketogenic dieting keeps carbohydrate consistently very low, which is the pattern this calculator models. Cyclical approaches alternate strict ketogenic days with higher-carbohydrate refeed days, typically to support training, though the evidence for benefit is limited and it interrupts ketosis. Targeted approaches consume a small amount of carbohydrate around training sessions to support performance while remaining broadly ketogenic. A high-protein variant increases protein at the expense of fat, often to around 30% of calories, which better supports lean tissue and is generally still compatible with ketosis. Very low calorie ketogenic diets used in some clinical weight management settings are considerably more restrictive and require supervision. Carbohydrate thresholds vary between individuals: some people maintain ketosis at 50 grams of net carbohydrate while others need under 20, and activity level, insulin sensitivity, and duration of adaptation all influence this. Rather than assuming a number, testing ketones while adjusting carbohydrate intake identifies your own threshold, which may also shift over time as adaptation progresses.
Setting ketogenic macros sensibly
Set protein first based on body weight rather than treating it as a residual, since the default 75% fat allocation can leave protein below what an active person needs. Aim for a protein intake in the range commonly recommended for your activity level and let fat take the remainder, which usually still lands comfortably in ketogenic territory. Find your own carbohydrate threshold rather than assuming a number, since it varies between individuals from under 20 to around 50 grams of net carbohydrate. Pay close attention to sodium, potassium, and magnesium during the first weeks, since most keto flu symptoms stem from electrolyte shifts rather than ketosis. Include low-carbohydrate fibre sources deliberately, since fibre intake typically falls sharply. Test lipids before and a few months in, since LDL responses vary substantially between individuals. And seek medical guidance first if you have diabetes, take blood pressure medication, or have gallbladder, pancreatic, or kidney conditions.
What people get wrong
- Letting protein become the residual after fixing fat at 75%, which can leave an active person well below the protein intake they need to preserve lean tissue.
- Believing moderate protein disrupts ketosis through gluconeogenesis, which is largely overstated since gluconeogenesis is demand-driven rather than supply-driven in most circumstances.
- Subtracting all sugar alcohols as net carbohydrate, when they vary in metabolism and maltitol in particular has a meaningful glycaemic effect.
- Attributing keto flu to ketosis itself, when most symptoms stem from sodium, potassium, and magnesium losses that deliberate electrolyte intake substantially reduces.
Where the math comes from
Fat calories = Total Calories × 0.75, converted to grams by dividing by 9. Carbohydrate calories = Net Carb Target × 4. Protein calories = Total Calories - Fat Calories - Carbohydrate Calories, converted to grams by dividing by 4. This fixes fat at 75% of calories and treats protein as the residual, which is one convention among several; setting protein first by body weight and letting fat take the remainder is generally more defensible.
Questions and answers
How much protein do I need?
0.7-1.0g per pound of body weight covers most adults' needs. Athletes and those in calorie deficits need higher (closer to 1.0g+). Many people consistently under-eat protein.
Are calorie calculators accurate?
Within 15% for most people. Use the result as a starting point; adjust based on weight changes over 4-6 weeks. Individual variation in metabolism, activity, and hormones produces deviation from the formula.
What about supplements?
Most multivitamins are unnecessary if diet is reasonably varied. Vitamin D, omega-3, and creatine have the strongest evidence for supplementation. Skip everything else unless specific deficiency or condition warrants.
Should I eat back exercise calories?
Activity trackers overestimate by 20-50%. A common rule: eat back about half of what your tracker says you burned. Or set a calorie target and ignore daily exercise variation.
Is intermittent fasting better?
Mixed evidence. IF works because it is an adherence strategy that often reduces total calories. The actual fasting itself does not have unique metabolic benefits beyond what calorie-equivalent eating windows produce.
How many carbs can I eat and stay in ketosis?
It varies between individuals, commonly from under 20 to around 50 grams of net carbohydrate daily, influenced by activity level, insulin sensitivity, and how long you've been adapted. Rather than assuming a figure, testing ketones while adjusting intake identifies your own threshold, which may shift as adaptation progresses.
What are net carbs?
Total carbohydrate minus fibre, and often minus sugar alcohols, on the basis that these aren't absorbed as glucose. The fibre subtraction is well founded. Sugar alcohols are shakier, since they vary in metabolism and maltitol in particular has a meaningful glycaemic effect despite commonly being subtracted on labels.
Will too much protein knock me out of ketosis?
Largely a myth. Gluconeogenesis is primarily demand-driven rather than supply-driven, so moderate to high protein intake is generally compatible with ketosis. Setting protein adequately matters more, since it preserves lean tissue during a deficit, and treating it as a residual after fixing fat can leave active people short.
What causes keto flu?
Mostly fluid and electrolyte shifts rather than ketosis itself. Lower insulin reduces sodium retention, so sodium is lost along with the water glycogen was holding, with potassium and magnesium following. Deliberately increasing these during the first weeks substantially reduces the fatigue, headache, cramps, and irritability.
Is ketosis the same as ketoacidosis?
No, and the distinction matters. Nutritional ketosis is a normal metabolic state with moderate ketone levels and normal blood glucose. Diabetic ketoacidosis involves very high ketones alongside very high glucose in the absence of adequate insulin, and is a medical emergency occurring primarily in type 1 diabetes.
What does the evidence actually support?
Strongest for drug-resistant epilepsy, where ketogenic diets have been established therapy since the 1920s. Reasonably supported for glycaemic improvement in type 2 diabetes, though requiring medical supervision for medication adjustment. For weight loss, comparable to other approaches at matched calories and protein. Claims about cancer, neurodegeneration, and longevity are considerably less established.
What should I monitor while doing this?
Blood lipids before and a few months in, since LDL responses vary substantially and some people see large increases. Electrolytes during the transition. Fibre intake, which typically falls sharply and affects bowel function and the microbiome. And if you take diabetes or blood pressure medication, work with your prescriber, since doses frequently need adjusting quickly.
Sources & References
Authoritative references consulted in building this calculator and educational content. These are primary sources — check directly for the most current figures.
Related calculators
Alcohol Calorie · Hydration Loss · Calorie · Standing Desk Calorie Burn · Low FODMAP