What Is a Universal Product Code (UPC)? How It Works in Retail

Verified and Reviewed

Last updated on June 02, 2026

Join 27,952+ Readers of the Cahoot Newsletter
Subscription Form
/* customer.io forms listener have been moved to website footer */

A Universal Product Code, or UPC, identifies a specific product and variant across retail and supply-chain systems. The standard UPC-A barcode carries a 12-digit Global Trade Item Number (GTIN-12). All units of the same product variant normally share that number; it does not uniquely identify each physical unit. Scanning the barcode connects the product to its record in a retailer’s or warehouse’s system.

UPC-A is the barcode symbol; GTIN-12 is the 12-digit product identifier encoded in it. In everyday retail language, both are often called a UPC.

For ecommerce founders, UPCs are often treated as a box to check when setting up a retail or marketplace listing. They are something more than that. UPCs are a type of bar code, which uses black lines and spaces to encode product information for scanning. The UPC is the foundational data layer that allows a product to move consistently through supply chains, get counted accurately in inventory systems, and be recognized without ambiguity across every trading partner in a distribution network. The historical development of barcode designs included patterns like the bull’s eye, which contributed to the evolution of the modern UPC system. Understanding how that system works determines whether a brand can scale into retail distribution without encountering preventable data errors.

The UPC is a crucial component of modern retail, bridging the gap between manufacturers and consumers through a standardized identifier.

The Origin of the UPC

The UPC was developed in the early 1970s in response to a specific operational problem in the grocery industry. Cashiers were manually keying prices for every item at checkout, a slow and error-prone process that created checkout bottlenecks and provided no reliable mechanism for tracking what was sold. Grocery chains needed a machine-readable system that could identify products instantly and automatically update sales data.

In 1973, U.S. grocery industry leaders adopted the Universal Product Code. The Uniform Code Council (UCC) became its administrator, according to GS1’s historical timeline.

The grocery industry formed the Symbol Selection Committee to evaluate potential solutions. IBM engineer George Laurer developed the UPC-A barcode design that was ultimately selected in 1973. Extensive research and technical development were conducted to create a reliable barcode symbology, focusing on error correction, quality assurance, and adherence to industry standards to ensure accurate and efficient scanning.

The first commercial UPC scan occurred on June 26, 1974, at a Marsh supermarket in Troy, Ohio, on a 10-pack of Wrigley’s Juicy Fruit chewing gum. From that starting point in grocery, UPC adoption spread into every retail category over the following decade.

Today, GS1 maintains global product-identification standards. Its member organisations license company prefixes and, where available, individual GTINs to businesses.

The UPC barcode system was designed to automate checkout and inventory management, greatly improving the efficiency of retail commerce.

How a UPC Barcode Is Structured

A standard UPC-A barcode encodes 12 digits. Each digit serves a specific function in the identification system, and the structure is not arbitrary. Each UPC-A barcode consists of a scannable strip of black bars and white spaces—often referred to as lines—above a sequence of 12 numerical digits, with a one-to-one correspondence between the digits and the visual representation. Each UPC code includes both a machine-readable barcode and a human-readable number, allowing for efficient scanning and identification of products at the point of sale.

The company prefix identifies the business licensed to allocate product numbers. Its length varies, so a UPC should not always be split into a first digit, five manufacturer digits, and five product digits. Some prefixes are reserved for special applications; the first digit alone is not a general product-category classifier.

The item reference distinguishes products within the licensed prefix. The brand owner assigns item references according to GS1 rules. The U.P.C. Company Prefix and item reference together occupy the first 11 digits of a GTIN-12.

Product variants that need distinct identification, such as different sizes, colors, or declared net contents, require separate GTINs. Businesses that license a single GTIN directly from GS1 do not allocate their own prefix and item reference.

The final digit is the check digit. For a GTIN-12, multiply the first, third, fifth, seventh, ninth, and eleventh digits by three, add the remaining five digits, and calculate the amount needed to reach the next multiple of ten. If the sum already ends in zero, the check digit is zero. This checks numerical consistency and helps detect data-entry or scanning errors; it does not prove that a code belongs to the right product.

The bars and spaces—black lines and white gaps—of the UPC barcode visually encode these 12 digits. Each digit is represented by a pattern of two bars and two spaces of defined widths. The scannable area of every UPC-A barcode follows the pattern SLLLLLLMRRRRRRE, where S, M, and E are guard patterns, and L and R represent the left and right sections of the 12 numerical digits. A scanner passes a laser or light source across the barcode and measures the pattern of reflected and absorbed light to reconstruct the numerical sequence. Damaged items with partially obscured barcodes may fail to scan not because the number is wrong but because the physical pattern cannot be read completely by the optical system.

For example, 012345678905 has eleven data digits, 01234567890, followed by the check digit 5. The weighted sum of the first eleven digits is 85, so adding 5 brings the total to 90. This is a calculation example, not a claim that the number is licensed to a particular brand. Determining the company-prefix boundary requires the relevant GS1 allocation information.

The Importance of the Check Digit in UPCs

The check digit is the last digit of a GTIN-12. It is calculated from the preceding eleven digits and helps detect mistakes when product numbers are entered, imported, or scanned.

Before importing a product list, tools such as EAN Check’s barcode calculator can help flag incorrect number lengths and check digits across UPC, EAN, and GTIN formats. A passing check confirms numerical consistency; it does not verify GS1 registration or that the number belongs to the intended product.

A check-digit test can flag an inconsistent number before it enters a product catalog or inventory system. It does not catch every possible error: some combinations of changed digits can still pass. Physical print quality is a separate issue, so a number with a correct check digit can still produce an unreadable barcode if the label is damaged, poorly printed, or incorrectly sized.

A valid check digit is not proof of authenticity. Anyone can calculate a matching check digit, and a counterfeit item can copy a genuine product’s barcode. The calculation does not confirm GS1 licensing, brand ownership, or that the code belongs to the product in front of you.

Use Verified by GS1 to check available licensing and product information. Treat check-digit validation, registry verification, and physical barcode-quality checks as separate steps.


UPC Variants and Related Standards

UPC-A is widely used for retail products in North America. UPC-E is a compact UPC symbol, while EAN-13 is a related barcode format used internationally. The barcode format and the identifier it carries should be distinguished.

UPC-E is a compressed version of the UPC that encodes only eight printed digits rather than twelve. It is created by suppressing zeros from the standard 12-digit sequence according to a defined compression algorithm. UPC-E is used on small packaging where a full UPC-A barcode would not fit without distorting the barcode dimensions required for reliable scanning. A UPC-E can always be mathematically expanded back to its full 12-digit UPC-A equivalent.

EAN-13 carries a 13-digit GTIN. Its prefix does not identify where a product was manufactured. Systems may represent a GTIN-12 with a leading zero for compatibility with a 13-digit field, but this does not assign a new product identifier or turn it into a newly allocated GTIN-13. Retail scanning systems commonly support both UPC-A and EAN-13.

The GTIN, or Global Trade Item Number, identifies a trade item. GTINs have 8, 12, 13, or 14 digits; UPC-A encodes a GTIN-12. Retailers and marketplaces commonly require a GTIN for product listings, but accepted formats and exemptions depend on the platform, category, and product.

How UPCs Connect to Retail Systems

When a scanner reads a UPC barcode at a point of sale terminal, it captures the 12-digit number and passes it to the point of sale system. Barcode scanners read the code instantly at checkout, automatically retrieving pricing and product information. The POS system queries its product database for the record associated with that number. The database returns the product name, description, current price, and any other attributes stored against that UPC. The sale is recorded, the receipt is generated, and inventory data is updated based on the scan. Every scan of a UPC updates a business’s inventory management system in real time, allowing retailers to see exact stock levels and track products sold. UPCs are used to identify and scan individual items sold, ensuring accurate sales tracking at the point of sale.

For a standard fixed-measure retail product, the scan transmits the GTIN rather than a price. No product description. No inventory count. All of that information lives in the database that the 12-digit number points to. This architecture means that price changes require only a database update, not a change to the physical barcode on every package. It also means the same UPC can be recognized across multiple retailers simultaneously, each maintaining their own price and product data while sharing the common identifier. The UPC code is universally recognized and can work across different retailers and suppliers. UPC codes enable retailers and manufacturers to accurately track products in their inventory, facilitating better sales forecasting and inventory management.

For a product moving through a full distribution chain, the UPC is scanned at every handoff point. When a manufacturer ships to a distributor, the distributor’s receiving system scans the UPC to confirm the inbound product matches the purchase order. When the distributor ships to a retailer, the same scan happens at the retailer’s dock. When a consumer purchases the item, the register scans it. At each point, the UPC connects the physical product to whatever database is relevant at that location.

This chain of consistent identification is what makes retail distribution at scale operationally manageable. A grocery chain with 50,000 SKUs across hundreds of locations can track sales, manage reordering, and coordinate with dozens of suppliers because every product has a single consistent identifier that all systems share.

UPCs and Inventory Tracking

UPCs help inventory systems match a scanned product to the correct record. Warehouses may also use internal SKU, bin, case, pallet, or serial-number barcodes. The identifier alone does not update stock: accurate counts depend on the software and receiving, picking, and returns processes behind each scan.

A SKU (Stock Keeping Unit) is an internal identifier that a business can create for its own inventory. A UPC is a standardized product identifier that should come from the brand owner or an appropriate GS1 allocation. These are different systems: creating an internal SKU does not create a legitimate UPC. During receiving, picking, and returns processing, warehouse software maps the scanned identifier to the relevant SKU and records the stock movement. Returned inventory should become available for sale only after the required inspection and disposition steps.

This creates an auditable trail of inventory movements. When a physical count at the end of a quarter reveals fewer units than the system expected, the transaction history can be reviewed to identify where the discrepancy originated. A receiving scan that logged ten units when fourteen were actually delivered, a missing pick scan on a unit that shipped without being recorded, or a return that was processed without a scan all appear as gaps in the movement log.

For ecommerce brands, UPC consistency across systems is a prerequisite for this tracking to function correctly. If a product carries one UPC in the brand’s own inventory system and a different UPC in the 3PL’s warehouse management system, the two systems cannot reconcile against each other without manual translation at every data exchange point. Discrepancies accumulate and the inventory record drifts from reality.

Benefits of Using UPC Codes in Retail

UPC codes have transformed the retail industry by providing a standardized, efficient way to manage products and streamline business operations. One of the most significant benefits of using UPC codes is improved inventory management. With each product assigned a unique identification number, retailers can track items accurately from the moment they enter the supply chain until they are sold at the register. This level of precision helps prevent costly errors like stockouts, overstocking, or misplacement of products.

The use of UPC barcodes also speeds up the checkout process, as products can be scanned quickly and reliably, reducing wait times and improving the overall customer experience. For businesses, this means higher throughput at the point of sale and more satisfied shoppers. Additionally, UPC codes enable retailers to collect valuable data on sales trends, product performance, and customer preferences. This data can be analyzed to optimize inventory levels, plan promotions, and make informed business decisions that drive growth.

Another key advantage is the seamless integration of UPC codes across the entire supply chain. Because UPCs are recognized by suppliers, distributors, and retailers worldwide, they make it easier to coordinate shipments, verify deliveries, and manage product information across different systems. This universal compatibility reduces manual entry errors and ensures that the same information is used throughout the business, from warehouse to store shelf.

GS1 registration and consistent identifiers help trading partners verify product and company information. A UPC alone does not establish that an individual item is genuine or that its seller is authorized. Authentication and supply-chain traceability require additional controls.

Obtaining a UPC: The Right Way

For products under your own brand, obtain the appropriate GTIN allocation through GS1. GS1 US serves businesses based in the United States. When reselling an existing branded product, use its correct brand-owner-assigned identifier rather than creating a new UPC. Marketplace requirements vary, and some products qualify for GTIN exemptions.

GS1 US offers both individual GTINs and company prefixes with capacity for multiple product identifiers. Choose based on your catalog and identification needs. With a company prefix, allocate item references and check digits according to GS1 rules; a single licensed GTIN is already assigned. Distinct product variants generally need their own GTINs.

A barcode-printing service can turn a valid product number into a barcode image, but that does not make the service a GS1 licensing authority. Generating an image or calculating a check digit does not create a licensed GTIN.

Third-party resellers may offer previously allocated numbers. A number can pass its check-digit test while the GS1 license record points to a different business. Do not assume that purchasing a number from a reseller transfers the relevant GS1 license or guarantees acceptance by a retailer.

Check each retailer’s product-ID policy before sourcing identifiers. Amazon directs sellers to obtain identifiers from the brand owner or GS1 and may verify them against GS1 records. A mismatch can cause listing problems. For your own brand, direct GS1 licensing provides a clearer record of the allocation.

When producing UPC labels, accurate printing is crucial to ensure barcode readability and scanning accuracy. Label manufacturers can assist with the printing process to help maintain quality standards.

Common UPC Mistakes Ecommerce Brands Make

Reusing a UPC across product variants. Distinct variants such as different sizes, colors, or declared net contents generally need separate GTINs under GS1 rules. Sharing one identifier across products that require distinct identification can cause catalog, receiving, and inventory errors.

Using the manufacturer’s UPC on a private label product. A product sold under your own brand should have a GTIN allocated for that brand under GS1 rules. Do not reuse an unrelated manufacturer-brand identifier. If you are simply reselling the original branded product unchanged, retain its existing identifier.

Not reviewing GTIN requirements after product changes. Use the GS1 GTIN Management Standard to decide whether a change needs a new identifier. Examples include changes to declared net content, primary brand, or pack quantity, and changes of more than 20% to a physical dimension or gross weight. A cosmetic packaging redesign alone does not automatically require a new GTIN.

Purchasing resold barcodes without checking retailer requirements. Discovering mid-distribution that resold UPCs are blocked by a retailer’s verification system is an avoidable and disruptive problem. Checking the retailer’s GTIN policy before sourcing barcodes eliminates this risk.

Frequently Asked Questions

What is a Universal Product Code?

A UPC-A barcode carries a 12-digit product identifier called a GTIN-12. It identifies a product and variant, rather than one individual physical unit, so trading partners can match it to records in retail, warehouse, and ecommerce systems.

What do the digits in a UPC mean?

For a GTIN-12 allocated from a U.P.C. Company Prefix, the prefix and item reference together occupy the first eleven digits, followed by a calculated check digit. Prefix length varies, so the split is not always six company digits and five item digits. The number does not encode a product description or country of manufacture.

Why does a UPC not encode a price?

For a standard fixed-measure product, the GTIN identifies the item and the retailer looks up its price in a database. It does not encode the price, inventory count, or description. Prices can therefore change without replacing the product’s barcode. Special restricted-circulation retail barcodes, such as those used for variable-weight goods, can include price or weight information.

Do I need a UPC to sell on Amazon or other marketplaces?

Many marketplace listings require a GTIN, often a UPC or EAN. Requirements depend on the platform, category, brand, and product; eligible products may qualify for an exemption. For existing branded goods, use the product’s correct identifier rather than buying a different code. Check the marketplace’s current product-ID policy before listing.

What is the difference between a UPC and an EAN?

UPC-A is a barcode carrying a 12-digit GTIN and is common in North America. EAN-13 carries a 13-digit GTIN and is widely used internationally. A GTIN-12 can be represented with a leading zero in a 13-digit field without changing the product it identifies. Padding the number does not assign a new GTIN, and the prefix does not identify the country of manufacture.

How do I get a legitimate UPC for my product?

For your own brand, license a single GTIN or an appropriate company prefix directly from GS1 US, or your local GS1 member organisation. With a prefix, assign product identifiers according to GS1 rules. If you resell another brand’s product unchanged, use the existing brand-owner-assigned identifier. A barcode generator creates the symbol; it does not license the number.

What happens if I use the wrong UPC for a product?

Using an incorrect or inconsistent UPC creates errors throughout the distribution chain. Retailers may reject inbound shipments where the scanned UPC does not match the purchase order. Inventory counts become inaccurate when the same physical product is tracked under different codes in different systems. Marketplace listings may be rejected or merged with the wrong product catalog entry.

Written By:

Indy Pereira

Indy Pereira

Indy Pereira helps ecommerce brands optimize their shipping and fulfillment with Cahoot’s technology. With a background in both sales and people operations, she bridges customer needs with strategic solutions that drive growth. Indy works closely with merchants every day and brings real-world insight into what makes logistics efficient and scalable.

Cahoot P2P Returns Logo

Turn Returns Into New Revenue

Convert returns into second-chance sales and new customers, right from your store