Keto Macro Calculator

Set ketogenic macros: carbs capped, protein from lean mass, fat filling the rest.

Your details

Sex
yrs
ft
in

Light exercise 1–3 days a week

g
g/kg lean

A ketogenic diet interacts with medication: particularly insulin, sulfonylureas and blood-pressure drugs, where doses often need lowering within days. Do not start one on medication without talking to the prescriber first.

This sets ketogenic macros from your calorie target: high fat, moderate protein, and carbohydrate low enough to reach ketosis.

It gives grams for each, and flags where the standard percentages conflict with a sensible protein floor.

How a ketogenic diet is set up

A ketogenic diet restricts carbohydrate far enough that the body shifts to running on ketones, made from fat, instead of glucose. The usual threshold is under 20-50 g of carbohydrate a day.

The typical split is roughly 70-75% fat, 20-25% protein, 5-10% carbohydrate. On 2,000 calories that is about 167 g fat, 100 g protein and 25 g carbohydrate.

Two things worth being clear about. The rapid first-week weight loss is water, not fat: glycogen binds several grams of water per gram, and depleting it drops 2-5 lb that returns when you eat carbohydrate again. And ketosis is not required for fat loss — a calorie deficit is. Keto works for people it works for because it controls appetite well, not because ketones burn fat by themselves.

2,000 calories at 75/20/5
167 g fat1,500 cal
100 g protein400 cal
25 g carbs100 cal

Note the protein figure. A 70 kg person needs about 112 g at 1.6 g/kg, so the standard 20% can sit below the floor that protects muscle.

What to enter

Calorie target
From your TDEE adjusted for your goal. Keto does not exempt you from needing a deficit.
Carbohydrate limit
20 g of net carbs is strict and reliable; 50 g works for many people. Individual tolerance varies.
Protein target
Set this from body weight, not as a percentage. 1.6-2.2 g/kg protects muscle.
Fat
Takes the remainder. On keto it is the energy source rather than something to minimise.

Terms worth knowing

Net carbs
Total carbohydrate minus fibre and sugar alcohols. Most keto tracking uses net rather than total.
Keto flu
Headache, fatigue and irritability in the first week, largely from electrolyte loss as glycogen and its water leave.
Nutritional ketosis
Blood ketones roughly 0.5-3.0 mmol/L. Distinct from diabetic ketoacidosis, which is a medical emergency.
Protein and ketosis
The old worry that protein prevents ketosis is largely overstated. Adequate protein is more important than staying deeply in ketosis.

What this assumes

Fat loss requires a calorie deficit. A ketogenic diet can create one through appetite control, and it does not create one automatically.

This is general information. Type 1 diabetes, kidney disease, pancreatitis and some medications make keto unsuitable or require medical supervision.

How to calculate your keto macros

Set carbohydrate as a hard cap, protein from body weight, and give fat the rest.

carbs = 20-50 g; protein g = kg × 1.6-2.2; fat = (calories − carbs×4 − protein×4) ÷ 9
carbs
Net carbohydrate, a cap rather than a target
protein
From body weight, not from a percentage
fat
The remaining calories, at 9 per gram
  1. Set the carbohydrate cap. 20 g of net carbs reaches ketosis reliably. Some people maintain it at 50 g, which is much easier to live with.

  2. Set protein from body weight. 1.6-2.2 g/kg. At 70 kg that is 112-154 g, which is often more than a 20% rule would give.

  3. Give the remaining calories to fat. 2,000 − 100 (carbs) − 448 (112 g protein) = 1,452 calories, which is 161 g of fat.

  4. Manage electrolytes from day one. Sodium, potassium and magnesium all deplete as glycogen water leaves. Most of "keto flu" is this, and it is largely preventable.

See a worked example: where the standard percentages break
Calories
2,000
Body weight
70 kg

Standard 75/20/5: 167 g fat, 100 g protein, 25 g carbs.

But a 70 kg person needs 112 g of protein at 1.6 g/kg, and 100 g is below that.

Setting protein properly: 112 g protein (448 cal), 25 g carbs (100 cal), leaving 1,452 for 161 g of fat.

The percentages become 73/22/5, which is still comfortably ketogenic. Nothing was lost by protecting the protein.

161 g fat, 112 g protein, 25 g carbs

Frequently asked questions

Problems people actually run into

Setting protein as a percentage

The standard 20% gives 100 g on a 2,000-calorie diet, which is below what a 70 kg person needs to protect muscle in a deficit.

Set protein in grams from body weight and let fat take the remainder. The result is still comfortably ketogenic and considerably better for body composition.

Assuming ketosis does the work

Being in ketosis does not create a calorie deficit. Fat is energy-dense at 9 calories per gram, and it is entirely possible to eat at maintenance or above on keto.

Track calories at least at the start. The appetite suppression is real and it is not a guarantee.

Results are estimates for general information only and are not professional financial, medical, or legal advice. Read our full disclaimer.

Last updated: September 4, 2026