Universal Product Code
The Universal Product Code (UPC or UPC code) is a barcode symbology that is used worldwide for tracking trade items in stores. The chosen symbology has bars (or spaces) of exactly 1, 2, 3, or 4 units wide each; each decimal digit to be encoded consists of two bars and two spaces chosen to have a total width of 7 units, in both an "even" and an "odd" parity form, which enables being scanned in either direction. Special "guard patterns" (3 or 5 units wide, not encoding a digit) are intermixed to help decoding. A UPC (technically, a UPC-A) consists of 12 digits that are uniquely assigned to each trade item. The international GS1 organisation assigns the digits used for both the UPC and the related International Article Number (EAN) barcode. UPC data structures are a component of Global Trade Item Numbers (GTINs) and follow the global GS1 specification, which is based on international standards. Some retailers, such as clothing and furniture, do not use the GS1 system, instead using...
The Universal Product Code (UPC or UPC code) is a barcode symbology that is used worldwide for tracking trade items in stores. The chosen symbology has bars (or spaces) of exactly 1, 2, 3, or 4 units wide each; each decimal digit to be encoded consists of two bars and two spaces chosen to have a total width of 7 units, in both an "even" and an "odd" parity form, which enables being scanned in either direction. Special "guard patterns" (3 or 5 units wide, not encoding a digit) are intermixed to help decoding. A UPC (technically, a UPC-A) consists of 12 digits that are uniquely assigned to each trade item. The international GS1 organisation assigns the digits used for both the UPC and the related International Article Number (EAN) barcode. UPC data structures are a component of Global Trade Item Numbers (GTINs) and follow the global GS1 specification, which is based on international standards. Some retailers, such as clothing and furniture, do not use the GS1 system, instead using other barcode symbologies or article number systems. Some retailers use the EAN/UPC barcode symbology, but do not use a GTIN for products sold only in their own stores. Research indicates that the adoption and diffusion of the UPC stimulated innovation and contributed to the growth of international retail supply chains. UPC-A barcodes can be printed at various densities to accommodate a variety of printing and scanning processes. The significant dimensional parameter is called x-dimension (width of single module element). The width of each bar (space) is determined by multiplying the x-dimension and the module width (1, 2, 3, or 4 units) of each bar (space). Since the guard patterns each include two bars, and each of the 12 digits of the UPC-A barcode consists of two bars and two spaces, all UPC-A barcodes consist of exactly (3 × 2) + (12 × 2) = 30 bars, of which 6 represent guard patterns and 24 represent numerical digits. The x-dimension for the UPC-A at the nominal size is 0.33 mm (0.013"). Nominal symbol height for UPC-A is 25.9 mm (1.02"). The bars forming the S (start), M (middle), and E (end) guard patterns, are extended downwards by 5 times x-dimension, with a resulting nominal symbol height of 27.55 mm (1.08"). This also applies to the bars of the first and last numerical digit of UPC-A barcode. UPC-A can be reduced or magnified anywhere from 80% to 200%. A quiet zone, with a width of at least 9 times the x-dimension, must be present on each side of the scannable area of the UPC-A barcode. For a GTIN-12 number encoded in a UPC-A barcode, the first and last digits of the human-readable interpretation are always placed outside the symbol in order to indicate the quiet zones that are necessary for UPC barcode scanners to work properly. Sum the odd-numbered digits (0 + 6 + 0 + 2 + 1 + 5 = 14). Multiply the result by 3 (14 × 3 = 42). Add the even-numbered digits (42 + (3 + 0 + 0 + 9 + 4) = 58). Find the result modulo 10 (58 mod 10 = 8 = M). If is not 0, subtract from 10 ( ). Thus, the check digit is 2. The check digit equation is selected to have reasonable error detection properties (see Luhn algorithm). UPC-A can detect 100% of single digit errors. A single digit error means exactly one digit is wrong. Let the difference modulo 10 of the erroneous digit and the correct digit be . The value of cannot be zero because that means the digits are the same, but can be any other value in {1, 2, 3, 4, 5, 6, 7, 8, 9}. If the error digit is in an odd position (weight 1), the left hand side of check digit equation changes by and the equivalence is no longer zero. If the error digit is in an even position (weight 3), then the left hand side changes by , but that change is also nonzero modulo 10, so the check digit equation is not satisfied. UPC-A can detect about 89% of transposition errors. Specifically, if and only if the difference between two adjacent digits is 5, the UPC-A can't detect their transposition. If 2 neighboring digits are transposed, then one of the digits will be weighted by 1, and the other digit will be weighted by 3, where is the difference between the two digits. If the digits were in their correct order, they would contribute 1a + 3b = 1a + 3(a+d) = 4a + 3d to the left hand side of the check digit equation. In the transposed order, they contribute 1b + 3a = 3a + 1(a+d) = 4a + d . to the LHS. Subtracting the two contributions gives how much they change the LHS: (4a + 3d) - (4a + d) = 2d An error will be detected as long as the modular change is nonzero; if modulo 10, then the change will not be detected. Consequently, only when the character difference will an error be undetected (when the degenerate "transposition" is not an error). Next consider how often a transposition has a distance of 5. Here is the Table of d-transpositions for UPC-A barcodes, where d \in \{0, 1, 2, \ldots, 9\}: Row Sum contains the number of d-transpositions, therefore the proportion of non-detectable transposition errors is (ignoring the transpositions where ): \frac{10}{18 + 16 + 14 + 12 + 10 + 8 + 6 + 4 + 2}=\frac{10}{90}=11.111\ldots\%. ▯
References
- ^ "GS1 BARCODE CHART" . GS1 US . 3 April 2013. Archived from the original on 7 January 2012 . Retrieved 7 July 2011 . Wikipedia revision 1378790865, retrieved 2026-11-20 · 1795129200.0
- ^ National Commission on Productivity and Work Quality (1975). Technology Applied to the Food Industry: A Preliminary Report . p. 15. Archived from the original on 19 March 2022 . Retrieved 14 January 2021 . Wikipedia revision 1378790865, retrieved 2026-11-20 · 1795129200.0
- ^ Haberman, Alan L. (2001). Twenty-Five Years Behind Bars: The Proceedings of the Twenty-Fifth Anniversary of the U.P.C. at the Smithsonian Institution, September 30, 1999 . Harvard University Wertheim Publications Committee. pp. 74, 108. ISBN 978-0-674-00657-7 . Wikipedia revision 1378790865, retrieved 2026-11-20 · 1795129200.0
- ^ Casanova, Stephanie (18 August 2020). "Murray Eden, a biomedical engineer with a love of singing, dies in Tucson at 99" . Arizona Daily Star . Archived from the original on 14 January 2021 . Retrieved 14 January 2021 . Wikipedia revision 1378790865, retrieved 2026-11-20 · 1795129200.0
- ^ Roth, Brad (17 April 2020). "Murray Eden" . Medium . Archived from the original on 21 January 2021 . Retrieved 14 January 2021 . Wikipedia revision 1378790865, retrieved 2026-11-20 · 1795129200.0
- ^ rainman_63 (13 April 2005). "Drawing UPC-A Barcodes with C#" . The Code Project . Archived from the original on 15 December 2007 . Retrieved 17 September 2025 . Wikipedia revision 1378790865, retrieved 2026-11-20 · 1795129200.0
- ^ UPC Symbol Specification Manual . Uniform Code Council . 1986. Wikipedia revision 1378790865, retrieved 2026-11-20 · 1795129200.0
- ^ "Barcodes for Pharmaceuticals and Surgical Products" . UPCs.com . 24 March 2022. Archived from the original on 28 February 2023 . Retrieved 28 February 2023 . Wikipedia revision 1378790865, retrieved 2026-11-20 · 1795129200.0
- ^ "Barcodes for Coupons" . SimplyBarcodes.com . Archived from the original on 16 February 2022 . Retrieved 16 February 2022 . Wikipedia revision 1378790865, retrieved 2026-11-20 · 1795129200.0
- ^ Basker, Emek; Simcoe, Timothy (2021). "Upstream, Downstream: Diffusion and Impacts of the Universal Product Code" . Journal of Political Economy . 129 (4): 1252– 1286. doi : 10.1086/712762 . ISSN 0022-3808 . S2CID 229505646 . Archived from the original on 17 May 2021 . Retrieved 14 March 2021 . Wikipedia revision 1378790865, retrieved 2026-11-20 · 1795129200.0
- ^ "NHRIC (National Health Related Items Code)" . HealthData . U.S. Department of Health & Human Services. Archived from the original on 8 March 2021 . Retrieved 12 October 2015 . Wikipedia revision 1378790865, retrieved 2026-11-20 · 1795129200.0
- ^ "UPC-A Symbology – UPC-E background information and UPC-A to UPC-E conversion" . barcodeisland.com . Archived from the original on 26 February 2020 . Retrieved 21 January 2013 . Wikipedia revision 1378790865, retrieved 2026-11-20 · 1795129200.0
- ^ "Our innovative history – McKinsey firsts" . mckinsey.com . 2013. Archived from the original on 12 October 2013. (see slide 10 of 18) Wikipedia revision 1378790865, retrieved 2026-11-20 · 1795129200.0
- ^ Judy Deeter. "First Item in the World Scanned by UPC" . This Local Life . Wikipedia revision 1378790865, retrieved 2026-11-20 · 1795129200.0
- ^ Alfred, Randy (26 June 2008). "June 26, 1974: By Gum! There's a New Way to Buy Gum" . Wired . Archived from the original on 25 August 2010. Wikipedia revision 1378790865, retrieved 2026-11-20 · 1795129200.0
- ^ Heller, Nathan. "Scanning Species" . Harvard Magazine . September–October 2005. Wikipedia revision 1378790865, retrieved 2026-11-20 · 1795129200.0
- ^ "The History of the Bar Code" . Smithsonian. 23 September 2015. Archived from the original on 9 February 2022 . Retrieved 12 August 2021 . Wikipedia revision 1378790865, retrieved 2026-11-20 · 1795129200.0
- ^ "Oral-History: Murray Eden - Engineering and Technology History Wiki" . ethw.org . 10 November 1999. Archived from the original on 21 January 2021 . Retrieved 4 January 2021 . Wikipedia revision 1378790865, retrieved 2026-11-20 · 1795129200.0
- ^ "UPC - The Transformation of Retail" . IBM . 7 March 2012. Archived from the original on 12 November 2021 . Retrieved 12 November 2021 . Wikipedia revision 1378790865, retrieved 2026-11-20 · 1795129200.0
- ^ Nelson, Benjamin (1997). Punched Cards to Bar Codes: A 200 Year Journey with Descriptions of over 260 Codes . Peterborough, N.H.: Helmers Publishing. ISBN 978-091126112-7 . Wikipedia revision 1378790865, retrieved 2026-11-20 · 1795129200.0
- ^ "Alumni Hall Of Fame Members" . University of Maryland Alumni Association . The University of Maryland. 2005. Archived from the original on 23 June 2007 . Retrieved 10 June 2009 . After graduating from Maryland in 1951, George Laurer joined IBM as a junior engineer and worked up the ranks to senior engineer. In 1969, he returned to the technical side of engineering and was later assigned the monumental task of designing a code and symbol for product identification for the Uniform Grocery Product Code Council. His solution—the Universal Product Code—radically changed the retail world. Since then, he has enhanced the code by adding a 13th digit. Wikipedia revision 1378790865, retrieved 2026-11-20 · 1795129200.0
- ^ a b "Bar Code 1: A Web Of Information About Bar Code UPC and EAN Bar Code Page" . Adams Communications . 20 June 2013. Archived from the original on 8 March 2021 . Retrieved 10 July 2019 . Wikipedia revision 1378790865, retrieved 2026-11-20 · 1795129200.0
Cite this
"Universal Product Code". 1791253131. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1378790865 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy