Guide
What the numbers in a UPC code mean
A UPC is 12 digits in three parts: a company prefix that identifies the brand owner, an item number that identifies the product, and one check digit that catches reading errors. It says who makes the product and which product it is. It does not hold the price, the country of manufacture or the expiry date.
Have a UPC in front of you? Enter it to validate the number and find the product.
Open the UPC lookupThe three parts of a UPC
1. Company prefix
The leading digits are licensed from GS1, the non-profit that runs the barcode numbering system. A prefix can be 6 to 10 digits long. A company that needs to number 100,000 products gets a short prefix, and a company with ten products gets a long one. This is why you cannot split every UPC at the same position.
2. Item number
The digits after the prefix are chosen by the company. Each variation needs its own number: the 12 oz can, the 20 oz bottle and the six-pack are three different UPCs. The digits have no hidden meaning. They are just the next free number on the company’s list.
3. Check digit
The twelfth digit is calculated from the first eleven. Here is the sum for 04900002890:
- Add the digits in odd positions (1st, 3rd, 5th and so on): 0 + 9 + 0 + 0 + 8 + 0 = 17.
- Multiply by 3: 17 × 3 = 51.
- Add the digits in even positions: 4 + 0 + 0 + 2 + 9 = 15. Total: 51 + 15 = 66.
- The check digit is what you add to reach the next multiple of 10: 66 + 4 = 70.
So the full code is 049000028904. Change any single digit and the sum no longer works, which is how a scanner knows it misread.
What the first digit tells you
| First digit | Meaning |
|---|---|
| 0, 1, 6, 7, 8, 9 | Ordinary products |
| 2 | Items priced by weight in store, such as meat, cheese and deli goods |
| 3 | Drugs and health products (the number carries the National Drug Code) |
| 4 | Reserved for a retailer’s own use, such as loyalty cards |
| 5 | Coupons in the past. GS1 US now holds this range in reserve |
Codes starting with 2 are the only ones that may contain a price or a weight, and they only mean something to the store that printed the label.
What a UPC does not tell you
People expect more from the number than it holds. There is no price in it: the checkout looks the number up, and the price lives in the store’s database. There is no country of manufacture either. The prefix shows where the brand registered, and production can be anywhere (see barcode country codes). Expiry dates and batch numbers need a GS1-128 or Data Matrix code, which have room for them. And a UPC says nothing about whether the product is genuine, because a barcode is trivial to copy.
UPC-E: the short version
Small packs carry a compressed barcode called UPC-E that prints 8 digits. It is the same 12-digit number with a run of zeros squeezed out, and scanners expand it back. The UPC scanner shows both forms.
Where the UPC came from
The first UPC was scanned on June 26, 1974 at a Marsh supermarket in Troy, Ohio. The item was a ten-pack of Wrigley’s Juicy Fruit gum. Europe adopted a 13-digit version, the EAN, a few years later, and today both are forms of the same global number, the GTIN. EAN vs UPC and what is a GTIN pick up from there.
Sources
- GS1 General Specifications. The standard for GTIN structure, check digits and application identifiers.
- GS1 US: What is a GTIN?
- Wikipedia: Universal Product Code. For the 1974 first scan and the number system digits.
Spotted a mistake? Email [email protected].