How to use the barcode scanner in Cal.AI
Packaged food is where a barcode beats a photo. Here is how to scan, set the serving and handle missing products.
Where is the barcode scanner in Cal.AI?
Barcode is one of the logging methods in Cal.AI, alongside Scan Food (photo), Library, search and manual entry. When you add a food, choose Barcode instead of taking a photo. The camera opens, you point it at the barcode on the package, and the product's label values appear with a serving control so you can set how much you ate.
Barcode scanning is included in the free version, so it does not count against your free daily AI photo scans.
How to scan a barcode: step by step
- Open Cal.AI and start adding a food, then choose Barcode.
- Hold the package flat and fill the frame with the barcode. Keep the phone steady for a second.
- Confirm the product that appears. Check the name and the serving size on the package against what the app shows.
- Use the − / + serving control to set how many servings you ate. One serving is the amount printed on the label, not the whole package.
- Save the entry. It appears in your diary and in recently logged items, so repeat products take one tap next time.
Scanning tips
- Light matters. Glare on a glossy wrapper is the most common reason a scan fails. Tilt the package slightly or move away from the lamp.
- Flatten curved labels. On a bottle or can, turn it so the barcode faces the camera squarely.
- Try the other barcode. Multipacks often have a barcode on the outer box and another on each inner item. Scan the one for what you actually ate.
- Check the serving size. Labels list calories per serving, and a serving can be as small as 30 g (1 oz). Read the serving size before you set the multiplier.
Worked example: the serving multiplier
Say you scan a bag of granola. The label gives values per 50 g (1.8 oz) serving. For this example the per-100 g values come from USDA: granola is about 489 kcal, 13.7 g protein, 53.9 g carbs and 24.3 g fat per 100 g.
| Amount | Servings | Calories | Protein | Carbs | Fat |
|---|---|---|---|---|---|
| 50 g (1.8 oz) | 1.0 | 245 kcal | 6.8 g | 26.9 g | 12.2 g |
| 75 g (2.6 oz) | 1.5 | 367 kcal | 10.3 g | 40.4 g | 18.2 g |
| 100 g (3.5 oz) | 2.0 | 489 kcal | 13.7 g | 53.9 g | 24.3 g |
The arithmetic: one serving is 489 × 0.5 = 245 kcal. If you poured a generous bowl of 75 g, that is 75 ÷ 50 = 1.5 servings, so 245 × 1.5 = 367 kcal. Set the serving control to 1.5 and the app does the multiplication for you.
This is why the serving multiplier is the most important control on the barcode screen. A bowl of cereal is rarely one labeled serving, and scanning without adjusting the multiplier under-counts by the difference.
What if the product is not found?
Not every product is in every database, and some regional or store-brand items have barcodes with no record behind them. You have two fallbacks, and both take under a minute.
- Search by name. Type the product or a generic equivalent, such as "rolled oats" or "Greek yogurt nonfat". A generic match is usually close enough for a single ingredient.
- Manual entry. Copy the label: serving size, calories, protein, carbs and fat. Save it once and the food is available for one-tap reuse, so you only type it the first time.
For a product you eat often, manual entry from the label is the most accurate option available, because the label is the manufacturer's own number. US labels follow the FDA Nutrition Facts format, which the agency explains in its guide to the Nutrition Facts label.
Barcode or photo: which is better?
| Situation | Best method | Why |
|---|---|---|
| Packaged snack, drink or cereal | Barcode | The label is more reliable than a visual estimate of a wrapper. |
| Cooked plate at home or a restaurant | Scan Food | There is no barcode; the photo identifies items and portions. |
| Packaged meal you plated and added to | Barcode, then scan or search the extras | Label for the base, estimate for the additions. |
| Product not in the database | Search or manual entry | Type the label once and reuse it. |
Label values are not exact either. US regulations allow a tolerance of about 20% between the declared value and the measured value for most nutrients, so a 200 kcal label can legally be a 240 kcal product. Barcode is still the better choice for packaged food, but treat every number as an estimate. For more on where estimates come from, see how accurate AI calorie counting is.
Common mistakes
- Logging one serving when you ate the whole package. Check the "servings per container" line on the label.
- Scanning the outer box of a multipack and logging it as one item.
- Photographing a wrapper with Scan Food when the barcode would give you the label values directly.
- Giving up on a product that is not found instead of typing it in once with manual entry.
- Treating label numbers as exact. Round in the right direction and keep logging consistently.
Frequently asked questions
Does barcode scanning use my free daily AI scans?
No. Barcode scanning, search, the plan and the charts are part of the free version and do not count against your free daily AI photo scans. The photo scan limit applies to Scan Food and Library analysis. Pro removes the photo limit with unlimited scans.
What if the barcode scans but the numbers look wrong?
Compare the serving size shown in the app with the serving size printed on the package. Most apparent errors are a mismatch in serving size, such as per 30 g versus per 100 g. If the values are still off, log the product with manual entry using the label numbers and save it for reuse.
Can I scan barcodes on products from outside the US?
You can scan any barcode, but whether a product is found depends on the database having a record for it. Regional and store-brand products are the most likely to be missing. When that happens, search for a generic equivalent or type the label values with manual entry.
Should I weigh packaged food or trust the serving size?
If the package holds one serving, trust the label. If you pour from a larger package, such as cereal, nuts or granola, a quick weigh is worth it because real portions are often 1.5 to 2 labeled servings. Enter the multiplier that matches the weight and the app scales the numbers.
Sources
- U.S. Food and Drug Administration. How to Understand and Use the Nutrition Facts Label. FDA
- 21 CFR §101.9(g) — nutrition labeling compliance (the 20% tolerance). eCFR
- U.S. Department of Agriculture. FoodData Central. USDA