UPC, the Universal Product Code, is a 12-digit numeric identifier and its matching linear barcode that uniquely identify a trade item sold at retail, mainly in the United States and Canada. E-commerce product catalogs use the UPC as a global product key: marketplaces, comparison engines and retailers match listings, merge duplicate offers and pull product data by this number rather than by a seller’s internal code.
In GS1 terminology, a UPC-A number is a GTIN-12, one member of the Global Trade Item Number family that also includes the 13-digit EAN. The number is licensed through GS1 US, so its ownership and validity can be verified, which is why marketplaces treat it as evidence of brand identity rather than a mere label.
How a UPC number is structured
A UPC-A number consists of eleven data digits and one check digit. The data digits contain a GS1 Company Prefix that identifies the brand owner and an item reference that the owner assigns to each distinct product, so the prefix length determines how many items a company can number.
The table below shows the components of a UPC-A number and what each one controls.
| Component | Length | Assigned by | Purpose |
|---|---|---|---|
| Company prefix | 6 to 10 digits | GS1 US | Identifies the brand owner |
| Item reference | 1 to 5 digits | Brand owner | Identifies one specific product |
| Check digit | 1 digit | Calculated | Detects keying and scanning errors |
| Leading digit | 1 digit (within prefix) | GS1 rules | Signals regular, variable-weight or special use |
The check digit uses a modulo-10 algorithm. Digits in odd positions are summed and multiplied by three, digits in even positions are added, and the check digit is the amount needed to reach the next multiple of ten. For the data digits 03600029145, the weighted sum is 58, so the check digit is 2 and the full code is 036000291452. This simple calculation catches every single-digit error and most transpositions of adjacent digits.
Because the prefix and the item reference share eleven positions, a 6-digit prefix allows 100,000 item numbers, while a 10-digit prefix allows only ten. Brand owners choose prefix capacity according to the expected size of their product range and variant count.
UPC-A, UPC-E and the barcode symbol
The UPC-A symbol encodes the 12 digits in 95 modules of bars and spaces: a start guard, six left-hand digits, a center guard, six right-hand digits and an end guard. Left and right digits use different bar patterns, which lets a scanner read the symbol in either direction and decide its orientation.
The following table compares the symbol formats that a catalog manager is most likely to meet on packaging and in supplier data.
| Format | Digits encoded | Typical use | Catalog storage |
|---|---|---|---|
| UPC-A | 12 | Standard retail packaging in North America | Stored as GTIN-12 or padded to 14 digits |
| UPC-E | 8 (zero-suppressed) | Small packages such as gum or cosmetics | Expanded to the full 12-digit form |
| EAN-13 | 13 | Retail packaging outside North America | Stored as GTIN-13 |
| ITF-14 | 14 | Cases and outer cartons | Stored as GTIN-14 for logistics units |
UPC-E is not a separate number but a compressed rendering of a UPC-A code that contains enough zeros to be suppressed. A catalog must always store the expanded 12-digit value, because marketplaces and feeds reject the 8-digit form or match it to the wrong product.
How the UPC relates to GTIN, EAN, SKU and ASIN
The UPC is one identifier among several in a product record, and each serves a different owner and scope. Confusing them is a frequent source of feed errors and duplicate listings, so the distinctions below matter in daily catalog work.
| Identifier | Issued by | Scope | Key difference from UPC |
|---|---|---|---|
| UPC | GS1 US licensee | Global, North American origin | Reference point |
| GTIN | GS1 member organizations | Global | Umbrella family that contains the UPC as GTIN-12 |
| EAN | GS1 member organizations | Global | 13 digits; a UPC equals an EAN with a leading zero |
| SKU | The individual seller | Internal only | Not unique across companies |
| MPN | The manufacturer | Within one brand | No check digit or central registry |
| ASIN | Amazon | One marketplace | Assigned after listing, often derived from a GTIN |
Since the 2005 Sunrise initiative, North American point-of-sale systems have been required to accept 13-digit EAN codes, so a UPC is simply a GTIN-12 within a single global system. Many platforms therefore store every identifier in a 14-digit GTIN field, padding a UPC with two leading zeros so that all formats sort and compare consistently.
Assigning UPCs in product catalogs
Each distinct trade item needs its own UPC. Under the GS1 GTIN Management Standard, a new number is required whenever a change would make a buyer or a retailer treat the item as different, which ties UPC assignment directly to the definition of a product variant.
The decision table below summarizes common catalog situations and whether they require a new UPC.
| Situation | New UPC needed | Reason |
|---|---|---|
| New size or color variant | Yes | Shoppers and stock systems must distinguish it |
| Change in declared net content | Yes | Price and inventory differ per unit |
| Multipack of existing items | Yes | The bundle is a separate trade item |
| Minor artwork refresh | No | The item is functionally unchanged |
| Same item sold on a new marketplace | No | The UPC follows the product, not the channel |
In a product information management system, the UPC is usually a unique, validated attribute at the variant level, while the parent product carries shared content. Good practice is to validate the check digit on import, reject duplicates and keep a record of the prefix that issued each number.
Common UPC problems and how to avoid them
Most UPC problems in E-commerce come from numbers that do not belong to the seller or from data handling that damages the digits. Marketplaces increasingly compare each UPC against the GS1 registry of licensed prefixes, so these errors now cause listing suppression rather than silent mismatches.
| Symptom | Likely cause | Fix |
|---|---|---|
| Listing rejected as invalid | Resold or recycled codes | License a prefix from GS1 US |
| Leading zero missing | Spreadsheet number formatting | Store UPCs as text, never as numbers |
| Offer merged with another product | Number reused for a new item | Assign a fresh code; never reallocate |
| Check digit failure | Manual entry or truncation | Recalculate and validate on import |
| Brand mismatch warning | Prefix licensed to another company | Use codes from the brand owner |
- Never buy cheap UPC bundles from unofficial resellers; the prefix stays registered to its original licensee.
- Keep the prefix license active, because some platforms check current membership status.
- Do not invent numbers that merely pass the check digit test; validity and ownership are different questions.
The barcode itself is also evolving. The GS1 Sunrise 2027 program encourages retailers to read 2D codes carrying GS1 Digital Link, which embed the same GTIN together with batch, expiry or web data, so the UPC number remains while its printed carrier gradually changes.
In plain words
A UPC is the number under the barcode on almost every product in an American store. It works like a passport number for a product: it tells any shop, warehouse or website exactly which item it is, down to the size and color.
The first part of the number shows which company made the product, and the company chooses the rest for each item. The last digit is a small math check that catches typing mistakes. Online stores use the number to recognize that two sellers offer the same thing, so the key point is to use your own licensed numbers and never borrowed ones.
A real-world example
A small kitchenware brand prepares to sell 24 items on two large marketplaces and its own online store. Its catalog contains six knife models, each in four handle colors, so the team licenses a GS1 Company Prefix with capacity for 100 items to leave room for future variants.
The catalog manager assigns one UPC to each of the 24 variants in the PIM system, stores the codes as text, and lets the import rule validate every check digit. The feeds send the numbers in the GTIN attribute, and the marketplaces match them to the GS1 registry without warnings.
Six months later the brand adds a three-knife gift set. Instead of reusing a discontinued code, the manager assigns a new UPC to the bundle. As a result, all listings stay live, reviews remain attached to the correct variants, and the brand avoids the suppressed offers that a competitor suffered after buying resold codes.