Guide
Keto macros and net carbs: setting a carbohydrate cap, protein and fat for a ketogenic diet
A ketogenic diet cuts carbohydrate so far that the body switches to using fat and ketones for much of its fuel. The usual way to plan one is to fix a small carbohydrate allowance, set protein at a sensible level and let fat supply the rest of the calories. This page does that arithmetic from your size, activity and goal, and it also contains a net carbs check so that you can read a food label.
How the targets are built
First the tool estimates your calories: Mifflin-St Jeor basal metabolic rate times an activity factor, adjusted for a goal such as slow weight loss. Then it takes the net carbohydrate limit you set and your protein in grams per kilogram. Carbohydrate and protein each supply 4 kcal per gram, so their calories are subtracted from the target, and what is left is fat at 9 kcal per gram. The result lists each in grams and as a share of calories, plus the fat-to-protein-and-carbohydrate ratio by weight.
Counting net carbs
On a food label the total carbohydrate includes fibre and sometimes sugar alcohols. Fibre is not digested, so it is subtracted. Sugar alcohols are digested to different degrees: erythritol and allulose have almost no effect on blood glucose, while maltitol has more. The calculator subtracts half of the sugar alcohols you enter as a middle course. A food with 12 g of total carbohydrate, 5 g of fibre and 4 g of sugar alcohols has 12 minus 5 minus 2, which is 5 g of net carbs.
A worked example
Press the first sample: a man of 35, 85 kg and 178 cm, lightly active and aiming for slow weight loss, with a 25 g net carb limit and protein of 1.6 g per kg. His target is 2,218 kcal. Protein is 136 g, which is 24.5 percent of calories, carbohydrate is 25 g or 4.51 percent, and fat is 175 g or 71 percent. The ratio is 1.09 to 1 by weight. The second sample is a 66 kg woman of 40 at maintenance with 30 g of carbohydrate and 1.5 g per kg: 1,829 kcal, 99 g protein and 146 g fat.
Reading the result
A ratio of fat to everything else near 1:1 is a moderate ketogenic diet, and clinical ketogenic diets for epilepsy are closer to 3:1 or 4:1 under medical supervision. This calculator is for general eating plans, so the ratio is information, not a target. If the numbers do not leave room for fat because protein and carbohydrate already take the whole target, the tool asks you to lower the protein or raise the calories.
Edge cases
Net carbs must be between 5 and 100 g, and protein between 0.6 and 3 g per kg. Age is limited to 15 to 100. The food check boxes are independent of the plan, so you can use them without changing the targets. In US units the weight is in pounds and the height in feet and inches.
Who should ask first
A very low carbohydrate diet is not right for everyone. People with type 1 diabetes, or type 2 diabetes treated with insulin or some tablets, risk dangerous blood sugar changes. People with kidney, liver or pancreas disease, a history of eating disorders, those who are pregnant or breastfeeding and children should get medical advice first. Early side effects such as headache and tiredness are common, and a doctor can check bloods during a long run on the diet.
Related tools
- Macro Calculator gives a conventional percentage split for comparison.
- Protein Calculator offers other protein ranges by situation.
- BMR Calculator shows the resting energy that this page builds its calories from.
- Calorie Calculator is a quick route to a daily total.
Checked against the current version of the Keto Calculator on .

