How-to
How to count carbs with a food database
Last updated: 23 November 2026 · General information, not medical advice
Short answer: identify the food, weigh the portion in grams, look up its carbohydrate and fiber values per 100 g, scale those values to your portion, and add up the meal. Decide up front whether you are counting total carbs or net carbs so your numbers stay consistent.
Why use a food database?
A food database gives you a repeatable starting point for foods that don’t have a barcode or label — produce, meat, grains, and home-cooked meals. The USDA FoodData Central database publishes carbohydrate and fiber values per 100 g, which makes the math straightforward once you know your portion weight.
Step by step
- Decide total carbs or net carbs. Use the method your care team recommends and keep it the same each day.
- Identify the food. Be specific: cooked vs raw, cut, and preparation all change the numbers.
- Weigh the portion in grams. A kitchen scale is more accurate than cups or “eyeballing.”
- Look up values per 100 g. Note both carbohydrate and dietary fiber.
- Scale to your portion. Multiply each value by your grams ÷ 100.
- Add up the meal. Sum each food’s carbs, then subtract fiber if you are counting net carbs.
- Review estimates. Check packaged labels and adjust AI or database estimates before saving.
Worked example
Suppose a food lists 20 g carbohydrate and 5 g fiber per 100 g, and your portion is 150 g:
| Step | Calculation | Result |
|---|---|---|
| Carbohydrate | 20 g × (150 ÷ 100) | 30 g |
| Fiber | 5 g × (150 ÷ 100) | 7.5 g |
| Net carbs | 30 g − 7.5 g | 22.5 g |
This is an illustrative calculation, not a specific product.
Grams vs cups and portions
Databases use grams because they are precise. Household measures like cups or “one medium apple” vary with size, packing, and preparation. If you don’t have a scale, use the database’s household measure as an estimate and treat it as approximate.
Accuracy tips
- Raw vs cooked: cooking removes or adds water, so 100 g raw is not 100 g cooked.
- Brand matters: packaged foods vary; the label beats a generic database entry.
- Don’t double-count: if you subtract fiber, make sure you’re not also subtracting it again elsewhere.
- Treat AI estimates as drafts: photo-based estimates are approximate and should be reviewed.
How Low Carb Hack does it
Low Carb Hack searches a USDA food database of 13,588 foods, lets you enter portions in grams, and automatically calculates calories, protein, fat, carbohydrate, fiber, and net carbs (carbohydrate minus fiber). It totals each meal and each day. Values are estimates from a food database — check labels and follow your care team’s guidance.
Related guides
- Net carbs: what they are and how to calculate them
- Net carbs vs total carbs: what’s the difference?
- Sugar alcohols and net carbs: how to count them
Sources
- USDA — FoodData Central
- CDC — Carb Counting
- American Diabetes Association — Understanding Carbs
Medical disclaimer. This article is general information, not medical advice. Low Carb Hack is a wellness and nutrition tracking tool, not a medical device, and does not diagnose, treat, cure, or prevent diabetes. Talk to your care team before changing your diet, and continue to use your meter or CGM as directed.