EAN labels from your product list: alunovo.app prints EAN-13, Code 128 and QR codes straight from Excel – on any label printer.
See the live demoHow the check digit is calculated
All GTIN numbers – EAN-8, UPC-A (GTIN-12), EAN-13, GTIN-14 and the 18-digit SSCC – use the same method (modulo 10):
- Apply weights: from right to left, each digit is multiplied alternately by 3 and by 1. The rightmost digit (before the check digit) always gets the 3.
- Add up: all products are summed.
- Round up to the next ten: the check digit is the amount missing to reach the next number divisible by 10. If the sum is already divisible by 10, the check digit is 0.
Example EAN-13: for 400638133393 the weighted sum is 89. 1 is missing to reach 90 – the complete EAN is 4006381333931.
Calculating the check digit in Excel
If the 12-digit number is in cell A2, this formula calculates the check digit of an EAN-13:
=MOD(10-MOD(SUMPRODUCT(MID(A2,{1,2,3,4,5,6,7,8,9,10,11,12},1)*{1,3,1,3,1,3,1,3,1,3,1,3}),10),10)
Use =A2&B2 to join number and check digit again. Important: format the column as Text, otherwise Excel removes leading zeros or shows long numbers as "4.00638E+12".
How many digits does each number have?
| Number | Digits | Used for |
|---|---|---|
| EAN-8 | 8 | small packages |
| UPC-A (GTIN-12) | 12 | retail in the USA and Canada |
| EAN-13 (GTIN-13) | 13 | standard retail product number |
| GTIN-14 | 14 | outer cartons and trade units, often as an ITF-14 barcode |
| SSCC | 18 | pallets and shipping units in logistics |
Frequently asked questions
Why does an EAN have a check digit?
So scanners and till systems can detect read and typing errors. If one digit is misread, the check digit no longer matches and the number is rejected.
Does a correct check digit make the EAN valid for retail?
No. The check digit only shows that the number is built correctly. Whether it belongs to your company is determined by GS1's assignment.
I enter 12 digits – is that UPC or EAN-13?
Both are possible: a complete UPC-A has 12 digits, and so does an EAN-13 without its check digit. That's why the calculator shows both readings.
Can I turn the result straight into a barcode?
Yes. Click "Create as barcode" next to the result – the barcode generator opens with the finished number.
