A receiver scans a case and the handheld says "item not found." She types the number from the label instead. Still nothing. Somebody in purchasing copied the UPC into a spreadsheet, the leading zero fell off, and the item master has an 11-digit number that no barcode will ever match.
My position: every person who touches item data should know how the check digit works. It takes two minutes to learn, and it catches the typo before the truck shows up.
The rule
UPC-A, EAN-13, GTIN-14 and SSCC-18 all use the same check. Take every digit except the last one.
- Start from the rightmost of those digits.
- Multiply it by 3, the next by 1, the next by 3, and so on, alternating.
- Add up the results.
- The check digit is whatever takes that sum up to the next multiple of 10. If the sum is already a multiple of 10, the check digit is 0.
The worked example
Take the UPC-A 036000291452. The first 11 digits are the data: 0 3 6 0 0 0 2 9 1 4 5.
From the right:
| Digit | Weight | Result |
|---|---|---|
| 5 | 3 | 15 |
| 4 | 1 | 4 |
| 1 | 3 | 3 |
| 9 | 1 | 9 |
| 2 | 3 | 6 |
| 0 | 1 | 0 |
| 0 | 3 | 0 |
| 0 | 1 | 0 |
| 6 | 3 | 18 |
| 3 | 1 | 3 |
| 0 | 3 | 0 |
Sum: 58. The next multiple of 10 is 60. Check digit: 2. The full code is 036000291452, and the last digit matches. Valid.
Type it as 036000291453 and the check fails: the last digit should be 2, not 3. A scanner rejects it, which is the point.
Building a case GTIN-14. A case of that item needs its own GTIN-14. Put an indicator digit in front. It is 1 here, and the brand owner sets it for each packaging level. Then add a 0 and the first 11 digits of the UPC: 1 0 03600029145. That is 13 data digits. Run the same rule and the check digit is 9. The case code is 10036000291459.
An SSCC for a pallet. Same rule, 17 data digits. For the sample 1 0614141 123456789 (extension digit, company prefix, serial), the check digit is 7. On a GS1-128 label it prints as (00) 106141411234567897.
Common mistakes
Letting a spreadsheet eat the leading zero. Paste 036000291452 into a number column and it becomes 36000291452. Eleven digits, wrong forever. Format the column as text before you paste.
Treating a valid check digit as a real product. The check digit catches typos and misreads. It does not prove the number belongs to a brand. GS1's Verified by GS1 lookup does that.
Making up case GTINs. The indicator digit and the case code belong to the brand owner. If you are not the brand, ask for the case GTIN instead of inventing one.
Thinking an EAN-13 starting with 0 is a different item. 0036000291452 is the same item as UPC 036000291452. Drop the leading zero to get the 12-digit UPC.
Using UPCs that start with 2. Those are for in-store and variable weight items. They are not unique outside the store that made them.
Tomorrow morning
Export your item master's UPC column. Count how many entries have 11 digits. Each one is probably a UPC that lost its leading zero. Run a few through the free GS1 check digit calculator, fix them as text, and the "item not found" scans on those SKUs go away.
OpsBox scans UPC, EAN and GTIN-14 at receiving and picking, and prints SSCC labels for retail cartons and pallets with the check digit done for you.