Health and Fitness

How to Calculate Your Keto Macros (Net Carbs, Protein and Fat)

A step-by-step guide to setting keto macros: estimating calories, choosing a net carb limit and protein target, and letting fat fill the rest.

Saizul Amin
Saizul Amin5 Nov 2026 · 3 min read
How to Calculate Your Keto Macros (Net Carbs, Protein and Fat)

How to Calculate Your Keto Macros (Net Carbs, Protein and Fat)

A ketogenic diet is defined less by particular foods than by three numbers: how many net carbs you eat, how much protein, and how much fat. Get those roughly right and the food choices follow. This guide explains how to set each number and how the free keto macro calculator does the sums and shows its working.

Step 1: estimate your calorie needs

Everything starts with an estimate of how many calories you burn. The calculator uses the Mifflin-St Jeor equation for resting energy, which research has found to be among the more accurate for healthy adults:

  • Men: 10 × weight (kg) + 6.25 × height (cm) − 5 × age + 5
  • Women: 10 × weight (kg) + 6.25 × height (cm) − 5 × age − 161

If you know your body fat percentage, you can switch to the Katch-McArdle equation, which uses lean mass instead. Multiply resting energy by an activity factor, from 1.2 for a desk job to 1.9 for very physical work, to estimate maintenance calories.

Step 2: choose a goal

To lose fat, eat below maintenance. A deficit of 15 to 25 percent is common; the calculator's slider runs from 30 percent below to 15 percent above. Larger deficits make hunger and muscle loss more likely, so many people start around 20 percent and adjust after a few weeks of weighing.

Step 3: set net carbs

Net carbs are total carbohydrate minus fibre. Most keto plans keep them between 20 and 50 grams a day; the calculator starts at 25 grams as an example. Lower is stricter and more likely to keep you in ketosis, but harder to sustain. Vegetables such as spinach, courgette and cauliflower give a lot of food for few net carbs.

Step 4: set protein

Protein protects muscle, especially while dieting. A common range is 1.2 to 2.0 grams per kilogram of body weight, higher if you train hard. If you carry a lot of body fat, basing protein on lean mass gives a more sensible number; enter your body fat and tick the lean-mass option.

Step 5: let fat fill the rest

Carbohydrate and protein each provide 4 calories per gram, and fat provides 9. Subtract the carb and protein calories from your target and divide what is left by 9. That is your fat target.

A worked example

A 35-year-old woman, 166 cm tall and 72 kg, lightly active:

  • Resting energy: 720 + 1037.5 − 175 − 161 = 1421.5 kcal
  • Maintenance: 1421.5 × 1.375 = 1955 kcal
  • Target with a 20 percent deficit: 1564 kcal
  • Net carbs 25 g = 100 kcal; protein 1.6 × 72 = 115 g = 461 kcal
  • Fat: (1564 − 100 − 461) ÷ 9 = 111 g

That works out at roughly 6 percent of calories from carbs, 29 percent from protein and 64 percent from fat, a typical keto split.

Turning macros into meals

The Meal split tab divides the targets evenly across one to five meals. The Food list tab shows approximate net carbs per 100 grams for common keto foods, and tells you how much of a food fits a carb budget: for example, how many grams of strawberries make 5 grams of net carbs. The Day log adds foods by weight and shows how much of your net carb limit remains.

Adjust with real results

Equations estimate averages. If your weight is not moving in the direction you want after three or four weeks, adjust calories by 100 to 200 a day. Keep protein steady and change fat first.

Limits

A ketogenic diet is not right for everyone. People with diabetes on insulin or tablets that lower blood sugar, kidney or liver disease, a history of eating disorders, or who are pregnant or breastfeeding should talk to a clinician before starting. Food values are approximate; check labels.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages