Cartix Prime

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.

EAN-13 check digit0Full number: 8901234567890
Digit890123456789
× weight131313131313
=8270329415621827

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?
It is the last digit of an EAN or UPC number. It is worked out from the other digits, so a scanner can tell when a barcode was misread or a number was typed wrong.
How is the EAN-13 check digit calculated?
Starting from the right of the first 12 digits, multiply digits alternately by 3 and 1, add them up, and take the amount needed to reach the next multiple of 10. That amount, from 0 to 9, is the check digit.
Why does my scanner refuse a barcode I printed?
Often the check digit is wrong, because the number was made up by hand. Enter all 13 digits here: if the check digit is wrong, you get the right one. Print again with the corrected number.
Does a correct check digit mean the barcode is registered?
No. It only means the number is well formed. Whether it belongs to a company is decided by GS1. See GS1 barcode registration in India.

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