What Is a UPC Code and How Do You Read One?

012345000058
Sample number 012345000058

Reading the 12 Digits of a UPC Code

Take the sample 012345000058. It is an example from GS1’s specification, not a real product.

Digits Part Meaning
First several Company prefix Licensed by GS1 to one company
Next several Item reference Chosen by that company for one product
8 Check digit Calculated from the other 11

The prefix and item reference together make 11 digits. Their split isn’t fixed, so you can’t tell it just by looking.

The Number and the Barcode

The digits under the bars are for people. The bars hold the same digits for scanners. Each digit takes seven thin slots, called modules, and the guard bars mark the start, middle and end. The home page lets you light up each digit’s bars.

UPC-A and UPC-E

UPC-A is the full 12-digit form. UPC-E is a short symbol for small packs that stands for a full number. You can switch between the two forms.

What a UPC Does Not Contain

A UPC holds no price. The store’s system looks up the price from the number. It holds no description, stock count or expiry date. It also doesn’t show where the product was made.

Where UPCs Are Used

Retailers in the United States and Canada scan UPCs at checkout, on delivery and during stock counts. Elsewhere, the 13-digit EAN is common, and the UPC and EAN comparison shows how they connect.

Getting Your Own

If you sell your own product, read how to get barcode numbers.

How a Scanner Reads the Bars

The scanner sees dark and light widths. Three guard patterns tell it where the symbol begins, where the middle is and where it ends. The two halves use opposite shading for their digits, so the scanner can tell which direction it is reading.

After decoding the digits, it repeats the check digit sum. If the result doesn’t match the 12th digit, the read is rejected and you try again.

What Happens at the Checkout

  1. The scanner sends the number to the till.
  2. The till looks it up in the store’s product records.
  3. The record supplies the name and price.
  4. The sale updates the stock count.

This is why a price can change without new packaging. Only the record changes.

UPC and 2D Codes

A UPC holds one number in a row of bars. A 2D code, such as a QR code, stores data in a grid and can carry more, such as a batch or serial number. US retail is preparing for checkouts that read 2D codes, and the UPC will keep scanning during and after that change.

Is a Number Genuine?

A passing check digit only shows the digits are consistent. It doesn’t prove who licensed the number. GS1 US offers lookup services for checking company information, and some marketplaces compare numbers with GS1 data.

UPC Basics FAQs

Does a UPC include the price?

No. The checkout system finds the price from the number.

Does it show the country?

No. It identifies the company and item, not the place of manufacture.

Who assigns the numbers?

GS1 licenses prefixes and single numbers. The company assigns item references within its prefix.

How many digits does a UPC have?

UPC-A has 12. UPC-E prints eight that stand for 12.

Can two products share a number?

They shouldn’t. Each variant needs its own number.