Real example
Take UPC 01234567890?. The first 11 digits are the actual product code. The 12th digit is the check digit, calculated using a specific formula: multiply alternating digits by 1 and 3, add them all up, and the check digit is whatever number makes the total a multiple of 10. For 01234567890, the check digit is 5 — giving you 012345678905.
How a Check Digit is used in e-commerce
- Every UPC-A, EAN-13, and EAN-8 barcode includes a check digit as the final number.
- Amazon's GTIN validation checks the check digit — a barcode with an incorrect check digit will fail listing creation.
- Barcode printing software and label generators calculate the check digit automatically.
- The GS1 check digit calculator (gs1.org) can verify whether any barcode number is structurally valid.
Need a barcode for your product? Get one from $8 — one-time payment, instant delivery.
See packages →