GTIN check digit calculator

Checked against the sources on this page on

The last digit of a GTIN is calculated from the digits before it. Type a full number to check it, or leave off the last digit of a GTIN-8 or GTIN-12 to work it out.

Check digit
Turn on JavaScript to use this tool.
Format
Prefix

A correct check digit shows that the number is well formed, not that anyone owns it or that it was assigned to this product. The bars are a preview, not artwork for printing. Your number stays in your browser.

How the calculation works

  1. Start from the digit next to the check digit and move left. Multiply the digits by 3, 1, 3, 1 and so on.
  2. Add the results together.
  3. Subtract the sum from the nearest equal or higher multiple of ten. The result is the check digit.

The same method applies to GTIN-8, GTIN-12, GTIN-13 and GTIN-14, as well as to other GS1 keys such as the SSCC.

Worked example

This is the GTIN-13 example GS1 uses, 629104150021 without its check digit.

Digit629104150021
Multiply by131313131313
Result66930121150023

The results add up to 57. The nearest equal or higher multiple of ten is 60, and 60 − 57 = 3. The full number is 6291041500213.

What a correct check digit proves

Only that the digits are consistent with each other. It does not show that the number was assigned, who it belongs to or which product it identifies. For that, GS1 offers a lookup called Verified by GS1.