How To
Summary
How to calculate a check digit manually.
Objective
The purpose of this document is to provide information on creating a check digit for a GTIN.
Steps
ID Key Format
|
Digit positions | ||||||||||||||||||
GTIN-8 | N1 | N2 | N3 | N4 | N5 | N6 | N7 | N8 | |||||||||||
GTIN-12 | N1 | N2 | N3 | N4 | N5 | N6 | N7 | N8 | N9 | N10 | N11 | N12 | |||||||
GTIN-13 | N1 | N2 | N3 | N4 | N5 | N6 | N7 | N8 | N9 | N10 | N11 | N12 | N13 | ||||||
GTIN-14 | N1 | N2 | N3 | N4 | N5 | N6 | N7 | N8 | N9 | N10 | N11 | N12 | N13 | N14 | |||||
GSIN | N1 | N2 | N3 | N4 | N5 | N6 | N7 | N8 | N9 | N10 | N11 | N12 | N13 | N14 | N15 | N16 | N17 | ||
SSCC | N1 | N2 | N3 | N4 | N5 | N6 | N7 | N8 | N9 | N10 | N11 | N12 | N13 | N14 | N15 | N16 | N17 | N18 | |
Step 1: Multiply the value of each position by. | |||||||||||||||||||
x3 | x1 | x3 | x1 | x3 | x1 | x3 | x1 | x3 | x1 | x3 | x1 | x3 | x1 | x3 | x1 | x3 | |||
Step 2: Add results together to create the sum. | |||||||||||||||||||
Step 3: Subtract the sum from the nearest equal or higher multiple of ten = Check Digit. | |||||||||||||||||||
The following table gives an example to illustrate how a GTIN-13 Check Digit is calculated:
|
|||||||||||||||||||
ID Key Format
|
N1 | N2 | N3 | N4 | N5 | N6 | N7 | N8 | N9 | N10 | N11 | N12 | N13 | ||||||
Number without Check Digit | 6 | 2 | 9 | 1 | 0 | 4 | 1 | 5 | 0 | 0 | 2 | 1 | - | ||||||
Step 1: Multiply | x | x | x | x | x | x | x | x | x | x | x | x | - | ||||||
by | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 | - | ||||||
Step 2: Add results | = | = | = | = | = | = | = | = | = | = | = | = | - | ||||||
to create sum | 6 | 6 | 9 | 3 | 0 | 12 | 1 | 15 | 0 | 0 | 2 | 3 | 57 | ||||||
Step 3: Subtract the sum from the nearest equal or higher multiple of ten = 60- 57 = 3 (Check Digit) | |||||||||||||||||||
Number with Check Digit | 6 | 2 | 9 | 1 | 0 | 4 | 1 | 5 | 0 | 0 | 2 | 1 | 3 | ||||||
Example:
GTIN
|
|||||||||||||||||||
40987650000223 <Indicator><CompanyPrefix><ItemRef><CheckDigit> (14 Digits) | |||||||||||||||||||
Also, for reference is an LGTIN and indicator digit. | |||||||||||||||||||
LGTIN | |||||||||||||||||||
urn:epc:class:lgtin:0614141.107346.101 urn:epc:class:lgtin:<CompanyPrefix>.<IndicatorDigit><ItemRef>.<Lot> (13 digits + Lot) | |||||||||||||||||||
INDICATOR DIGIT: The leftmost digit of a GTIN is a GTIN-14. The digit 0 indicates a base unit GTIN, the digits 1 to 8 are used to define the packaging hierarchy of a product with the same Item Reference, and digit 9 indicates a variable measure trade item. Length is comprised of a GS1 Prefix and a Company Number. | |||||||||||||||||||
Related Information
Document Location
Worldwide
[{"Type":"MASTER","Line of Business":{"code":"LOB59","label":"Sustainability Software"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSNTIG3","label":"IBM Blockchain Transparent Supply"},"ARM Category":[{"code":"a8m50000000L2l6AAC","label":"Onboarding"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]
Was this topic helpful?
Document Information
More support for:
IBM Blockchain Transparent Supply
Component:
Onboarding
Software version:
All Versions
Document number:
7030227
Modified date:
31 August 2023
UID
ibm17030227
Manage My Notification Subscriptions