Guide

What the numbers in a UPC code mean

By · Updated · 5 min read

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 lookup

The three parts of a UPC

UPC-A · 0 49000 02890 4

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:

  1. Add the digits in odd positions (1st, 3rd, 5th and so on): 0 + 9 + 0 + 0 + 8 + 0 = 17.
  2. Multiply by 3: 17 × 3 = 51.
  3. Add the digits in even positions: 4 + 0 + 0 + 2 + 9 = 15. Total: 51 + 15 = 66.
  4. 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 digitMeaning
0, 1, 6, 7, 8, 9Ordinary products
2Items priced by weight in store, such as meat, cheese and deli goods
3Drugs and health products (the number carries the National Drug Code)
4Reserved for a retailer’s own use, such as loyalty cards
5Coupons 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

Spotted a mistake? Email [email protected].

FAQ

Quick answers

What does UPC stand for?

Universal Product Code. It is the 12-digit barcode used on retail products in the United States and Canada since 1974.

Does a UPC code contain the price?

No. A standard UPC holds only an identification number, and the checkout looks that number up in the store’s database to get today’s price. The exception is a barcode starting with 2, printed in store for weighed goods, which can hold a price or weight.

Do two different products ever share a UPC?

They should not. Each size, flavor, color and pack count needs its own UPC. Duplicates happen when sellers reuse or buy second-hand numbers, which is why marketplaces now check UPCs against the GS1 database.