It can detect
Many single-digit changes and some transpositions, depending on the algorithm and the positions involved.
A check digit is calculated from the other characters in an identifier. It helps detect some typing, transmission, or decoding errors, but it does not identify who assigned the number or whether the associated item is genuine.
A receiving system repeats the format’s calculation and compares the expected check digit with the supplied one. A mismatch means the number is mathematically inconsistent for that algorithm. A match means only that the characters satisfy the calculation.
Many single-digit changes and some transpositions, depending on the algorithm and the positions involved.
Every possible error, copied valid numbers, fabricated identifiers with recalculated digits, or incorrect real-world associations.
The shared validation module uses GS1 Mod 10 for GTIN-8, GTIN-12, GTIN-13, GTIN-14 and the corresponding EAN, UPC, ISBN-13, and ITF-14 number types. Starting from the right side of the payload, digits are multiplied alternately by 3 and 1. The check digit makes the total a multiple of 10.
Start with the 12-digit payload 400638133393. The table and result below are generated from the
same shared calculation used by the number checker.
| Step | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Digit | 4 | 0 | 0 | 6 | 3 | 8 | 1 | 3 | 3 | 3 | 9 | 3 |
| Weight | ×1 | ×3 | ×1 | ×3 | ×1 | ×3 | ×1 | ×3 | ×1 | ×3 | ×1 | ×3 |
| Product | 4 | 0 | 0 | 18 | 3 | 24 | 1 | 9 | 3 | 9 | 9 | 9 |
89.89 mod 10 = 9.(10 − 9) mod 10 = 1.4006381333931.
The symbol format or identifier standard determines the rule. For example, the shared validator uses ISBN-10 Mod 11
for ISBN-10 values, where the final character can be X. Code 39 may use an optional Mod 43 check
character, while Code 128 includes a symbol check character that is handled by the encoder rather than displayed as
a normal payload digit.
Do not apply the EAN or GTIN formula to an unrelated format. Select the exact type in the barcode number checker when you know it, or review all candidates when using automatic detection.
What a valid result does not prove
A correct check digit does not prove: