To calculate net carbs, simply subtract grams of fiber from the carbohydrates in a food. This means that high fiber foods are often a good option when following a low carb or keto diet. Fiber is actually a type of carbohydrate that the human body is unable to digest.