Saved

Press the star next to a tool's name to save it.

All my tools

Keto Calculator

Use this keto calculator to turn your daily calories into keto macros: grams of fat, protein and carbs, checked against the typical keto ranges of under 50 g carbs and 70–80% fat.

Restored your last values ·

Typical keto plans keep carbs under 50 g a day and get 10–20% of calories from protein. Fat makes up the rest.

Everything is worked out in your browser. Nothing you type is sent anywhere.

Fat per day

–

Enter your daily calories, carbs and protein share, then press Calculate.

See full result

This keto calculator turns your daily calories into keto macros: grams of fat, protein and carbohydrate. Enter your calories, your daily carb limit and the share of calories you want from protein, and the keto calculator works out how much fat fills the rest, and checks the result against the typical keto ranges.

How to use the keto calculator

  1. Enter your daily calories. If you don't know them, estimate them first with a calorie calculator.
  2. Enter your carb limit in grams a day, for example 20 to 50 g.
  3. Enter your protein share as a percentage of calories, for example 10% to 20%.
  4. Press Calculate to see your fat, protein and carbs in grams and as a share of calories.

What is a keto diet?

The ketogenic, or keto, diet is a very low-carbohydrate, high-fat eating plan. The classic therapeutic version was developed in the 1920s to treat epilepsy, and is still used mainly for hard-to-control epilepsy. That classic diet uses a 4:1 ratio by weight of fat to protein and carbohydrate combined.

Harvard's Nutrition Source explains that the diet has since become popular as a weight-loss plan. The idea is that when you eat very little carbohydrate, the body runs short of glucose and starts making ketones from fat to use as fuel, a state called ketosis.

Typical keto macros

According to Harvard's Nutrition Source, there isn't one standard keto diet with a fixed ratio of macronutrients. The diet typically reduces total carbohydrate to less than 50 grams a day, and it can be as low as 20 grams. Popular keto resources suggest, on average:

  • 70–80% of calories from fat
  • 10–20% of calories from protein
  • 5–10% of calories from carbohydrate

Protein is kept moderate rather than high, because eating too much protein can prevent ketosis. Harvard notes that for a 2,000-calorie diet these shares come to about 165 grams of fat, 40 grams of carbohydrate and 75 grams of protein.

How the keto calculator works

The calculator counts carbohydrate and protein at 4 calories per gram and fat at 9 calories per gram. It works out the calories from your carbs (grams × 4) and from protein (your calories × your protein share), and gives whatever is left to fat. Dividing those fat calories by 9 gives the grams of fat. Finally, it checks that your carbs are 50 grams or less and that fat supplies about 70% of calories or more, the typical keto ranges described above.

Worked example

Say you eat 2,000 calories a day, with 40 grams of carbs and 15% of calories from protein. The carbs supply 40 × 4 = 160 calories (8%). Protein supplies 2,000 × 15% = 300 calories, or 75 grams. That leaves 1,540 calories for fat, which is 1,540 ÷ 9 = 171 grams of fat (77%). Harvard's rounder example gives about 165 grams; the calculator's figure is a little higher because it gives every calorie left after carbs and protein to fat. Both fall within the usual keto ranges.

On 1,600 calories with 25 grams of carbs and 20% protein, you'd have 80 grams of protein, 25 grams of carbs (6%) and about 131 grams of fat (74%).

Reading the results

The big number is your fat target in grams a day. The line below it says whether your plan falls within the typical keto ranges. The table shows fat, protein and carbohydrate in grams and as a share of your calories.

Other versions of keto

Several versions are used in epilepsy treatment. The modified Atkins diet uses a fat to protein and carbohydrate ratio of about 1:1 or 2:1 and limits carbohydrate to 20 grams a day. The medium-chain triglyceride (MCT) diet relies more on MCT oil and allows more carbohydrate. These therapeutic diets are run by medical teams, so use this calculator for general planning only.

Things to watch

Harvard's Nutrition Source notes that cutting carbohydrate this low can cause hunger, fatigue, low mood, irritability, constipation, headaches and brain fog for days to weeks. Because whole food groups are left out, it suggests eating a variety of allowed meats, fish, vegetables, fruits, nuts and seeds to get enough fiber, B vitamins and minerals, and says a registered dietitian can help plan a keto diet that avoids deficiencies. It also points out that most research on keto for weight loss so far has been small and short term.

Choosing your carb and protein numbers

Harvard's figures give a range rather than one number, so pick values that suit your plan. A carb limit of 20 grams is the strictest end of the usual range; 50 grams is the upper end. For protein, 10% of a 2,000-calorie day is 50 grams and 20% is 100 grams. Changing either one changes your fat target, since fat fills whatever calories are left. Try a few combinations to see how they affect your macros before you settle on a plan.

Common mistakes

  • Too much protein. High protein can stop ketosis.
  • Hidden carbs. Sauces, fruit and starchy vegetables add up.
  • Guessing calories. Estimate your calories first.
  • Ignoring fiber and vitamins. Eat a variety of allowed foods.

Tips

  • Track carbs closely for the first few weeks.
  • Check food labels for total carbohydrate.
  • Ask a registered dietitian to help plan your meals.

What next

Use this often? Add Keto to your Home screen.

Frequently asked questions

How does a keto calculator work?

It counts your carbs and protein, gives the remaining calories to fat, and converts each to grams at 4, 4 and 9 calories per gram.

How many carbs can you eat on keto?

Harvard's Nutrition Source says keto typically keeps total carbohydrate under 50 g a day, and as low as 20 g.

What are typical keto macros?

About 70–80% of calories from fat, 10–20% from protein and 5–10% from carbohydrate.

Why is protein moderate on keto?

Eating too much protein can prevent ketosis, so keto keeps protein moderate.

Who should not follow a keto diet?

Talk to your doctor first if you have diabetes, kidney or liver disease, or are pregnant or breastfeeding.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Health & Fitness Tools