Free barcodes in your browser — no sign-up, no upload.

Barcode Check Digit Calculator

The last digit of an EAN-13, EAN-8, UPC-A or ITF-14 number is not chosen — it is calculated from the other digits. Enter a stem below and see every step, or enter a full number to check it.

Enter a 7, 11, 12 or 13-digit stem to get its check digit, or a full 8-digit (EAN-8) or 14-digit (ITF-14) number to check it. A 12-digit entry is read as an EAN-13 stem — the page also tells you what it would mean as a complete UPC-A, and likewise for 13 digits as an EAN-13. Weights are 3, 1, 3, 1… starting from the digit next to the check digit.

How to calculate an EAN check digit, by hand

The method is the GS1 modulo-10 algorithm, and it is the same for EAN-13, EAN-8, UPC-A, UPC-E (on the expanded number) and ITF-14:

  1. Write the digits without the check digit.
  2. Starting from the rightmost digit and moving left, multiply the digits alternately by 3, 1, 3, 1… — the digit next to the check digit gets 3.
  3. Add all the products together.
  4. The check digit is the amount needed to bring that sum up to the next multiple of 10. If the sum already ends in 0, the check digit is 0.

Worked example: 590123412345 → 7

Digit590123412345
Weight131313131313
Product52703294329415

Sum: 5 + 27 + 0 + 3 + 2 + 9 + 4 + 3 + 2 + 9 + 4 + 15 = 83. The next multiple of 10 is 90, so the check digit is 90 − 83 = 7, and the full number is 5901234123457. A second example: 890123456789 has a weighted sum of 130, which already ends in 0, so its check digit is 0 and the full number is 8901234567890.

What the check digit does — and does not do

The check digit catches the two most common errors: every single mistyped digit, and most swaps of two adjacent digits (all except pairs that differ by 5, such as 1 and 6, whose weighted sums happen to match). It does not prove a number is genuine, allocated to you, or in any database — it is arithmetic, not authentication. That is why this site's generators flag a wrong check digit and show the corrected number with a warning, rather than drawing an invalid barcode: a wrong check digit is one of the most common reasons a printed barcode fails at a till. If you need the check digit added or corrected while you generate, use the EAN-13 generator or the main generator.

Related

Frequently asked questions

What is a barcode check digit?

The last digit of an EAN, UPC or ITF-14 number, calculated from the other digits with weights 3 and 1. It lets scanners detect mistyped or misprinted numbers.

Can I calculate the check digit for a UPC-A?

Yes — the same modulo-10 method, on the 11-digit stem. Enter the 11 digits above.

My check digit is wrong — what do I do?

Replace the last digit with the calculated one. The calculator above shows the corrected full number. Do not just delete the digit: the number needs its check digit to scan.

Does Code 128 have a check digit?

Code 128 has a built-in check character computed from the whole value, but it is part of the symbol encoding, not a digit you type. The same is true of Code 93 (two check characters). Only the EAN/UPC/ITF family has a check digit you type.