UPC

Also known as: Universal Product Code

On this page 7

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.

ComponentLengthAssigned byPurpose
Company prefix6 to 10 digitsGS1 USIdentifies the brand owner
Item reference1 to 5 digitsBrand ownerIdentifies one specific product
Check digit1 digitCalculatedDetects keying and scanning errors
Leading digit1 digit (within prefix)GS1 rulesSignals regular, variable-weight or special use
Components of a UPC-A number

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.

FormatDigits encodedTypical useCatalog storage
UPC-A12Standard retail packaging in North AmericaStored as GTIN-12 or padded to 14 digits
UPC-E8 (zero-suppressed)Small packages such as gum or cosmeticsExpanded to the full 12-digit form
EAN-1313Retail packaging outside North AmericaStored as GTIN-13
ITF-1414Cases and outer cartonsStored as GTIN-14 for logistics units
Barcode formats related to the UPC

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.

IdentifierIssued byScopeKey difference from UPC
UPCGS1 US licenseeGlobal, North American originReference point
GTINGS1 member organizationsGlobalUmbrella family that contains the UPC as GTIN-12
EANGS1 member organizationsGlobal13 digits; a UPC equals an EAN with a leading zero
SKUThe individual sellerInternal onlyNot unique across companies
MPNThe manufacturerWithin one brandNo check digit or central registry
ASINAmazonOne marketplaceAssigned after listing, often derived from a GTIN
UPC compared with neighboring product identifiers

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.

SituationNew UPC neededReason
New size or color variantYesShoppers and stock systems must distinguish it
Change in declared net contentYesPrice and inventory differ per unit
Multipack of existing itemsYesThe bundle is a separate trade item
Minor artwork refreshNoThe item is functionally unchanged
Same item sold on a new marketplaceNoThe UPC follows the product, not the channel
When a product needs a new UPC

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.

SymptomLikely causeFix
Listing rejected as invalidResold or recycled codesLicense a prefix from GS1 US
Leading zero missingSpreadsheet number formattingStore UPCs as text, never as numbers
Offer merged with another productNumber reused for a new itemAssign a fresh code; never reallocate
Check digit failureManual entry or truncationRecalculate and validate on import
Brand mismatch warningPrefix licensed to another companyUse codes from the brand owner
Typical UPC errors in catalog data
  • 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.