Keto Macro Calculator

For adults 19 and over. Get gram targets for a ketogenic diet from your estimated calorie needs.

Who should not follow a ketogenic diet. Do not start one without medical advice. The International Ketogenic Diet Study Group guideline lists these conditions as absolute contraindications: primary carnitine deficiency; carnitine palmitoyltransferase (CPT) I or II deficiency; carnitine translocase deficiency; beta-oxidation defects (including MCAD, LCAD and SCAD deficiency, long-chain and medium-chain 3-hydroxyacyl-CoA deficiency); pyruvate carboxylase deficiency; porphyria. It also lists relative ones, such as being unable to maintain adequate nutrition, so check with a doctor first even if none of these apply. Our other rules apply too: not for people who are pregnant or breastfeeding, or under 19, and not if you have, or have had, an eating disorder.

Units
Are you pregnant or breastfeeding?
The equations were built from data on females and males.
19 or over
Activity level on a typical day
Method

This tool runs entirely in your browser. Nothing you enter is sent to us or anyone else.

How this is calculated

  1. Calories come from the 2023 Dietary Reference Intakes energy equations to stay at your weight; this tool does not set a weight-loss target.
  2. Protein = 0.8 g per kg of body weight (the RDA). Very-low-carbohydrate method: carbohydrate = 50 g; fat = the remaining calories.
  3. Ratio method: fat grams = ratio × (protein + carbohydrate grams). With 9 calories per gram of fat and 4 per gram of protein or carbohydrate, protein plus carbohydrate = calories ÷ (9 × ratio + 4); carbohydrate is what remains after protein.

Every number this tool uses is listed in our sources ledger:

What a ketogenic diet is

A ketogenic diet is very low in carbohydrate and high in fat, designed to induce ketosis. In its classic medical form, described by the International Ketogenic Diet Study Group, the ratio of fat to protein plus carbohydrate is 4:1 by weight, with fat about 90% of calories; a 3:1 or lower ratio can be used to allow more protein or carbohydrate. A meta-analysis described in a 2020 review defines a very-low-carbohydrate ketogenic diet as 50 g of carbohydrate or less a day.

Evidence and risks

A National Lipid Association scientific statement found mixed effects of low-carbohydrate and very-low-carbohydrate diets on LDL cholesterol, with some studies showing an increase, and concluded they are not superior to other dietary approaches for weight loss. We make no claim that keto is better than other diets for weight loss. See how to count macros and the regular macro calculator.

Questions people ask

Is keto safe?

It depends on the person. An international clinical guideline lists conditions in which it is contraindicated (shown above the calculator), and says relative contraindications also exist. Talk to your doctor before starting.

Why are 3:1 and 4:1 offered?

Those ratios come from the medical ketogenic diet used for epilepsy. The International Ketogenic Diet Study Group guideline calls 4:1 the most common ratio, with 3:1 or lower used alternatively to allow more protein or carbohydrate.

Can I use it while pregnant or breastfeeding?

No. The tool redirects you. Do not start a restrictive diet in pregnancy or while breastfeeding without your provider’s advice.

Sources

  1. Kossoff EH et al., Epilepsia Open 2018;3(2):175-192 (doi 10.1002/epi4.12225). Optimal clinical management of children receiving dietary therapies for epilepsy: Updated recommendations of the International Ketogenic Diet Study Group. Accessed 2026-11-24.
  2. Kirkpatrick CF et al., J Clin Lipidol 2019;13(5):689-711 (doi 10.1016/j.jacl.2019.08.003). Review of current evidence and clinical recommendations on the effects of low-carbohydrate and very-low-carbohydrate (including ketogenic) diets for the management of body weight and other cardiometabolic risk factors. Accessed 2026-11-24.
  3. Signal Transduction and Targeted Therapy 2022;7 (doi 10.1038/s41392-021-00831-w). Ketogenic diet for human diseases: the underlying mechanisms and potential for clinical implementations. Accessed 2026-11-24.
  4. Cureus 2020;12(8):e9639 (doi 10.7759/cureus.9639). Advantages and Disadvantages of the Ketogenic Diet: A Review Article. Accessed 2026-11-24.
  5. National Academies of Sciences, Engineering, and Medicine. Dietary Reference Intakes for Energy (2023). Accessed 2026-11-24.
  6. National Academies of Sciences, Engineering, and Medicine. Dietary Reference Intakes for Sodium and Potassium, Appendix J: DRI Summary Tables (2019). Accessed 2026-11-24.
  7. U.S. Food and Drug Administration. 21 CFR 101.9 Nutrition labeling of food (eCFR, current as of November 2026). Accessed 2026-11-24.

By Now Track Health Editorial Team · Last checked: