Home
Ph. (919) 362-5211    Fax: (919) 443-1204   
Barcode Check Digit Formulas

RVB Systems Group provides the following table of barcode check digit calculations for your use.  Please feel free to contact RVB Systems Group for any data collection needs.

Check Digit Calculator

 

Bar Code Type In HRI? Check Digit Calculation
1 - Code 39 (3-of-9 Code), AIM USS-39 Yes Modulo 43 of the sum of the data characters' numerical values as described in a Code 39 specification. The start and stop codes are not included in the calculation.
2 - MSI (modified Plessey code) No IBM Modulus 10 check digit:
  1. Multiply each digit of the original number by a weighting factor of 1 or 2 as follows: multiply the units digit by 2, the tens digit by 1, the hundreds digit by 2, the thousands digit by 1, and so forth.
  2. Sum the digits of the products from step 1. This is not the same as summing the values of the products.
  3. The check digit is described by the following equation where "sum" is the resulting value of step 2: (10 - (sum modulo 10)) modulo 10
    IBM Modulus 11 check digit:
  1. Multiply each digit of the original number by a repeating weighting factor pattern of 2, 3, 4, 5, 6, 7 as follows: multiply the units digit by 2, the tens digit by 3, the hundreds digit by 4, the thousands digit by 5, and so forth.
  2. Sum the products from step 1.
  3. The check digit depends on the bar code modifier. The check digit as the remainder is described by the following equation where "sum" is the resulting value of step 2: (sum modulo 11)

    The check digit as 11 minus the remainder is described by the following equation: (11 - (sum modulo 11)) modulo 11

    NCR Modulus 11 check digit:
  1. Multiply each digit of the original number by a repeating weighting factor pattern of 2, 3, 4, 5, 6, 7, 8, 9 as follows: multiply the units digit by 2, the tens digit by 3, the hundreds digit by 4, the thousands digit by 5, and so forth.
  2. Sum the products from step 1.
  3. The check digit depends on the bar code modifier. The check digit as the remainder is described by the following equation where "sum" is the resulting value of step 2: (sum modulo 11)

    The check digit as 11 minus the remainder is described by the following equation: (11 - (sum modulo 11)) modulo 11

3 - UPC/CGPC Version A Yes UPC/EAN check digit calculation:
  1. Multiply each digit of the original number by a weighting factor of 1 or 3 as follows: multiply the units digit by 3, the tens digit by 1, the hundreds digit by 3, the thousands digit by 1, and so forth.
  2. Sum the products from step 1.
  3. The check digit is described by the following equation where "sum" is the resulting value of step 2: (10 - (sum modulo 10)) modulo 10
5 - UPC/CGPC Version E Yes See UPC/CGPC Version A
8 - EAN 8 (includes JAN-short) Yes See UPC/CGPC Version A
9 - EAN 13 (includes JAN-standard) Yes See UPC/CGPC Version A
10 - Industrial 2-of-5 Yes See UPC/CGPC Version A
11 - Matrix 2-of-5 Yes See UPC/CGPC Version A
12 - Interleaved 2-of-5 Yes See UPC/CGPC Version A
13 - Codabar, 2-of-7, AIM USS-Codabar No Codabar check digit calculation:
  1. Sum of the data characters' numerical values as described in a Codabar specification. All data characters are used, including the start and stop characters.
  2. The check digit is described by the following equation where "sum" is the resulting value of step 1: (16 - (sum modulo 16)) modulo 16
17 - Code 128, AIM USS-128 No Code 128 check digit calculation:
  1. Going left to right starting at the start character, sum the value of the start character and the weighted values of data and special characters. The weights are 1 for the first data or special character, 2 for the second, 3 for the third, and so forth. The stop character is not included in the calculation.
  2. The check digit is modulo 103 of the resulting value of step 1.
24 - POSTNET NA The POSTNET check digit is (10 - (sum modulo 10)) modulo 10, where "sum" is the sum of the ZIP code data.
26 - RM4SCC NA The RM4SCC checksum digit is calculated using an algorithm that weights each of the 4 bars within a character in relation to its position within the character.
NA None.
27 - JPOSTAL 27
N/A


 
The Japan Postal Bar Code check digit calculation:

Convert each character in the bar code data into decimal numbers. Numeric characters are converted to decimal; each hyphen character is converted to the number 10, each alphabetic character is converted to two numbers according to the symbology definition.

For example, A becomes "11 and 0", B becomes "11 and 1",..., J becomes "11 and 9", K becomes "12 and 0", L becomes "12 and 1", ..., T becomes "12 and 9", U becomes "13 and 0", V becomes "13 and 1", ..., and Z becomes "13 and 5".

Sum the resulting decimal numbers and calculate the remainder modulo 19.

The check digit is 19 minus the remainder.

N/A None
28 - 2DMATRIX N/A None
29 - 2DMAXI N/A None
30 - 2DPDF417 N/A None
31 - APOSTAL No The Australian Post Bar Code uses a Reed Solomon error correction code based on Galois Field 64.
32 -- QR Code NA The QR Code symbology uses a Reed-Solomon Error Checking and Correcting (ECC) algorithm.
33 -- Code 93 No Both check digits (C and K) are calculated as Modulo 47 of the sum of the products of the data-character numerical values as described in the Code 93 specification and a weighting sequence. The start and stop codes are not included in the calculation.