[Jump to code hierarchy]

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

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. [1]

    Uniform Code Council (UCC), Uniform Product Code (U.P.C.)

  2. [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. [3]

    J. A. Gallian, “Error detection methods”, ACM Computing Surveys 28, 504 (1996) DOI

  4. [4]

    International ISBN Agency, ISBN Users’ Manual, 7th ed. (London, 2017) URL

  5. [5]

    GS1 US, “What is a GTIN?” URL

  6. [6]

    GS1, “How to calculate a check digit manually” URL

Page edit log

Your contribution is welcome!

on github.com (edit & pull request)

— see instructions

Zoo Code ID: upc

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
BibTeX:
@incollection{eczoo_upc,
title={Universal Product Code (UPC)},
booktitle={The Error Correction Zoo},
year={2026},
editor={Albert, Victor V. and Faist, Philippe},
eprint={2606.11484},
doi={10.48550/arXiv.2606.11484},
url={https://errorcorrectionzoo.org/c/upc}
}
Share via:
Twitter | Mastodon |  | E-mail
Permanent link:
https://errorcorrectionzoo.org/c/upc

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.