BarcodePal

Check Digit Calculator

Find or verify the last digit of any EAN, UPC, GTIN, ITF-14 or SSCC number.

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

  1. Type your number without the check digit to calculate it, or the full number to verify it.
  2. The calculator detects the type from the length.
  3. Click "Make barcode" to create the barcode for the full number.

Key facts

MethodGS1 modulo 10, weights 3-1-3-1… from the right
EAN-8 / GTIN-87 + 1 digits
UPC-A / GTIN-1211 + 1 digits
EAN-13 / GTIN-13 / ISBN-1312 + 1 digits
ITF-14 / GTIN-1413 + 1 digits
SSCC17 + 1 digits

Worked example (EAN-13)

Number without check digit: 590123412345. From the right, multiply by 3, 1, 3, 1…

Digit590123412345
Weight131313131313
Product52703294329415

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

Updated: