Skip to content
FiftyCalc Free calculators for all 50 states

GTIN Check Digit Calculator

Test cases replayed : 4 of 4 match · Methodology · No outside source listed

Enter the barcode number without its last digit: 7 digits for GTIN-8, 11 for UPC-A, 12 for EAN-13 or 13 for GTIN-14.

Result

Sample figures

Check digit—

Weighted sum (×3, ×1 from the right) —

  • Full number with the check digit (leading zeros not shown)—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

GTIN Check Digit Calculator

Number without the check digit (up to 13 digits): enter a number from 0 to 9,999,999,999,999. Prefilled example: 400,638,133,393.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Number without the check digit (up to 13 digits): enter a number from 0 to 9,999,999,999,999.
  2. Read the result: Check digit; the panel also shows Weighted sum (×3, ×1 from the right) and Full number with the check digit (leading zeros not shown).

How this calculator works

GS1 modulo 10 check digit: starting from the rightmost digit of the number without its check digit, multiply the digits alternately by 3 and 1, add the results, and take the amount needed to reach the next multiple of 10 (0 if the sum is already a multiple of 10). The same rule serves GTIN-8, GTIN-12 (UPC-A), GTIN-13 (EAN-13) and GTIN-14, as set out in the GS1 General Specifications.

Leading zeros do not change the check digit, but they are part of the printed code: a UPC that starts with 0 keeps that 0 on the package even though it is not shown here.

Worked example

Number without the check digit (up to 13 digits)400638133393
Check digit1
Full number with the check digit (leading zeros not shown)4006381333931

Frequently asked questions

What is the check digit of 400638133393?

1, so the full EAN-13 is 4006381333931.

What does a check digit do?

It lets a scanner detect most single-digit errors and swaps of adjacent digits: if the digit does not match, the read is rejected.

Related calculators