Keto Macro Calculator

Enter age, height, weight and activity, choose a goal and a net carb limit, and get daily keto macros in grams and percent with the working shown.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Enter your details

    Choose units and sex, then type age, weight, height and activity.

  2. 2
    Set your goal

    Move the goal slider to a deficit, maintenance or a small surplus.

  3. 3
    Set carbs and protein

    Choose your net carb limit and protein per kilogram.

  4. 4
    Read your macros

    See grams, calories and percentages with the working.

  5. 5
    Plan meals

    Split the targets across meals and check foods by net carbs.

  6. 6
    Log a day

    Add foods by weight to see carbs used and left.

About this tool

A ketogenic diet keeps carbohydrate low enough that the body relies mainly on fat and ketones for fuel. In practice that means three numbers to hit every day: a ceiling for net carbs, a protein target and enough fat to supply the rest of your calories. This calculator works them out from first principles and shows every step. It estimates resting energy with the Mifflin-St Jeor equation, or with the Katch-McArdle equation if you know your body fat, multiplies by an activity factor to get maintenance calories and applies your goal, for example 20 % below maintenance to lose weight. Net carbs are set by a slider, with 25 g a day as the default example, protein by grams per kilogram, and fat fills the remaining calories. The result appears in grams, calories and percent of energy, split across the number of meals you eat. A food list shows approximate net carbs per 100 g for common keto foods and how much of each fits a given carb budget, and a simple day log tracks net carbs eaten against your limit.

How the targets are calculated

Resting energy (Mifflin-St Jeor) is 10 × weight in kg + 6.25 × height in cm − 5 × age, plus 5 for men or minus 161 for women. Multiplying by an activity factor, from 1.2 for a desk job to 1.9 for very heavy work, gives maintenance calories, often called TDEE. The goal slider scales that number, so −20 % is a moderate deficit and 0 is maintenance. Net carbs and protein are fixed in grams; at 4 kcal per gram their calories are subtracted, and the rest is divided by 9 to give fat grams.

Choosing net carbs and protein

Net carbs are total carbohydrate minus fibre. Most ketogenic plans keep them somewhere between 20 and 50 g a day; lower is stricter. Protein is commonly set between about 1.2 and 2.0 g per kg of body weight, higher when training hard or losing weight to protect muscle. If you enter a body fat percentage you can base protein on lean mass instead, which avoids an unnecessarily high target for people carrying more fat.

Meals, foods and the day log

The meal split divides the targets evenly over one to five meals. The food list gives approximate net carbs per 100 g, rounded from USDA FoodData Central, from 0 for oils, fish and meat up to about 9 for almonds; type how many grams of carbs you want to spend and it shows how much of a food that buys. The day log adds foods by weight and shows net carbs used and left for the day.

Worked example

A 35-year-old woman, 166 cm and 72 kg, lightly active: resting energy = 720 + 1037.5 − 175 − 161 = 1421.5 kcal. × 1.375 = 1955 kcal maintenance. A 20 % deficit gives 1564 kcal. Net carbs 25 g (100 kcal), protein 1.6 × 72 = 115 g (461 kcal), so fat = (1564 − 100 − 461) ÷ 9 = 111 g. That is about 6 % of calories from carbs, 29 % from protein and 64 % from fat.

Limits

Equations estimate energy needs for groups, so individual needs can differ by several hundred calories; adjust after a few weeks of weighing. Food values are approximate. A ketogenic diet is not suitable for everyone: people with diabetes on insulin or sulfonylureas, kidney or liver disease, a history of eating disorders, or who are pregnant should speak to a clinician first. This is not medical advice.

Worked example

72 kg woman, lightly active, −20 %: 1564 kcal = 25 g net carbs, 115 g protein, 111 g fat.

Quick facts

Frequently asked questions

How many net carbs should I eat on keto?

Most plans use 20 to 50 g of net carbs a day. The calculator starts at 25 g as an example; move the slider to match your plan.

How is fat calculated?

Fat is whatever is left: target calories minus carbs × 4 and protein × 4, divided by 9 calories per gram.

What are net carbs?

Total carbohydrate minus fibre. Labels in some countries already list carbohydrate without fibre, so check which figure yours shows.

Should protein be based on lean mass?

If you know your body fat, basing protein on lean mass avoids an unnecessarily high target. Tick the option once you enter body fat.

Why is my calorie target different from another calculator?

Calculators use different equations and activity factors. This one uses Mifflin-St Jeor or Katch-McArdle and shows every step so you can compare.

Can I log what I eat?

Yes, roughly. The Day log adds foods from the list by weight and totals the net carbs for the day.

Guides for this tool

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