In a GTIN-13, the last digit is a check digit. It is calculated from the preceding digits using alternating weights. A scanner can perform the same calculation and reject a number when the outcome does not match.
The sum behind the stripes
For a GTIN-13, the first twelve digits are alternately multiplied by three and by one, counting from the right. The products are added up. The check digit is the number that brings the sum to the next multiple of ten. If the weighted sum ends in 7, for example, the check digit is 3.
Anyone who mistypes a single digit therefore often ends up with an invalid combination. Many swaps of adjacent digits are also detected, although no simple check digit is flawless.
What the digit does prove
A valid check digit proves that the digits fit together according to the GS1 calculation rule. It helps to flag reading and entry errors and prevents a random sequence from being immediately accepted as a valid product number.
That is especially valuable because barcodes are processed quickly and automatically. A small error without a check could open the price, stock or product record of a different item.
What the digit does not know
The calculation does not check ingredients, authenticity, shelf life or owner. A forged barcode can be mathematically correct. An existing number can be linked to outdated digital information. And a valid number on the wrong package still calculates as valid.
The check digit is therefore a grammatical check, not a truth test. It says that the key is well formed, not that everything behind the key is correct.
Try it with a pack from the cupboard
Take the first twelve digits, work from right to left and multiply alternately by three and by one. Add everything up and determine how much is needed to reach a multiple of ten. That should be the thirteenth digit.
After that exercise, a barcode looks different: not like random stripes, but like a compact identification with one digit that exists solely to keep an eye on the rest.
Sources
- GS1: creating a GTIN and the check digit
- GS1: how GTINs and barcodes work
- GS1: check digit calculator and explanation

See who it suits at once
After one scan, Emily immediately sees who the product is suitable for.
