How to Use
- Select barcode type
Choose the barcode format: EAN-13, UPC-A, ISBN, or others.
- Enter digits
Input the barcode digits excluding the check digit.
- View results
Click Calculate to see the check digit and the complete barcode number.
What is a check digit?
A check digit is a single verification digit added to the very end of a barcode number such as EAN-13 or UPC. Because it is calculated from the leading digits using a fixed rule, even a single mistyped or misread digit will no longer match the recalculated value, so the error is caught instantly.
Why is it needed?
Barcodes are scanned thousands of times across logistics, POS, and inventory systems, and a single wrong digit being read as a different product can cause serious confusion. The check digit is a self-checking mechanism that verifies integrity from the number alone, without any extra communication, filtering out single-digit errors and most adjacent transposition errors.
- EAN-13: the 13th check digit is derived from the first 12 digits
- UPC-A: the 12th check digit is derived from the first 11 digits (a subset of EAN-13)
- GS1 SSCC, ITF-14, and others use the same Mod 10 principle
Calculation formula
The EAN-13 check digit is computed using the modulo 10 (Mod 10) method.
check digit = (10 − (weighted sum % 10)) % 10
The weighted sum is obtained by multiplying each of the first 12 digits by its positional weight and adding the results. The 1st, 3rd, 5th… positions (odd positions) are multiplied by ×1, and the 2nd, 4th, 6th… positions (even positions) by ×3.
Example (880123456789):
8×1 + 8×3 + 0×1 + 1×3 + 2×1 + 3×3 + 4×1 + 5×3 + 6×1 + 7×3 + 8×1 + 9×3 = 127
127 % 10 = 7 → 10 − 7 = 3 → complete barcode 8801234567893
If the weighted sum is a multiple of 10, then (10 − 0) % 10 = 0, so the check digit becomes 0.