How to calculate a GTIN check digit
- Enter the GTIN without its check digit: 7, 11, 12 or 13 digits.
- The tool detects GTIN-8, 12, 13 or 14 from the length and shows the check digit.
- Copy the full GTIN, or click Generate this barcode.
- For case codes, build the GTIN-14 from indicator digit + first 12 digits of the item’s GTIN-13, then calculate.
One formula for every GTIN length
Write the GTIN right-aligned in 13 positions (without the check digit). Multiply from the right by 3, 1, 3, 1 … , add, and subtract from the next multiple of 10. Shorter GTINs are just longer ones with leading zeros.
Worked example: a GTIN-14 case code
A carton of 12 holds items with GTIN-13 0012345678905. The brand gives the carton indicator digit 1 and drops the item's check digit, leaving 1001234567890. Multiplying from the right by 3 and 1:
1×3 + 0×1 + 0×3 + 1×1 + 2×3 + 3×1 + 4×3 + 5×1 + 6×3 + 7×1 + 8×3 + 9×1 + 0×3 = 88
The next multiple of 10 is 90, so the check digit is 2 and the case GTIN-14 is 10012345678902. Note the check digit differs from the item's, because the indicator digit changed the sum.
Indicator digits
In a GTIN-14, indicator digits 1–8 mark different packaging levels of the same item (for example 1 = inner pack, 2 = case, 3 = pallet), chosen by the brand owner. 0 means the GTIN-14 is just a GTIN-13 or GTIN-12 padded with zeros, and 9 is reserved for variable-measure items such as cheese sold by weight. Read more in What is a GTIN?
Frequently asked questions
How do I calculate a GTIN check digit?
Starting from the right of the number without its check digit, multiply the digits by 3, 1, 3, 1 and so on, add them, and subtract the sum from the next multiple of 10. The rule is identical for GTIN-8, GTIN-12, GTIN-13 and GTIN-14.
What is the GTIN-14 check digit for 1001234567890?
It is 2. The weighted sum is 88, and 90 − 88 = 2, so the GTIN-14 is 10012345678902.
What is the difference between GTIN-8, 12, 13 and 14?
Length and use. GTIN-12 is the UPC-A, GTIN-13 the EAN-13, GTIN-8 the EAN-8 for small packs, and GTIN-14 identifies cases and cartons, usually printed as ITF-14 or in GS1-128.
If I change the indicator digit of a GTIN-14, does the check digit change?
Usually yes. The indicator digit (the first digit) has weight 3, so changing it changes the sum. Always recalculate the check digit for each packaging level.
Can I pad a GTIN with zeros?
Yes. Leading zeros don’t change the sum, so a GTIN-12 written as 14 digits with two leading zeros keeps the same check digit. This is how databases store every GTIN as 14 digits.
Do GTINs and SSCCs use the same algorithm?
Yes. SSCC-18, GLN and GSIN use the same GS1 mod 10 rule. Pick them from the type menu on the check digit calculator.