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.

By the Cal.AI Team · Published · 4 min read

Short answer The Cal.AI barcode scanner is one of the logging methods next to Scan Food. Point the camera at the barcode on packaged food, confirm the product, then set how many servings you ate with the serving control. If the product is not found, search by name or type the label values in with manual entry.

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

  1. Open Cal.AI and start adding a food, then choose Barcode.
  2. Hold the package flat and fill the frame with the barcode. Keep the phone steady for a second.
  3. Confirm the product that appears. Check the name and the serving size on the package against what the app shows.
  4. Use the − / + serving control to set how many servings you ate. One serving is the amount printed on the label, not the whole package.
  5. Save the entry. It appears in your diary and in recently logged items, so repeat products take one tap next time.

Scanning tips

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.

AmountServingsCaloriesProteinCarbsFat
50 g (1.8 oz)1.0245 kcal6.8 g26.9 g12.2 g
75 g (2.6 oz)1.5367 kcal10.3 g40.4 g18.2 g
100 g (3.5 oz)2.0489 kcal13.7 g53.9 g24.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.

  1. 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.
  2. 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?

SituationBest methodWhy
Packaged snack, drink or cerealBarcodeThe label is more reliable than a visual estimate of a wrapper.
Cooked plate at home or a restaurantScan FoodThere is no barcode; the photo identifies items and portions.
Packaged meal you plated and added toBarcode, then scan or search the extrasLabel for the base, estimate for the additions.
Product not in the databaseSearch or manual entryType 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

Scan a barcode in Cal.AI Cal.AI is free on iPhone, Apple Watch and Android. Snap a photo, scan a barcode or search any food, then fix anything the AI gets wrong.
Download on the App Store Get it on Google Play

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

Related articles

Cal.AI TeamWe build Cal.AI, an AI calorie counter for iPhone, Apple Watch and Android. Every number in this article links to its source; see how we research and fact-check. This is general nutrition-tracking guidance, not medical advice.