A retail product barcode is a machine-readable code that encodes a unique identification number for that specific product. At checkout, the scanner reads this number and uses it to instantly look up the product’s name, price, and other details from the store’s database. This means the barcode itself does not contain the price—it is simply a key that unlocks the information stored elsewhere.
Formula
The barcode itself has no arithmetic formula—it is a data carrier. However, the checkout process relies on a lookup operation: the scanned code is matched against a database record. The relevant “formula� for the checkout system is:
Price = DatabaseLookup(BarcodeNumber)
Where BarcodeNumber is the 12- or 13-digit numeric code embedded in the barcode, and DatabaseLookup is the store’s point-of-sale system retrieving the current price and product information. The barcode’s physical pattern encodes that number using varying widths of bars and spaces, but no price or product data is stored in the barcode itself.
Worked Example
Consider a typical UPC-A barcode with the number 036000291452. This is a 12-digit code. The first digit (0) is a number system digit, the next five digits (36000) identify the manufacturer, and the following five digits (29145) are the product code assigned by that manufacturer. The final digit (2) is a check digit used to verify the code was scanned correctly.
At checkout, the scanner reads the bars and spaces, which represent these digits. The point-of-sale system takes the full 12-digit number and searches its product database. If the store sells this item, the database returns the product name (e.g., “Kleenex Facial Tissues�) and the current price (e.g., $2.99). The cashier sees this on screen, and the sale is completed.
If the item is not in the database, the cashier must manually enter the code or look up the product, which is why you sometimes see a “Not on file� message at self-checkout.
How Barcodes Work
Barcodes are optical, machine-readable representations of data. The most common retail barcode is the UPC-A (Universal Product Code), used primarily in North America, and the EAN-13 (European Article Number), used internationally. Both encode digits using a pattern of black bars and white spaces of varying widths.
When a scanner shines a laser or LED light on the barcode, the reflected light is captured by a sensor. The black bars absorb light, and the white spaces reflect it. The sensor converts this pattern into an electrical signal, which is decoded into the numeric code. The scanner sends that code to the point-of-sale system, which then retrieves the product information from a database.
Barcodes are designed to be read quickly and accurately, even if the label is slightly damaged or the item is moving. The check digit (the last digit in UPC-A and EAN-13) is calculated from the preceding digits using a specific algorithm, allowing the scanner to detect most misreads. If the check digit doesn’t match, the scanner will not accept the code, prompting a rescan.
What the Barcode Does NOT Contain
A common misconception is that the barcode contains the price. It does not. The barcode only holds the product identifier. The price is stored in the store’s database, which is why the same product can have different prices at different stores—or even at the same store during a sale. When a price changes, the store only updates its database; the barcode remains unchanged.
Similarly, the barcode does not contain any information about the product’s ingredients, origin, or expiration date. Those details are stored in the database and can be looked up using the barcode number, but they are not encoded in the bars themselves. This is why a recalled product can still be scanned—the recall information is in the database, not the barcode.
Another misconception is that barcodes are unique to each individual item. In reality, all identical products from the same manufacturer share the same barcode. A case of 12 identical cans of soup will have the same barcode on each can. The barcode identifies the product type, not the specific unit. For tracking individual items (like serial numbers), a different technology such as RFID or 2D barcodes (QR codes) is used.
How Stores Use Barcode Data
Beyond speeding up checkout, barcodes enable sophisticated inventory management. Every time a product is scanned at the register, the store’s system decrements the inventory count for that product. This real-time data allows stores to:
- Automatically reorder stock when levels fall below a threshold
- Track sales trends by product, time, and location
- Identify which items are selling quickly and which are not
- Manage promotions and discounts by updating the database price
- Reduce theft and shrinkage by comparing scanned sales to physical inventory
Barcodes also enable loyalty programs. When you provide a loyalty card, the system links your purchase history to your account, allowing the store to send targeted coupons and analyze your buying habits. This data is valuable for marketing and merchandising decisions.
Common Problems and How to Avoid Them
While barcodes are reliable, issues can arise. Common problems include:
- Damaged or smudged barcodes – If the barcode is scratched, torn, or covered in dirt, the scanner may not read it. Cashiers can manually type the number, but this is slower.
- Poor print quality – Barcodes that are blurry, too small, or have low contrast may fail to scan. Retailers require high-quality printing to avoid this.
- Incorrect check digit – If the barcode was generated incorrectly, the check digit will not match, and the scanner will reject it. This is a manufacturing error.
- Scanner misalignment – The scanner must see the entire barcode. If the barcode is curled around a curved surface or partially covered, the scan may fail.
- Database errors – Even if the barcode scans perfectly, the store’s database may not have the product listed, or the price may be wrong. This usually requires manual override by a cashier.
To minimize problems, retailers ensure barcodes are printed on flat, clean surfaces and that scanners are regularly calibrated. For consumers, there’s little you can do except ensure the barcode is visible and not obstructed by your hand or the product’s packaging.
Barcode vs. QR Code
Retail barcodes (UPC/EAN) are 1D barcodes—they store data in one direction (horizontal). They can hold only a small amount of data (typically 12-13 digits). QR codes are 2D barcodes—they store data in both horizontal and vertical directions, allowing them to hold much more information, such as URLs, text, or contact details.
At checkout, 1D barcodes are still the standard because they are fast to scan and require minimal processing. QR codes are increasingly used for mobile payments and digital receipts, but they are not typically used for product identification at the register. However, some retailers are experimenting with QR codes on shelf labels or receipts to provide additional product information.
Frequently Asked Questions
Does the barcode determine the price?
No. The barcode is just an identifier. The price is stored in the store’s database and is retrieved when the barcode is scanned. This is why the same product can have different prices at different stores or at different times.
Why do some items not have a barcode?
Some items, such as loose produce, are sold by weight and may not have a barcode. Instead, the cashier enters a PLU (Price Look-Up) code or the item is weighed and priced at the register. Custom-made items or those sold in very small quantities may also lack barcodes.
Can a barcode be reused for a different product?
Barcodes are assigned by the manufacturer and should be unique to a specific product. However, if a company discontinues a product, the barcode may be reused for a new product after a waiting period. This is rare and can cause confusion if old inventory is still in stores.
How do I read a barcode manually?
You can read the numbers printed below the barcode. The first digit(s) indicate the number system (e.g., 0 for regular UPC, 3 for drugs, 4 for coupons). The next five digits are the manufacturer code, the following five are the product code, and the last digit is the check digit. You can verify the check digit using a standard algorithm, but for most people, simply reading the number is enough.
Why do self-checkout machines sometimes fail to scan an item?
Self-checkout scanners can fail if the barcode is damaged, the item is moving too fast, or the scanner’s sensor is dirty. Sometimes the barcode is not in the store’s database, which requires manual entry. If you encounter this, try rotating the item or placing it closer to the scanner.
Are barcodes being replaced by RFID?
RFID (Radio-Frequency Identification) tags can be read without line-of-sight and can store more data, but they are more expensive than barcodes. For most retail items, barcodes remain cost-effective and reliable. RFID is used for high-value items, inventory tracking in warehouses, and some clothing retailers, but barcodes are still the standard at checkout.
Related
Formula used
in t | Finish time | min | 50 | 0 in d | Distance | km | 10 | 0 | 100000 out pace | Average pace | min/km | t / d | 2 out speed | Average speed | km/h | d / (t / 60) | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Philips DST7060/20 7000 Series Iron: Specs & Fit
- Coal Fueled Jet Aircraft: Could It Work?675 L
- Remote Desktop on Raspberry Pi: How to Enable It
- Word Select Last Line in Paragraph?
- Google Assistant IFTTT Recipes: 7 Useful Automations
- OLED TVs in Dark Rooms: Why They Look Better and When They Don’t