EAN-13 check digit calculator
Type the first 12 digits to get the check digit, or all 13 to see whether a barcode number is valid. Works for UPC-A and EAN-8 too, and shows every step of the sum.
Type 12 digits for EAN-13 (or 7 for EAN-8, 11 for UPC-A) to get the check digit. Type the full 13 digits to check a barcode.
| Digit | 8 | 9 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| × weight | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 |
| = | 8 | 27 | 0 | 3 | 2 | 9 | 4 | 15 | 6 | 21 | 8 | 27 |
Sum 130. The next multiple of 10 is 130, so the check digit is 130 − 130 = 0.
How the check digit works
Take 890123456789, the first 12 digits of an EAN-13. Starting from the rightmost digit, multiply by 3, then 1, then 3, and so on: 9×3, 8×1, 7×3, 6×1, 5×3, 4×1, 3×3, 2×1, 1×3, 0×1, 9×3, 8×1. The products add up to 130. That is already a multiple of 10, so the check digit is 0 and the full barcode is 8901234567890.
Because every digit takes part in the sum, a single wrong digit or two swapped neighbouring digits almost always gives a different check digit, so the mistake is caught at the counter instead of billing the wrong item.
Need the barcode itself? Make it with the free barcode generator, which adds the check digit for you. To understand the difference between EAN-13, UPC-A and Code 128, read EAN-13 vs Code 128.
Questions
What is the check digit in a barcode?
How is the EAN-13 check digit calculated?
Why does my scanner refuse a barcode I printed?
Does a correct check digit mean the barcode is registered?
Try it at your counter tonight.
2 days with everything, free. Bring your items from Excel, connect the printer and scanner you already have, and start billing the same day.
Cartix Prime Offline is ₹8,999 once, with the first year of updates. Online plans from ₹599 a year. See prices