Free tool
GS1 check digit calculator
Enter a GTIN, GLN or SSCC without its last digit to get the check digit, or enter the whole number to test it. The working is shown step by step. The calculation runs entirely in your browser.
Calculate a check digit or test a number
01 The method
How a GS1 check digit is worked out.
One method covers GTIN-8, GTIN-12, GTIN-13, GTIN-14, GLN and SSCC. It catches a mistyped digit before the number reaches a database. GS 7.9.1, 1.3.4
Leave out the check digit. Work with the digits that come before it: 7 for a GTIN-8, 17 for an SSCC.
Multiply by 3 and 1, from the right. The digit next to the check digit is multiplied by 3, the one before it by 1, then 3, 1 and so on to the left.
Add the products.
Subtract the sum from the nearest multiple of ten that is equal or higher. The result is the check digit. When the sum is already a multiple of ten, the check digit is 0.
Count from the right, not from the left. The weights follow the right-hand end of the number, so the same first digit is multiplied by 3 in one type and by 1 in another. Both examples below are printed in the GS1 General Specifications.
Example 1: an SSCC-18
Seventeen digits before the check digit, so the first digit on the left is multiplied by 3.
37610425002123456
- 3 × 3 = 9
- 7 × 1 = 7
- 6 × 3 = 18
- 1 × 1 = 1
- 0 × 3 = 0
- 4 × 1 = 4
- 2 × 3 = 6
- 5 × 1 = 5
- 0 × 3 = 0
- 0 × 1 = 0
- 2 × 3 = 6
- 1 × 1 = 1
- 2 × 3 = 6
- 3 × 1 = 3
- 4 × 3 = 12
- 5 × 1 = 5
- 6 × 3 = 18
The products add up to 101. The nearest multiple of ten that is equal or higher is 110. 110 − 101 = 9.
376104250021234569
Example 2: a GLN
Twelve digits before the check digit, so the first digit on the left is multiplied by 1.
952123450001
- 9 × 1 = 9
- 5 × 3 = 15
- 2 × 1 = 2
- 1 × 3 = 3
- 2 × 1 = 2
- 3 × 3 = 9
- 4 × 1 = 4
- 5 × 3 = 15
- 0 × 1 = 0
- 0 × 3 = 0
- 0 × 1 = 0
- 1 × 3 = 3
The products add up to 62. The nearest multiple of ten that is equal or higher is 70. 70 − 62 = 8.
9521234500018
02 The numbers
Which numbers carry a check digit.
The last digit of each of these GS1 numbers is its check digit.
| Type | Digits | Before the check digit | Identifies |
|---|---|---|---|
| GTIN-8 | 8 | 7 | A trade item, which is anything priced, ordered or invoiced |
| GTIN-12 | 12 | 11 | A trade item |
| GTIN-13 | 13 | 12 | A trade item |
| GTIN-14 | 14 | 13 | A trade item |
| GLN | 13 | 12 | A party or a physical location |
| SSCC-18 | 18 | 17 | A logistic unit, such as a pallet |
Sources: GS1 General Specifications, Release 26.0, ratified January 2026: sections 1.3.4 (GLN), 3.3.1 (SSCC), 3.3.2 (GTIN), 7.9.1 and Tables 7-8 and 7-9 (the method), and section 1.4.2 (the GLN in Example 2). The SSCC in Example 1 is GS1's own, from Table 7-9. Trade item definition: GS1 Logistic Label Guideline, Release 1.3, section 4.1.
NoteA valid check digit shows that a number was composed correctly. It does not show that the number was ever issued to anyone.