ToolNimba Browse

🥑 Keto Macros Calculator

By ToolNimba Health Team · Reviewed by ToolNimba Editorial Review, nutrition content · Updated 2026-06-19

This calculator is for general information only and is not medical or dietetic advice. A ketogenic diet is not suitable for everyone, and it can interact with conditions such as diabetes, kidney or liver disease, pregnancy and certain medications. Talk to a doctor or registered dietitian before starting keto or making large changes to your eating, especially if you take medication or have a health condition.

Fat
- g
- kcal · -%
Protein
- g
- kcal · -%
Net carbs
- g
- kcal · -%

A keto macros calculator splits your daily calorie target into the three macronutrients that matter on a ketogenic diet: fat, protein and carbohydrate. Keto flips the usual plate around, fat becomes the main fuel while carbs are kept very low so the body shifts into burning fat for energy. Enter your daily calories and either pick a keto ratio preset or set a hard net carb cap, and this tool shows how many grams of fat, protein and net carbs to aim for each day.

What is the Keto Macros Calculator?

The ketogenic diet is a very low carbohydrate, high fat way of eating. By cutting carbs sharply, usually to somewhere between 20 and 50 grams of net carbs a day, the body runs short of glucose and starts producing ketones from fat instead, a state called ketosis. To support this, most keto plans put roughly 70 to 75% of calories into fat, 20 to 25% into protein and only 5 to 10% into carbohydrate. Those percentages are what most keto ratio presets are built from.

Turning a calorie target into grams relies on the energy density of each macronutrient. Fat carries about 9 calories per gram, while protein and carbohydrate each carry about 4 calories per gram. So for a 2000 calorie day at a 75/20/5 split, fat is 1500 kcal ÷ 9 = about 167 g, protein is 400 kcal ÷ 4 = 100 g, and carbs are 100 kcal ÷ 4 = 25 g. The calculator does this for you and can also work the other way: fix your net carbs in grams and a protein percentage, and it fills the rest of your calories with fat.

Keto counts net carbs rather than total carbs. Net carbs are the total carbohydrate minus fibre (and, on most plans, minus sugar alcohols), because fibre is largely not digested into glucose and so has little effect on blood sugar or ketosis. Protein needs a sensible cap too: too little risks muscle loss, but very high protein can be partly converted to glucose, which is why keto is moderate, not high, in protein. Fat then acts as the flexible lever that makes the calories add up.

When to use it

  • Working out daily fat, protein and net carb grams to hit when starting a ketogenic diet.
  • Setting a strict net carb cap (for example 20 or 25 g) and seeing how much fat and protein fills the rest of your calories.
  • Comparing a standard 75% fat split against a higher-protein keto split for muscle retention.
  • Translating a calorie goal from a TDEE or deficit calculator into keto-friendly macro targets for meal planning.

How to use the Keto Macros Calculator

  1. Enter your daily calorie target in kcal (use a TDEE or calorie deficit figure if you have one).
  2. Choose a method: a keto ratio preset, or a net carb cap in grams.
  3. For the preset method, pick the keto split that matches your goal.
  4. For the cap method, set your daily net carbs and a protein percentage; fat fills the rest.
  5. Read off the target grams of fat, protein and net carbs, with the calories and percentage for each.

Formula & method

From calories: fat g = (calories x fat%) ÷ 9, protein g = (calories x protein%) ÷ 4, carb g = (calories x carb%) ÷ 4. Net carb cap mode: carb kcal = net carbs g x 4, protein kcal = calories x protein%, fat kcal = calories - carb kcal - protein kcal, then fat g = fat kcal ÷ 9.

Worked examples

A 2000 kcal day on a standard keto ratio of 75% fat, 20% protein, 5% carbs.

  1. Fat calories = 2000 x 75% = 1500 kcal, so fat = 1500 ÷ 9 = 166.7 g (about 167 g)
  2. Protein calories = 2000 x 20% = 400 kcal, so protein = 400 ÷ 4 = 100 g
  3. Carb calories = 2000 x 5% = 100 kcal, so net carbs = 100 ÷ 4 = 25 g

Result: About 167 g fat, 100 g protein and 25 g net carbs per day.

A 2000 kcal day using a strict 25 g net carb cap with protein set at 25% of calories.

  1. Carb calories = 25 g x 4 = 100 kcal
  2. Protein calories = 2000 x 25% = 500 kcal, so protein = 500 ÷ 4 = 125 g
  3. Fat calories = 2000 - 100 - 500 = 1400 kcal, so fat = 1400 ÷ 9 = 155.6 g (about 156 g)

Result: About 156 g fat, 125 g protein and 25 g net carbs per day.

Common keto macro splits (percentage of daily calories)

StyleFatProteinNet carbs
Standard keto75%20%5%
Moderate keto70%25%5%
High-protein keto65%30%5%
Relaxed low-carb65%25%10%

Example macro grams by calorie target on a standard 75F / 20P / 5C split

Daily caloriesFat (g)Protein (g)Net carbs (g)
1500 kcal125 g75 g19 g
2000 kcal167 g100 g25 g
2500 kcal208 g125 g31 g
3000 kcal250 g150 g38 g

Common mistakes to avoid

  • Counting total carbs instead of net carbs. Keto plans usually track net carbs, which is total carbohydrate minus fibre (and often sugar alcohols). Counting total carbs makes your target stricter than it needs to be and can crowd out fibre-rich vegetables that support digestion.
  • Treating protein as unlimited. Keto is high fat and moderate protein, not high protein. Very large protein intakes can be partly turned into glucose and may make staying in ketosis harder for some people, so protein is capped rather than maximised.
  • Forgetting that fat is the calorie lever. Because fat carries 9 calories per gram against 4 for protein and carbs, small changes in fat grams move your calories a lot. If you cut fat without adjusting the rest, you can fall well short of your energy target.
  • Using the wrong calorie number. These macros are only as good as the calorie target you feed in. Guessing your calories instead of using a maintenance (TDEE) or deficit figure can leave you eating too much or too little overall.

Glossary

Ketosis
A metabolic state in which the body, low on glucose, burns fat and produces ketones for energy. It is the goal of a ketogenic diet.
Macronutrient
A nutrient the body needs in large amounts for energy: fat, protein or carbohydrate. Each supplies a known number of calories per gram.
Net carbs
Total carbohydrate minus fibre (and usually sugar alcohols), the carbs that meaningfully affect blood sugar and ketosis.
Keto ratio
The percentage split of daily calories between fat, protein and carbs, such as 75% fat, 20% protein, 5% carbs.
TDEE
Total Daily Energy Expenditure, the calories you burn in a day, often used as the calorie target before adjusting for a goal.

Frequently asked questions

What macros should I eat on keto?

A common starting point is about 70 to 75% of calories from fat, 20 to 25% from protein and 5 to 10% from carbohydrate, keeping net carbs roughly between 20 and 50 grams a day. Enter your calories and this calculator turns those percentages into grams of fat, protein and net carbs.

How many carbs can I eat and stay in ketosis?

Most people stay in ketosis at around 20 to 50 grams of net carbs per day, with 20 to 25 grams a common strict target when starting out. The exact threshold varies between individuals, so some can tolerate a little more once they are fat-adapted.

How do you convert calories to macro grams?

Fat provides about 9 calories per gram, while protein and carbohydrate each provide about 4 calories per gram. So you divide each macro’s share of calories by its calories-per-gram: fat calories by 9, protein and carb calories by 4.

Should I count net carbs or total carbs?

Most keto plans count net carbs, which is total carbohydrate minus fibre and, usually, sugar alcohols. Fibre is largely not digested into glucose, so it has little effect on blood sugar or ketosis. If you prefer a stricter approach you can track total carbs instead.

Why is keto not a high-protein diet?

Keto is high in fat and moderate in protein. Adequate protein protects muscle, but very high intakes can be partly converted to glucose through a process called gluconeogenesis, which may make ketosis harder to maintain for some people. That is why protein is capped rather than pushed as high as possible.

Is the keto diet safe for everyone?

No. Keto is not suitable for everyone and can be risky with certain conditions, including some forms of diabetes, kidney or liver disease, and during pregnancy. It can also interact with medications. Speak to a doctor or registered dietitian before starting, especially if you have a health condition or take medication.

Sources