JAN Check Digit Calculation: Formula, Example and Limits
The last digit of a JAN code is a check digit. It helps check the numerical structure of the identifier, but a valid calculation does not prove that a number has been assigned legitimately or that a product record is the correct match.
This guide explains Japanese systems. It does not determine the official classification or duty for an individual shipment or provide customs brokerage.
Calculate from the digit immediately before the check digit
First remove the final check digit. Starting at the right of the remaining number, multiply successive digits by 3, 1, 3, 1 and so on, then add the weighted values. The check digit is the value from 0 to 9 that brings the sum up to a multiple of 10.
One way to express this is: check digit = (10 − (weighted sum modulo 10)) modulo 10. If the sum is already a multiple of 10, the check digit is 0.
The starting position matters. Apply the first weight of 3 to the rightmost digit of the number without its check digit, not to the last digit of the completed identifier.
Work through GS1 Japan's example
GS1 Japan illustrates the calculation with the 12 digits 456995111617. The digits receiving a weight of 3 sum to 33; the other group sums to 22.
| Step | Result |
|---|---|
| Multiply 33 by 3 | 99 |
| Add 22 | 121 |
| Difference to the next multiple of 10 | 9 |
The check digit is therefore 9. This is an official teaching example, not a claim that the number identifies a product available in JANHS. It is deliberately not linked to a fabricated product page.
Investigate a mismatch rather than repairing it by guesswork
Check for omitted digits, transposition and differences between the scan and the printed label. Changing the final digit simply to make the formula work does not establish the correct product identifier. Businesses assigning codes should use GS1 Japan's current procedures and official calculation tool.
A valid check digit is only one check
The calculation does not verify a brand, capacity, model or packaging unit. When using a lookup result, validate the number's structure and compare the product evidence separately. Both matter before you use a candidate in purchasing or a product master.
Look up with JANHS
Search products / JAN codesRelated guides
References and official information
Check current official documents, as rates, legislation and examination rules may change. Reference titles are descriptive; some linked documents are in Japanese.