1. Home
  2. Calculators
  3. Keto Calculator

Keto Calculator

For people following a low-carb or ketogenic diet: get a calorie target, set the carbohydrate cap and protein, and let fat fill the rest.

Free, no sign-up. Runs in your browser: nothing is uploaded.

Free workspace included. Docs, spreadsheets, notes and tasks that save on your device. No sign-up.Take a look

How to use Keto Calculator

  1. Enter your numbers, or press a sample to see an example.
  2. Read the results and the table under them.
  3. Copy the results or download the table as a CSV file.

Features

  • Calorie target from TDEE and a goal
  • Net carbohydrate limit and protein per kg
  • Fat grams and the percentage of calories from each
  • Net carbs of any food from total carbs, fibre and sugar alcohols

Supported formats

Input

  • Typed numbers

You get

  • On-screen results
  • Copyable text
  • CSV table

Private by design

Everything you enter is processed by your browser on this device. Nothing is sent to openWorkstand or anyone else, so the Keto Calculator is safe for private and work data. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • Targets are estimates; a ketogenic diet needs medical advice for some conditions.
  • Net carb rules for sugar alcohols vary; check the food label.
  • It gives general information and estimates and is not medical advice; ask a doctor, dietitian or other professional about your own health.
  • Everything runs in your browser; nothing you type is sent anywhere.

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.

Checked against the current version of the Keto Calculator on .

Frequently asked questions

How low should net carbs be to reach ketosis?

Most people enter ketosis somewhere between 20 and 50 grams of net carbohydrate a day, but it varies with activity, body size and how long you have been on the diet. Blood or breath ketone testing is the only way to know. The default of 25 grams is a common starting point and the box accepts anything from 5 to 100.

Why is protein set per kilogram and not as a percentage?

Keto advice usually fixes protein at a moderate amount that protects muscle, then lets fat vary. A percentage would swing protein up and down with the calorie target, so the calculator takes grams per kilogram, with 1.6 as the default.

How do I count net carbs?

Subtract fibre and a share of sugar alcohols from the total carbohydrate. Erythritol and allulose are often counted as zero, and other sugar alcohols such as maltitol partly count, so the label of the food matters.

Is a ketogenic diet safe?

It can suit some people but is not right for everyone, and a very low carbohydrate intake can cause side effects at first. People with diabetes, kidney, liver or pancreas conditions or who are pregnant need medical advice.

Keep working with the result

openWorkstand also includes a free workspace with documents, spreadsheets, tasks, projects and a calendar that save to a folder on your computer.