๐Ÿฅ‘ Net Carbs & Keto Macro Calculator

Last updated: April 6, 2026

Net Carbs & Keto Macro Calculator

Calculate net carbs from a food label, then get your personalized keto macro targets.

From nutrition label
Subtract fully
Half counted
Your TDEE or diet target
Typical keto: 20โ€“50 g
% of total calories
Affects net carb math
Your Results
Net Carbs in This Food
โ€”
grams of net carbs
Daily Keto Macro Targets
Total Daily Calories โ€”
Fat
โ€”
โ€”
Protein
โ€”
โ€”
Net Carbs
โ€”
โ€”
Fat Protein Carbs
Calories from Fatโ€”
Calories from Proteinโ€”
Calories from Net Carbsโ€”

Net Carbs vs. Total Carbs: What Actually Matters on Keto?

Walk down the keto snack aisle at any grocery store and you will see it everywhere: "Only 3g Net Carbs!" printed in large, confident type while the nutrition label underneath lists 22 grams of total carbohydrates. That gap โ€” 19 grams โ€” is not marketing trickery. It reflects a genuine biochemical distinction between carbohydrates that spike your blood glucose and those that pass through your gut without being absorbed in the same way. Understanding this distinction is the single most important number skill you can develop on a ketogenic diet.

The Simple Formula Behind Net Carbs

Net carbs are calculated by starting with total carbohydrates from the nutrition label and subtracting two categories: dietary fiber and sugar alcohols. The standard formula is:

Net Carbs = Total Carbs โˆ’ Dietary Fiber โˆ’ (Sugar Alcohols ร— Impact Factor)

Fiber earns a full subtraction because humans lack the enzymes to break down most dietary fiber into glucose. Soluble fiber ferments partially in the colon, but even this produces short-chain fatty acids rather than glucose, contributing minimally to blood sugar. The net effect on ketosis is essentially zero for most people.

Sugar alcohols are more complicated, which is why the calculator asks you to specify the type. Erythritol, which has become the dominant sweetener in keto baking, is absorbed in the small intestine and then excreted in urine almost entirely unchanged โ€” its glycemic index is essentially zero, and most keto dieters subtract it fully. Xylitol and sorbitol, by contrast, have a partial metabolic impact, typically counted at about half their gram weight. Maltitol is the troublesome one: it has a glycemic index roughly half that of table sugar, meaning you should count nearly all of its grams toward your net carb total regardless of what the front-of-package claims.

Why Your Daily Carb Limit Is Not One Number

The oft-cited threshold of "under 20 grams of net carbs per day" for entering ketosis is a starting point, not a universal law. Ketosis occurs when liver glycogen is depleted enough that the body shifts to producing ketone bodies from fat. How quickly that happens โ€” and at what carbohydrate intake level you can remain in ketosis โ€” depends on several individual factors: your metabolic health, activity level, body composition, and how long you have been fat-adapted.

Sedentary individuals with insulin resistance typically need to stay closer to 20 grams to maintain measurable ketosis. Athletes doing high-intensity training can often sustain ketosis at 50 grams or even higher because muscle glycogen turnover is rapid. Someone who has been keto for two or more years and has developed strong fat-adaptation may tolerate carb creep better than a newcomer. This is why the calculator lets you set your own carb limit rather than imposing a fixed number โ€” your target should be calibrated to your situation.

How to Set Your Keto Macros Beyond Just Carbs

Keto is often described as a high-fat diet, but the more precise framing is that fat is a residual macro โ€” it fills the calorie gap after you have set your carbs and protein. Getting protein right matters more than most people starting keto realize. Too little protein on a calorie-restricted keto diet leads to muscle loss; too much can theoretically push amino acids into gluconeogenesis and impair ketosis, though research suggests this effect is smaller than commonly feared.

A practical approach is to set protein between 20โ€“30% of total calories, depending on your activity level and whether you are trying to preserve or build lean mass. Fat then covers the remaining calories after carbohydrates are accounted for. At a 1,800-calorie intake with a 20-gram carb limit and 25% protein, for example, you would land at approximately 140g fat, 112g protein, and 20g net carbs โ€” giving a ratio close to the classic 70/25/5 split.

Reading Nutrition Labels Like a Keto Detective

The label on a US food product lists total carbohydrates, then indents fiber and sugars beneath it. Sugar alcohols may or may not be listed depending on the manufacturer. If a product claims to be "keto" but does not separately list sugar alcohols, check the ingredients list for sorbitol, maltitol, xylitol, isomalt, glycerol, or erythritol. Once identified, apply the appropriate impact factor before calling a food "low carb."

A common trap is "net carb" claims on protein bars where maltitol is the primary sweetener. A bar with 25g total carbs, 2g fiber, and 18g maltitol sugar alcohols might advertise 5g net carbs. But applying the correct 100% impact factor for maltitol leaves you with 23 effective carbs โ€” nearly a full day's budget on a strict keto protocol. The calculator above handles this automatically once you select the sugar alcohol type.

Common Mistakes That Knock You Out of Ketosis Without Realizing

Even careful keto dieters hit unexpected stalls. Hidden carbs in restaurant sauces, condiments, and medications (many pills use glucose-based fillers) add up quickly. Portion sizes are another culprit: a serving of nuts listed at 5g net carbs becomes 15g when you eat three servings. Dairy products โ€” particularly milk and yogurt โ€” contain lactose, a disaccharide that must be counted fully. Heavy cream and hard aged cheeses are low-carb; milk and sweetened yogurt are not, despite being dairy.

Net carb math also does not account for individual gut microbiome differences. Some people produce more butyrate from fermenting fiber, which may have mild systemic effects. For most practical purposes this is negligible, but it illustrates why testing your ketone levels with a blood meter remains the gold standard for knowing whether your numbers are working for your specific body.

Using the Calculator Effectively

For the food label section, pull up the nutrition facts of whatever food you are evaluating โ€” a snack bar, a recipe you have cooked, or a packaged product. Enter total carbs, then fiber, then sugar alcohols if present. Select the sugar alcohol type from the dropdown. The result tells you the realistic net carb impact of that food on your daily budget.

For the macro planning section, enter your daily calorie target (your TDEE minus whatever deficit you are running), set your personal carb limit, and choose a protein ratio. The results will show you grams and percentages for fat, protein, and net carbs, along with calorie contributions from each. This gives you a complete picture of how to structure your day โ€” not just whether a single food fits.

Think of net carb tracking as financial budgeting. Knowing one purchase is affordable does not mean you have planned your whole month. The macro targets section is your monthly budget; the net carbs section tells you the cost of each transaction.

FAQ

What is the exact formula for calculating net carbs?
Net carbs = Total Carbohydrates โˆ’ Dietary Fiber โˆ’ (Sugar Alcohols ร— Impact Factor). Fiber is always subtracted fully. Sugar alcohols use an impact factor depending on type: erythritol = 0%, mixed/xylitol/sorbitol = 50%, maltitol = 100%. If no sugar alcohols are present, the formula simplifies to Total Carbs minus Fiber.
Why does the type of sugar alcohol matter for net carbs?
Different sugar alcohols have very different glycemic impacts. Erythritol is excreted almost entirely unchanged and has a glycemic index near zero, so it is fully subtracted. Maltitol, on the other hand, has a glycemic index of about 35 (roughly half that of table sugar) and should not be subtracted at all if you are strict about blood sugar control. Xylitol and sorbitol fall in between, usually counted at 50% impact. Using the wrong assumption can lead you to believe a food is keto-friendly when it is actually spiking your blood glucose.
How many grams of net carbs per day does it take to stay in ketosis?
For most people, staying under 20โ€“50g of net carbs per day is sufficient to maintain ketosis. Strict beginners often start at 20g or below to reliably enter ketosis within 2โ€“4 days. Metabolically healthy athletes or long-term keto adapters may tolerate up to 50โ€“75g while staying in mild ketosis. The only reliable way to confirm you are in ketosis is a blood ketone meter; urine strips are a rough proxy, especially once you are fat-adapted.
Should fat intake on keto be as high as possible?
Not necessarily. Fat is the primary energy source on keto, but if weight loss is your goal, you do not need to maximize fat intake โ€” your body fat stores serve as the 'dietary fat' filling the gap. Eating more fat than your calorie budget allows will stall weight loss even in ketosis. Set your calorie goal at a modest deficit, let protein and carbs consume their shares, and fat automatically fills the remainder. Prioritize fat quality (avocado, olive oil, fatty fish, eggs) over sheer quantity.
Can I eat more carbs on keto if I exercise?
Yes, in most cases. Resistance training and high-intensity cardio deplete muscle glycogen, which creates more 'room' for incoming carbohydrates before blood glucose rises significantly. Some keto practitioners use targeted keto (small carb intake around workouts) or cyclical keto (higher carbs on training days) to support performance while remaining fat-adapted overall. If you train intensively, increasing your daily net carb limit to 30โ€“50g is a reasonable starting experiment, then test ketone levels to see if you remain in range.
Why does my keto snack bar say 2g net carbs but I still get kicked out of ketosis?
Almost always this comes down to maltitol. Many mass-market protein and keto bars use maltitol as their primary bulk sweetener because it is cheap and mimics sugar's texture, but it has a significant glycemic response. A bar listing 20g sugar alcohols as maltitol and claiming '2g net carbs' is misleading โ€” those 20g of maltitol should be counted at or near 100%, not subtracted. Check the ingredients list for maltitol specifically, and use the sugar alcohol type selector in this calculator to get an accurate net carb count.