How to calculate the check digit
Next
Previous
More
HOME
DIET COKE 4890008101306
Let us denote the 13 digits as following:
N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 N11 N12 N13
N1---N3 Country Code
N4---N7 Manufacturer Code
N8---N12 Product Code
N13 Check Digit
We'll calculate the check digit by following the steps below:
1. EVEN = ( N2 + N4 + N6 + N8 + N10 + N12 ) * 3
2. ODD = N1 + N3 + N5 + N7 + N9 + N11
3. TOTAL = EVEN + ODD
4. Divide TOTAL by 10 and let the remainder be R
5. If R is 0 then change R to 10
6. N13 = 10 - R
We use the Diet Coke code as our example. The code for Diet Coke is
4 89000810130
EVEN = ( 8 + 0 + 0 + 1 + 1 + 0 ) *3
= 30
ODD = 4 + 9 + 0 + 8 + 0 + 3
= 24
TOTAL = 30 + 24
= 54
Divide 54 by 10 , we get a remainder of 4
N13 = 10 - 4
= 6
The check digit is 6
You always see the code 4890008101306 on the can of Diet Coke!