How to count carbs with a food database

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

  1. Decide total carbs or net carbs. Use the method your care team recommends and keep it the same each day.
  2. Identify the food. Be specific: cooked vs raw, cut, and preparation all change the numbers.
  3. Weigh the portion in grams. A kitchen scale is more accurate than cups or “eyeballing.”
  4. Look up values per 100 g. Note both carbohydrate and dietary fiber.
  5. Scale to your portion. Multiply each value by your grams ÷ 100.
  6. Add up the meal. Sum each food’s carbs, then subtract fiber if you are counting net carbs.
  7. 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:

StepCalculationResult
Carbohydrate20 g × (150 ÷ 100)30 g
Fiber5 g × (150 ÷ 100)7.5 g
Net carbs30 g − 7.5 g22.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

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

Sources