Barcode Check Digit Calculator

Enter the digits of a GS1 number without its last digit to get the check digit, or the full number to verify it. Each step is shown.

What do you want to do?

EAN-13: 12 digits · UPC-A: 11 · EAN-8: 7 · ITF-14: 13.

Check digit: 7

Full number: 5901234123457 (EAN-13)

Step by step
Position123456789101112
Digit590123412345
× weight131313131313
= product52703294329415

Sum of products: 83. Next multiple of 10: 90. 90 − 83 = 7.

How the GS1 check digit works

  1. Start from the rightmost digit (the one next to where the check digit will go).
  2. Multiply it by 3, the next one by 1, the next by 3, and so on, alternating.
  3. Add all the results together.
  4. Find the difference to the next multiple of 10. That difference (0–9) is the check digit.

When to use it

Checking a number before printing

Catch a typo before thousands of packs are printed.

Building GTIN-14 case codes

Work out the new check digit after adding an indicator digit.

Spreadsheets and systems

Verify the formula in your own system gives the same result.

Worked example: EAN-13 590123412345?

Digits from the right: 5,4,3,2,1,4,3,2,1,0,9,5. Weighted 3,1,3,1…: 15+4+9+2+3+4+9+2+3+0+27+5 = 83. The next multiple of 10 is 90, so the check digit is 7, giving 5901234123457.

Notes

  • This uses the GS1 modulo-10 method, which covers EAN, UPC, ITF-14, GTIN, GLN and SSCC.
  • ISBN-10 uses a different modulo-11 method; enter ISBN-10 on the ISBN barcode page to convert it.

Questions people ask

What does the check digit protect against?

It catches all single-digit mistakes and most swaps of two neighbouring digits.

Why is my check digit 0?

When the weighted sum is already a multiple of 10, the check digit is 0.

Last updated 11 October 2026 by the QRizeo team.