How do I calculate a mod10 check digit?

A check digit is used to verify the accuracy of a bar code. One of the more popular check digits is the mod10. A mod10 check digit uses the Modulus 10 algorithm to calculate the value.

Here is how a mod10 check digit is calculated:


  1. For this example, we will use a barcode containing the data 12345678912. Starting from the left side of the bar code, add together every other digit, ignoring the check digit. Add the first, third, fifth, seventh, ninth, and eleventh digits:

    1+3+5+7+9+2=27

  2. Multiply the result from step 1 by 3:

    27*3=81

  3. Add together the remaining digits. Add the second, fourth, sixth, eighth, tenth, and twelfth digits:

    2+4+6+8+1=21

  4. Add the results of steps 2 and 3:

    81+21=102

  5. Find the number which, when added to the result from step 4, will generate a number that is evenly divisible by 10:

    102 + n = 110
    n = 8


    The number 8 is the mod10 check digit for this arrangement of digits.


Back to support FAQ

E-mail This Link E-mail This Page    Printer Friendly Version Printer Friendly Version