ISBN-10 and ISBN-13 Check Digit and Missing Digit Calculation:
ISBN-10 and ISBN-13 are two different versions of the International Standard Book Number used for identifying books and other monographic publications. Both versions contain a check digit, which is used to verify the accuracy of the ISBN and prevent errors in the identification process. The check digit is calculated using a specific algorithm that takes into account the other digits in the ISBN. In addition, both versions may contain missing digits, which are represented by an “X” in the last position of the ISBN. Let’s explore the calculation of the check digit and the treatment of missing digits with example;
ISBN-10:
The ISBN-10 consists of 10 digits and is divided into four parts: the group identifier, the publisher code, the item number, and the check digit. The check digit is the last digit of the ISBN and is used to ensure the accuracy of the ISBN.
Let’s take an example of an ISBN-10: 0-13-235088-2
In this example, the group identifier is “0,” the publisher code is “13,” the item number is “235088,” and the check digit is “2.”
To calculate the check digit, we use the following formula:
(10 – ((d1 x 1) + (d2 x 2) + (d3 x 3) + … + (d9 x 9)) mod 10)
Using the example above, we would first multiply the first nine digits by their respective weights, then add up the products:
(0 x 1) + (1 x 2) + (3 x 3) + (2 x 4) + (3 x 5) + (5 x 6) + (0 x 7) + (8 x 8) + (8 x 9) = 261
We then take the sum and perform the mod 10 operation:
261 mod 10 = 1
Finally, we subtract the result from 10 to obtain the check digit:
10 – 1 = 9
Therefore, the correct check digit for this ISBN-10 is “9.”
Now let’s take an example of an ISBN-10 with a missing digit: 0-201-6X111-X
In this example, the missing digit is represented by an “X” in the item number and the check digit. To calculate the check digit, we treat the missing digit as 10:
(0 x 1) + (2 x 2) + (0 x 3) + (1 x 4) + (6 x 5) + (10 x 6) + (1 x 7) + (1 x 8) + (1 x 9) + (10 x 10) = 325
We then perform the mod 10 operation:
325 mod 10 = 5
Finally, we subtract the result from 10 to obtain the check digit:
10 – 5 = 5
Therefore, the correct check digit for this ISBN-10 is “5.”
ISBN-13:
The ISBN-13 consists of 13 digits and is divided into five parts: the GS1 prefix, the group identifier, the publisher code, the item number, and the check digit. The check digit is the last digit of the ISBN and is used to ensure the accuracy of the ISBN.
Let’s take an example of an ISBN-13: 978-0-13-235088-4
In this example, the GS1 prefix is “978,” the group identifier is “0,” the publisher code is “13,” the item number is “235088,” and the check digit is “4.”
To calculate the check digit, we use the following formula:
(10 – ((d1 x 1) + (d2 x 3) + (d3 x 1) + (d4 x 3) + … + (d12 x 3)) mod 10)
Using the example above, we would first multiply the first 12 digits by their respective weights, then add up the products:
(9 x 1) + (7 x 3) + (8 x 1) + (0 x 3) + (1 x 1) + (3 x 3) + (2 x 1) + (3 x 3) + (5 x 1) + (0 x 3) + (2 x 1) + (3 x 3) + (5 x 1) + (0 x 3) + (8 x 1) = 98
We then take the sum and perform the mod 10 operation:
98 mod 10 = 8
Finally, we subtract the result from 10 to obtain the check digit:
10 – 8 = 2
Therefore, the correct check digit for this ISBN-13 is “2.”
Now let’s take an example of an ISBN-13 with a missing digit: 978-0-201-6X111-X
In this example, the missing digit is represented by an “X” in the item number and the check digit. To calculate the check digit, we treat the missing digit as 10:
(9 x 1) + (7 x 3) + (8 x 1) + (0 x 3) + (2 x 1) + (0 x 3) + (1 x 1) + (6 x 3) + (10 x 1) + (1 x 3) + (1 x 1) + (1 x 3) + (10 x 10) = 309
We then perform the mod 10 operation:
309 mod 10 = 9
Finally, we subtract the result from 10 to obtain the check digit:
10 – 9 = 1
Therefore, the correct check digit for this ISBN-13 is “1.”
It is apparent that both ISBN-10 and ISBN-13 use a check digit to ensure the accuracy of the ISBN. To calculate the check digit, we multiply each digit by its weight, add up the products, perform the mod 10 operation, and subtract the result from 10. If there is a missing digit, we treat it as 10 when calculating the check digit.
Assistant Teacher at Zinzira Pir Mohammad Pilot School and College