Universal Product Code (UPC) [1]
Description
A checksum code used worldwide, in the form of a barcode, to identify products in stores.Protection
The last digit of a UPC barcode is a base-10 check digit computed modulo 10 from an alternating weighted sum of the preceding digits [2]. Detects all single-digit errors and all adjacent transpositions except those of digits differing by five [3].Notes
See Ref. [2] for a history.Cousin
- International Standard Book Number (ISBN) code— ISBN-13 and UPC numbers are GTIN-13 and GTIN-12 numbers, which share one modulo-10 check-digit rule with weights alternating between 3 and 1 [5,6][4; Sec. 16.2].
Member of code lists
Primary Hierarchy
Parents
The last digit of a UPC barcode is a base-10 check digit computed modulo 10 from an alternating weighted sum of the preceding digits [2].
The last digit of a UPC barcode is a base-10 check digit computed modulo 10 from an alternating weighted sum of the preceding digits [2].
Universal Product Code (UPC)
References
- [1]
Uniform Code Council (UCC), Uniform Product Code (U.P.C.)
- [2]
D. Savir and G. J. Laurer, “The characteristics and decodability of the Universal Product Code symbol”, IBM Systems Journal 14, 16 (1975) DOI
- [3]
J. A. Gallian, “Error detection methods”, ACM Computing Surveys 28, 504 (1996) DOI
- [4]
International ISBN Agency, ISBN Users’ Manual, 7th ed. (London, 2017) URL
- [5]
GS1 US, “What is a GTIN?” URL
- [6]
GS1, “How to calculate a check digit manually” URL
Page edit log
- Victor V. Albert (2026-11-11) — most recent
- Victor V. Albert (2026-10-13)
- Victor V. Albert (2026-06-08)
- Victor V. Albert (2025-11-17)
Cite as:
“Universal Product Code (UPC)”, The Error Correction Zoo (V. V. Albert & P. Faist, eds.), 2026. https://errorcorrectionzoo.org/c/upc, arXiv:2606.11484
Github: https://github.com/errorcorrectionzoo/eczoo_data/edit/main/codes/classical/rings/over_zq/upc.yml.