To calculate a check digit, type the number without its last digit, for example 12 digits for an EAN-13, and the calculator shows the check digit instantly. Type the full number to verify it. EAN, UPC, GTIN-14 and SSCC all use the same GS1 modulo 10 method with alternating weights of 3 and 1.
How to use it
- Type your number without the check digit to calculate it, or the full number to verify it.
- The calculator detects the type from the length.
- Click "Make barcode" to create the barcode for the full number.
Key facts
| Method | GS1 modulo 10, weights 3-1-3-1… from the right |
|---|---|
| EAN-8 / GTIN-8 | 7 + 1 digits |
| UPC-A / GTIN-12 | 11 + 1 digits |
| EAN-13 / GTIN-13 / ISBN-13 | 12 + 1 digits |
| ITF-14 / GTIN-14 | 13 + 1 digits |
| SSCC | 17 + 1 digits |
Worked example (EAN-13)
Number without check digit: 590123412345. From the right, multiply by 3, 1, 3, 1…
| Digit | 5 | 9 | 0 | 1 | 2 | 3 | 4 | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Weight | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 |
| Product | 5 | 27 | 0 | 3 | 2 | 9 | 4 | 3 | 2 | 9 | 4 | 15 |
Sum = 83. The next multiple of 10 is 90, so the check digit is 90 − 83 = 7, and the full EAN-13 is 5901234123457.
Questions
How is the check digit calculated?
From the right, multiply the digits alternately by 3 and 1, add the results, and take the number that brings the total up to the next multiple of 10. That number (0–9) is the check digit.
Why do barcodes have a check digit?
It lets the scanner detect a misread or a typo. If one digit is wrong, the calculation no longer matches and the scan is rejected.
Does ISBN-10 use the same method?
No. ISBN-10 uses modulo 11 and can end in X. Convert it to ISBN-13 (978 + first 9 digits) and use this calculator for the new check digit.
Make the barcode
- EAN-13 Barcode Generator
- UPC Barcode Generator (UPC-A)
- EAN-8 Barcode Generator
- ITF-14 Barcode Generator
- ISBN Barcode Generator
Updated: