Net carb calculator: count carbs the easy way
If you've ever stared at a nutrition label wondering which carbs actually count, you're not alone. Net carb calculation is one of the most searched — and most misunderstood — topics in low-carb and keto nutrition. Accord

If you've ever stared at a nutrition label wondering which carbs actually count, you're not alone. Net carb calculation is one of the most searched — and most misunderstood — topics in low-carb and keto nutrition. According to the International Food Information Council, nearly 1 in 3 Americans actively try to limit carbohydrate intake, yet most aren't sure how to calculate net carbs correctly. The difference between getting it right and getting it wrong can mean the difference between staying in ketosis and quietly sabotaging your progress. This guide breaks down exactly how a net carb calculator works, walks you through the formulas for whole and processed foods, clarifies the sugar alcohol confusion, and shows you how to skip the manual math entirely.
What are net carbs?
Net carbs are the carbohydrates your body actually digests and converts into glucose, raising your blood sugar. The concept is straightforward: subtract the carbs that pass through your system largely unabsorbed — primarily dietary fiber and certain sugar alcohols — from the total carbohydrate count. What remains is the portion that impacts your energy levels, insulin response, and whether you stay in or fall out of ketosis.
It's worth noting that the term "net carbs" is not officially recognized by the FDA or the American Diabetes Association. The FDA recommends using total carbohydrates listed on the Nutrition Facts label. However, the net carb framework has become the practical standard for anyone following a ketogenic, Atkins, or general low-carb diet because it more accurately reflects how different carbohydrates behave in your body.
How to calculate net carbs
The basic net carb formula depends on whether you're looking at a whole, unprocessed food or a packaged, processed product. Here's how both work.
Net carbs in whole foods
For fruits, vegetables, legumes, nuts, and other whole foods, the formula is simple:
Net carbs = total carbohydrates − dietary fiber
Fiber is a type of carbohydrate your body lacks the enzymes to break down. It passes through your digestive tract mostly intact, contributing minimal calories and having virtually no effect on blood sugar. That's why you subtract it entirely.
Example: A medium avocado contains roughly 17 grams of total carbs and 13.5 grams of fiber. That gives you just 3.5 grams of net carbs — making avocados one of the most keto-friendly whole foods available.
Here are a few more common whole foods and their net carb counts:
Broccoli (1 cup, chopped): 6 g total carbs − 2.4 g fiber = 3.6 g net carbs
Almonds (28 g): 6 g total carbs − 3.5 g fiber = 2.5 g net carbs
Raspberries (1 cup): 15 g total carbs − 8 g fiber = 7 g net carbs
Cauliflower (1 cup): 5 g total carbs − 2 g fiber = 3 g net carbs
Net carbs in processed foods
Packaged foods often contain sugar alcohols alongside fiber, which adds a layer of complexity:
Net carbs = total carbohydrates − fiber − sugar alcohols (adjusted)
The "adjusted" part is critical. Not all sugar alcohols are equal — some are almost fully absorbed, while others pass through without affecting blood sugar at all. The general rule most nutrition experts recommend is to subtract 100% of erythritol but only subtract half of other sugar alcohols like maltitol, xylitol, sorbitol, and isomalt.
Example: A low-carb protein bar lists 23 g total carbs, 9 g fiber, and 8 g erythritol. Your calculation: 23 − 9 − 8 = 6 g net carbs. But if that same bar used maltitol instead of erythritol, you'd only subtract half: 23 − 9 − 4 = 10 g net carbs. That's a meaningful difference for anyone tracking macros closely.
The sugar alcohol factor: not all sweeteners are equal
Sugar alcohols are a family of sweeteners commonly found in "sugar-free" and "low-carb" products — protein bars, candy, baked goods, gum, and supplements. They taste sweet but are absorbed differently than regular sugar, which is why they're subtracted in net carb calculations. However, the degree of absorption varies dramatically.
Erythritol: the gold standard for keto
Erythritol has a glycemic index of 0 and an insulin index of just 2. Around 90% of it is absorbed in the small intestine and excreted unchanged in urine — it never enters your metabolic pathways or raises blood sugar. This is why most net carb calculators and keto guides recommend subtracting erythritol completely from your total carb count.
Maltitol: the one to watch out for
Maltitol is the sugar alcohol most likely to undermine your low-carb goals. It has a glycemic index of 35 (compared to 65 for table sugar) and an insulin index of 27. About 40–60% of maltitol is absorbed and converted to glucose. For net carb purposes, you should only subtract about half of the maltitol grams from total carbs. Many "sugar-free" chocolates and candies rely on maltitol, which is why they can spike blood sugar more than expected.
Quick reference for common sugar alcohols
Erythritol — GI: 0 → subtract 100%
Xylitol — GI: 13 → subtract 50%
Sorbitol — GI: 9 → subtract 50%
Isomalt — GI: 9 → subtract 50%
Maltitol — GI: 35 → subtract 50%
Allulose — GI: 0 → subtract 100% (technically a rare sugar, not a sugar alcohol, but treated similarly)
Tip: Always check which sugar alcohol a product uses before assuming the "net carb" count on the front of the package is accurate. Some manufacturers subtract 100% of all sugar alcohols, including maltitol, which overstates the low-carb benefit.
Net carbs vs. total carbs: which should you track?
This is one of the most debated questions in the low-carb community, and the right answer depends on your goals and metabolic health.
Track net carbs if you're following a standard ketogenic or low-carb diet and you're metabolically healthy. Net carbs give you a more accurate picture of how food affects your blood sugar, and they allow you to eat more fiber-rich vegetables and nuts without worrying about exceeding your carb limit. Most people aiming for ketosis target 20–50 grams of net carbs per day.
Track total carbs if you have type 1 or type 2 diabetes, insulin resistance, or you find that counting net carbs doesn't reliably keep you in ketosis. The American Diabetes Association recommends focusing on total carbs because the exact impact of fiber and sugar alcohols can vary from person to person. If you choose this approach, aim for 20–30 grams of total carbs per day for strict keto.
For most people starting out, net carbs offer a more practical and sustainable framework because they allow a wider variety of nutrient-dense foods — leafy greens, cruciferous vegetables, berries, nuts, and seeds — that would be severely limited if you counted every gram of fiber against your daily budget. The key is to monitor your results. If your blood sugar or ketone readings don't match your expectations, switching to total carb tracking can help you identify the issue.
How many net carbs per day for keto and low-carb diets?
The amount of net carbs that keeps you in ketosis varies by individual, but research and clinical practice have established reliable ranges:
Strict ketogenic diet: 20–25 g net carbs per day. This level virtually guarantees nutritional ketosis (blood ketones of 0.5–3.0 mmol/L) for most people, regardless of activity level or metabolic history.
Standard keto: 25–50 g net carbs per day. Active individuals with higher muscle mass and good insulin sensitivity can often maintain ketosis in this range.
Low-carb (non-keto): 50–100 g net carbs per day. You won't stay in consistent ketosis, but this range supports blood sugar management, weight loss, and reduced cravings for many people.
Moderate low-carb: 100–150 g net carbs per day. This is closer to a general healthy eating pattern and can work well for maintenance after reaching your goals.
Your optimal range depends on factors like body weight, body fat percentage, activity level, metabolic health, and individual insulin sensitivity. Someone who runs 30 miles a week will tolerate more carbs than someone with a sedentary lifestyle and prediabetes. Start at the lower end, monitor your results for two to three weeks, and adjust upward if needed.
Common net carb counting mistakes
Even experienced low-carb dieters make these errors. Avoiding them can make the difference between steady progress and frustrating plateaus.
Mistake 1: trusting "net carb" labels on packaging
Food manufacturers are not regulated in how they calculate or display net carbs. Some subtract 100% of all sugar alcohols — including maltitol — from the total. Others use proprietary fiber blends like isomalto-oligosaccharides (IMOs), which were once classified as fiber but are now known to be partially digestible. Always do your own math using the Nutrition Facts panel rather than relying on the front-of-package marketing.
Mistake 2: forgetting that carbs add up from "zero-carb" foods
Many foods labeled "zero carbs" actually contain trace amounts — spices, heavy cream, eggs, cheese, and certain condiments all contribute small amounts of carbohydrate. If you consume these throughout the day without tracking, you can easily add 5–10 unaccounted grams of net carbs.
Mistake 3: not distinguishing between fiber types
Soluble and insoluble fiber behave differently. While both are subtracted in the standard net carb formula, some soluble fibers (like those in processed foods) can be partially fermented into short-chain fatty acids that do provide calories. For whole foods this rarely matters, but for heavily processed "high-fiber" bars and shakes, the net carb count may be slightly higher than calculated.
Mistake 4: confusing sugar and sugar alcohol on the label
Sugars and sugar alcohols are listed separately on nutrition labels, but people sometimes confuse them. Sugars are fully digestible carbohydrates that count entirely toward net carbs. Sugar alcohols are listed on their own line and are the only ones you can partially or fully subtract. Mixing these up can lead to serious miscalculations.
Mistake 5: ignoring portion sizes
The net carb count on a label is per serving, not per package. A bag of low-carb tortillas might list 4 g net carbs per tortilla, but if you eat three, that's 12 g — which could be more than half your daily budget on strict keto. Always multiply by the number of servings you actually consume.
Net carb calculator: practical examples
Let's walk through a few real-world calculations to build your confidence.
Example 1: a keto-friendly lunch salad
Mixed greens (2 cups): 2 g total carbs − 1.5 g fiber = 0.5 g net carbs
Grilled chicken breast (150 g): 0 g net carbs
Half an avocado: 8.5 g total carbs − 6.7 g fiber = 1.8 g net carbs
Cherry tomatoes (6): 4 g total carbs − 1 g fiber = 3 g net carbs
Olive oil dressing (2 tbsp): 0 g net carbs
Meal total: approximately 5.3 g net carbs
Example 2: a "sugar-free" chocolate bar
Total carbs: 28 g
Fiber: 3 g
Sugar alcohols: 18 g (maltitol)
Calculation: 28 − 3 − (18 × 0.5) = 28 − 3 − 9 = 16 g net carbs
Notice how this "sugar-free" bar actually delivers 16 g of net carbs — far more than the 7 g a manufacturer might claim by subtracting all the maltitol. This is exactly why doing your own calculation matters.
Example 3: a keto protein bar with erythritol
Total carbs: 22 g
Fiber: 14 g
Sugar alcohols: 5 g (erythritol)
Calculation: 22 − 14 − 5 = 3 g net carbs
Because erythritol has a glycemic index of 0, you can safely subtract it in full. This bar is genuinely low in net carbs.
How AI-powered nutrition tracking eliminates the guesswork
Calculating net carbs by hand works fine for simple meals, but it becomes tedious and error-prone when you're tracking three to five meals and snacks every day, cooking multi-ingredient recipes, and trying to hit precise macro targets. This is where technology makes a meaningful difference.
MealFrame, an AI-powered meal planning and nutrition tracking app, handles net carb calculations automatically. Instead of manually looking up fiber content, identifying which sugar alcohol a product uses, and doing the subtraction yourself, you can simply scan any food item with your phone camera. MealFrame instantly provides the full nutritional breakdown — including accurate net carbs — using a comprehensive food database that accounts for sugar alcohol type and fiber classification.
Beyond scanning, MealFrame's AI-generated meal plans can be tailored specifically to a net carb target. If you're aiming for 25 g of net carbs per day on strict keto, MealFrame builds an entire week of meals that stay within that limit — while still hitting your protein, fat, and micronutrient goals. Every recipe in the plan comes with a detailed net carb count, so you're never left guessing.
For people who meal prep, MealFrame also generates smart grocery lists based on your plan, organized by store aisle and calculated for your household size. That means no overbuying ingredients for recipes you'll never make and no scrambling at 6 PM to figure out what's for dinner.
The biggest advantage of using an AI-powered tool for net carb tracking is consistency. Manual calculations leave room for rounding errors, forgotten ingredients, and the kind of small mistakes that compound over a week. MealFrame tracks everything in real time, shows you a running daily total, and flags when you're approaching your carb limit — so you can make adjustments before you overshoot.
What about international nutrition labels?
If you live outside the United States, your net carb calculation may already be done for you — partially. In the European Union, United Kingdom, Australia, and most other countries, nutrition labels list "carbohydrates" as net carbs by default, with fiber shown separately. This means the carbohydrate number on a European label already has fiber subtracted. You would not subtract fiber again.
In the United States and Canada, the "Total Carbohydrate" figure includes fiber, so you must subtract it yourself.
Quick rule:
US/Canada label: Net carbs = total carbs − fiber − adjusted sugar alcohols
EU/UK/AU label: Net carbs = listed carbohydrates − adjusted sugar alcohols (fiber is already excluded)
This distinction trips up many people who follow US-based keto resources while living in Europe, or who buy imported products with unfamiliar label formats. Always check which labeling standard the product uses before calculating.
Make net carb counting effortless
Counting net carbs doesn't have to involve a calculator, a spreadsheet, and a reference chart for sugar alcohols. The formula itself is simple — total carbs minus fiber, minus adjusted sugar alcohols — but applying it consistently across every meal, every day, is where most people struggle.
The key takeaways are straightforward: always do your own math rather than trusting front-of-package net carb claims, know which sugar alcohol your food contains before subtracting it, and pick a tracking method — whether net or total carbs — that aligns with your health goals and gives you reliable results.
If you're tired of flipping packages, Googling fiber counts, and second-guessing your daily totals, MealFrame builds your entire week's meal plan in seconds — with accurate net carb counts for every recipe, automatic macro tracking, and AI-powered food scanning that eliminates the manual math. It's the simplest way to stay on target with your low-carb or keto goals without spending your evenings doing arithmetic.