CalEye.
Blog · how-to May 23, 2026 10 min read

Keto Macro Tracking for Beginners: Setup Without the Confusion

Starting a ketogenic diet without setting up tracking correctly is one of the most reliable ways to frustrate your first month. Most people who try keto and abandon it within four weeks share a common experience: they restricted carbohydrates, felt terrible for ten days, lost several pounds of water weight, then stalled — and never found out whether the stall was due to hidden carbohydrates, insufficient fat intake, incorrect calorie targets, electrolyte depletion, or simply the body’s normal adaptation timeline. Without tracking, you have no signal. Without correct tracking setup, you have false signal — numbers that look right but are leading you wrong.

Keto tracking has specific requirements that general calorie or macro tracking does not. The net carb calculation is different from total carbohydrate. The fat target is set differently from protein and carbs — not as a fixed gram number but as a fill variable that completes the calorie target. Electrolytes — sodium, potassium, and magnesium — require active attention during the first three to eight weeks in a way that no other dietary approach demands. And the calorie target itself interacts with the macro split in a way that produces counterintuitive results: adding more fat at constant protein and carbs actually increases calories, which sounds obvious but frequently surprises new keto dieters who are used to thinking of fat as something to minimise.

This guide walks through the setup process step by step: calculating your targets, understanding net carbs versus total carbs, setting fat intake correctly, building an electrolyte baseline, and choosing a logging method that works in real eating conditions. By the end you will have numbers to work with on day one, not guesses.

Step one — calculate your calorie and macro targets

The starting point for any keto setup is total daily energy expenditure (TDEE) — the number of calories your body burns in a day across all activity. From TDEE, you apply a deficit (for weight loss) or no deficit (for weight maintenance or muscle gain). A moderate deficit for fat loss is 15–20% below TDEE. Aggressive deficits beyond 25% on keto can produce rapid muscle loss, because on a very-low-carbohydrate diet the body’s primary muscle-sparing mechanism — insulin-mediated protein anabolism — is reduced, and inadequate calorie intake increases muscle protein catabolism.

TDEE is estimated, not measured precisely, using your basal metabolic rate (BMR) multiplied by an activity factor. The Mifflin-St Jeor equation is the most widely validated for BMR estimation:

For men: BMR = (10 × weight in kg) + (6.25 × height in cm) − (5 × age in years) + 5

For women: BMR = (10 × weight in kg) + (6.25 × height in cm) − (5 × age in years) − 161

Multiply BMR by 1.2 for sedentary (desk job, no exercise), 1.375 for lightly active (1–3 days light exercise per week), 1.55 for moderately active (3–5 days moderate exercise per week), and 1.725 for very active (hard exercise 6–7 days per week).1

Once you have TDEE, apply your chosen deficit to get your target calorie intake. A 75 kg, 175 cm, 35-year-old man with a moderately active lifestyle has a BMR of approximately 1,750 kcal and a TDEE of approximately 2,710 kcal. A 20% deficit targets 2,170 kcal per day.

Step two — set your protein target first

Protein is set first because it is the non-negotiable floor. Inadequate protein on a calorie deficit produces muscle loss regardless of the rest of the macro split. The evidence-supported range for muscle preservation during weight loss on a low-carbohydrate diet is 1.6–2.2 g per kg of body weight per day, with higher intakes (toward 2.2 g/kg) more protective for people who exercise regularly and are in a significant caloric deficit.2

For the 75 kg example: 75 × 1.8 g/kg = 135 g protein per day. At 4 kcal/g, this is 540 kcal from protein.

Protein target does not change with dietary fat. It is fixed and floors the macro split. Everything else is built around it.

Step three — set your carbohydrate limit and understand net carbs

Standard ketogenic diets define the carbohydrate threshold as 20–50 g of net carbohydrates per day. Net carbohydrates are total carbohydrates minus dietary fibre and minus certain sugar alcohols (erythritol and xylitol are typically fully subtracted; maltitol is typically only partially subtracted due to its glycaemic effect).

The distinction between total and net carbs matters practically. A cup of raw spinach contains approximately 1.1 g total carbohydrate and 0.4 g fibre — 0.7 g net carbs. An avocado contains approximately 12 g total carbohydrate and 10 g fibre — approximately 2 g net carbs. Counting total carbohydrates for these foods would make them look more carbohydrate-dense than they are in terms of glycaemic impact, and would significantly restrict food variety on an already restricted approach.3

However, not all fibre equally blunts glycaemic response. Soluble fibre (in oats, legumes, and some fruits) forms a gel in the digestive tract that slows glucose absorption substantially. Insoluble fibre (in most vegetables) passes through largely intact. Both contribute to the total fibre count subtracted in the net carb calculation, but their glycaemic modulation differs. For most non-diabetic keto dieters, net carb counting is sufficiently accurate. For people with Type 2 diabetes or significant insulin resistance, some practitioners recommend tracking total carbohydrates rather than net carbs, because even slowly absorbed carbohydrates may produce glucose responses that matter for their management targets.

A workable starting net carb target for most people beginning keto is 20 g net carbs per day. This is the threshold used in most published keto research to reliably induce and maintain nutritional ketosis. It is stricter than necessary for some individuals — some people maintain ketosis at 40–50 g net carbs — but starting at 20 g establishes ketosis reliably during the critical first two weeks, when the adaptation experience is most aversive and adherence is lowest. Once ketosis is established and stable, some people can raise the threshold and test their individual tolerance using ketone measurement tools.3

At 20 g net carbs and 4 kcal/g: approximately 80 kcal from carbohydrate.

Step four — fill remaining calories with fat

Fat is the fill variable. Once protein grams and carbohydrate grams are set, the remaining calorie target is filled with dietary fat.

Returning to the example: 2,170 kcal target − 540 kcal (protein) − 80 kcal (carbs) = 1,550 kcal from fat. At 9 kcal/g, this is approximately 172 g of dietary fat per day.

This is a large number. It exceeds what most people have been eating as dietary fat on a previous mixed diet by a factor of two to three. The psychological barrier to eating 170+ g of fat per day when you’ve been eating 60–80 g is real, and it’s a common source of unintentional caloric deficit on keto — people restrict carbs correctly but don’t replace the calorie contribution of carbs with fat, running a much larger deficit than intended and producing the fatigue, poor performance, and keto flu that they attribute to the dietary approach itself rather than to caloric inadequacy.4

Fat sources that make hitting a high fat target manageable: olive oil (14 g fat per tablespoon), butter (12 g per tablespoon), avocado (approximately 21 g fat per 100 g), hard cheese (approximately 25–33 g fat per 100 g), full-fat cream (approximately 36 g fat per 100 ml). Fatty cuts of meat — ribeye, pork belly, salmon, chicken thighs with skin — provide both protein and fat, reducing the number of pure fat additions needed.

Step five — the electrolyte baseline

The keto flu — headache, fatigue, irritability, muscle cramps, brain fog — occurs in the first one to two weeks of ketosis for a significant proportion of new keto dieters. Its primary cause is not the absence of glucose or the adaptation to fat metabolism. It is electrolyte depletion.4

Ketosis has a diuretic effect: as glycogen is depleted (glycogen is stored with approximately 3–4 g of water per gram of glycogen), the released water carries sodium with it into the urine. Insulin levels fall on a low-carbohydrate diet, and insulin promotes renal sodium reabsorption — reduced insulin means increased sodium excretion. The resulting sodium loss is significant: keto dieters can lose 1–2 g of sodium per day above typical losses during the first two weeks of the diet.4

Sodium depletion triggers secondary losses: the kidneys compensate for sodium loss by retaining potassium, but the overall body potassium store also declines over the adaptation period. Magnesium losses are smaller but clinically meaningful — magnesium deficiency is the primary cause of muscle cramps on keto.

The electrolyte baseline for the first eight weeks on keto:

Sodium: 3,000–5,000 mg per day (the upper end during the first two weeks). This can be supplemented via salted food, bone broth (approximately 500–1,000 mg sodium per cup), or an electrolyte supplement. Most people eating a typical keto diet without added salt get 1,000–1,500 mg sodium from food alone — substantially below the minimum needed during adaptation.

Potassium: 3,000–4,700 mg per day from food (supplemental high-dose potassium is not recommended without medical supervision due to cardiac risks). Keto-compatible potassium sources: avocado (approximately 485 mg per 100 g), salmon (approximately 490 mg per 100 g), mushrooms (approximately 318 mg per 100 g), spinach (approximately 558 mg per 100 g).

Magnesium: 300–500 mg per day, with supplementation commonly needed because high-magnesium plant foods (legumes, grains) are restricted. Magnesium glycinate or malate is better tolerated than magnesium oxide, which has a laxative effect at doses above 200 mg.4

Step six — set up your logging workflow for real eating conditions

Keto tracking breaks down most visibly at restaurant meals, social dinners, and travel. These are precisely the contexts where carbohydrate overages are most likely — hidden carbs in sauces, breading on fried foods, sugar added to marinades, thickened soups.

The practical logging workflow for keto in mixed eating environments:

At home: weigh raw ingredients, log macros from USDA FoodData Central or a well-maintained database. Use net carb values, not total carbohydrate. Log fat additions (cooking oil, butter) separately from the protein source — this is where keto home-cooking calories are most often underlogged.

At restaurants: identify the protein source and request preparation details — grilled not breaded, no sauce or sauce on the side. The carbohydrate in a grilled protein with a salad is predictable and low. The carbohydrate in an unknown sauce, a marinade, or a battered preparation is unpredictable and often high. When in doubt, log conservatively and add 10 g net carbs to account for likely hidden sources.

For meals that can’t be precisely logged: photograph the plate using a food recognition tool and review the identified items and their carbohydrate contributions. The key data point is not the total calories — it’s whether any individual item has unexpectedly high net carbs that would push you over the threshold. A logging tool that identifies “teriyaki glaze” as a separate item, notes its sugar content, and flags the net carb contribution is more useful for keto maintenance than one that estimates total calories without flagging hidden carbohydrate sources.

Tracking ketones — do you need to?

Ketone measurement tools (blood ketone meters, urine ketone strips, breath ketone monitors) allow you to confirm whether you’re in ketosis. Blood meters (measuring beta-hydroxybutyrate, or BHB) are the most accurate. Nutritional ketosis is typically defined as BHB above 0.5 mmol/L, with a range of 0.5–3.0 mmol/L representing the typical nutritional ketosis window. Therapeutic ketosis (used in epilepsy management) targets higher levels.3

For beginners, ketone measurement provides useful feedback in the first two to four weeks. A BHB reading below 0.5 mmol/L while eating what you believe to be a keto diet indicates either a hidden carbohydrate source, insufficient fat intake reducing ketone production, or (less commonly) an individual whose ketosis threshold is above 20 g net carbs. Measurement makes this diagnostic rather than speculative.

After the first month, daily ketone measurement is unnecessary for most people. The appetite suppression, mental clarity, and stable energy associated with established ketosis are themselves indicators — they’re qualitative, but they’re more continuous than a once-daily blood reading. Many experienced keto dieters measure weekly or only when troubleshooting.5

Common setup mistakes and how to avoid them

Mistake 1: Counting total carbs instead of net carbs. This makes vegetables look carb-heavy and leads to unnecessary restriction of fibre-rich plants that support gut health and micronutrient intake. Use net carbs from day one.

Mistake 2: Not logging fat additions. A tablespoon of olive oil is 120 kcal and 14 g of fat. Two tablespoons used in cooking, unreported, is a 240 kcal undercount. Fat is calorie-dense and invisible in a plate photo if absorbed into cooking. Log it at the cooking step.

Mistake 3: Under-eating sodium. This is the single most preventable cause of keto flu and early dropout. Add salt. Drink broth. Set a sodium target in your logging app and track it like a macro.

Mistake 4: Treating protein as a free variable. Excessive protein (above 2.2 g/kg) can blunt ketosis in some individuals through gluconeogenesis. Set protein as a target range, not an open ceiling.

Mistake 5: Comparing week one to week two. The first week of keto typically produces 1.5–3 kg of water weight loss as glycogen depletes. Week two, fat loss begins but water weight has stabilised — the scale often doesn’t move much. This is not a stall. It is the normal transition from glycogen depletion to fat oxidation. Tracking body measurements alongside scale weight prevents this from being misread as failure.

References

  1. Mifflin MD, St Jeor ST, Hill LA, Scott BJ, Daugherty SA, Koh YO. “A new predictive equation for resting energy expenditure in healthy individuals.” American Journal of Clinical Nutrition 51, no. 2 (1990): 241–247.

  2. Stokes T, Hector AJ, Morton RW, McGlory C, Phillips SM. “Recent Perspectives Regarding the Role of Dietary Protein for the Promotion of Muscle Hypertrophy with Resistance Exercise Training.” Nutrients 10, no. 2 (2018): 180.

  3. Paoli A, Rubini A, Volek JS, Grimaldi KA. “Beyond weight loss: a review of the therapeutic uses of very-low-carbohydrate (ketogenic) diets.” European Journal of Clinical Nutrition 67, no. 8 (2013): 789–796.

  4. Phinney SD, Volek JS. “Ketogenic Diets and Physical Performance.” Nutrition and Metabolism 1, no. 1 (2004): 2.

  5. Volek JS, Phinney SD. The Art and Science of Low Carbohydrate Living. Beyond Obesity LLC, 2011.

  6. U.S. Department of Agriculture, Agricultural Research Service. FoodData Central. Accessed 2024. Net carbohydrate and electrolyte composition data. https://fdc.nal.usda.gov/

  7. Westman EC, Yancy WS Jr, Mavropoulos JC, Marquart M, McDuffie JR. “The effect of a low-carbohydrate, ketogenic diet versus a low-glycemic index diet on glycemic control in type 2 diabetes mellitus.” Nutrition and Metabolism 5 (2008): 36.

Frequently asked questions

What is the difference between net carbs and total carbs on a ketogenic diet?
Net carbs subtract dietary fibre and certain sugar alcohols from total carbohydrate because these compounds have minimal glycaemic impact. A cup of spinach has 1.1 g total carbs but only 0.7 g net carbs. Tracking net carbs rather than total carbs makes high-fibre vegetables far more compatible with keto limits.
Why do you set protein first and fat last when calculating keto macros?
Protein is a non-negotiable floor — 1.6–2.2 g per kg of body weight preserves muscle during a deficit regardless of macro split. Fat is the fill variable: once protein grams and carbohydrate grams are fixed, remaining calorie headroom is filled with dietary fat, which can reach 170 g per day or more.
What causes keto flu and how do you prevent it with electrolytes?
Keto flu is primarily electrolyte depletion, not glucose withdrawal. Depleting glycogen releases bound water that carries sodium out, and lower insulin further increases sodium excretion. Target 3,000–5,000 mg sodium, 3,000–4,700 mg potassium from food, and 300–500 mg magnesium daily for the first eight weeks of adaptation.
How do you handle hidden carbohydrates when tracking keto at restaurants?
Request preparation details for every protein dish — grilled not breaded, sauce on the side. Unknown sauces, marinades, and glazes are the primary hidden carb sources in restaurant meals. When uncertain, add 10 g net carbs to your estimate to account for likely hidden sources, and use a food photo tool to identify flagged items.
Do you need to measure ketones daily to confirm you are in ketosis?
Only in the first two to four weeks, when blood ketone readings (targeting above 0.5 mmol/L BHB) help diagnose whether a hidden carb source or insufficient fat intake is preventing ketosis. After the first month, qualitative signals like stable energy and appetite suppression are sufficient for most people, with measurement reserved for troubleshooting.