Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
ISBN
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===ISBN-13 check digit calculation=== Appendix 1 of the International ISBN Agency's official user manual<ref name="7th edition Users' Manual">{{cite book |url=https://www.kb.se/download/18.71dda82e160c04f1cc412bc/1531827912246/ISBN%20International%20Users%20Manual%20-%207th%20edition.pdf |via=Kungliga biblioteket |title=ISBN Users' Manual, International Edition |edition=7th |date=2017 |publisher=International ISBN Agency |location=London |isbn=978-92-95055-12-4 |access-date=9 June 2019 |archive-date=11 December 2019 |archive-url=https://web.archive.org/web/20191211194637/https://www.kb.se/download/18.71dda82e160c04f1cc412bc/1531827912246/ISBN%20International%20Users%20Manual%20-%207th%20edition.pdf |url-status=live }}</ref>{{rp|33}} describes how the 13-digit ISBN check digit is calculated. The ISBN-13 check digit, which is the last digit of the ISBN, must range from 0 to 9 and must be such that the sum of all the thirteen digits, each multiplied by its (integer) weight, alternating between 1 and 3, is a multiple of [[10 (number)|10]]. As ISBN-13 is a subset of [[International Article Number#Check digit|EAN-13]], the algorithm for calculating the check digit is exactly the same for both. Formally, using [[modular arithmetic]], this is rendered: {{block indent|<math>(x_1 + 3x_2 + x_3 + 3x_4 + x_5 + 3x_6 + x_7 + 3x_8 + x_9 + 3x_{10} + x_{11} + 3x_{12} + x_{13} ) \equiv 0 \pmod{10}.</math>}} The calculation of an ISBN-13 check digit begins with the first twelve digits of the 13-digit ISBN (thus excluding the check digit itself). Each digit, from left to right, is alternately multiplied by 1 or 3, then those products are summed [[modular arithmetic|modulo]] 10 to give a value ranging from 0 to 9. Subtracted from 10, that leaves a result from 1 to 10. A zero replaces a ten, so, in all cases, a single check digit results. For example, the ISBN-13 check digit of 978-0-306-40615-''?'' is calculated as follows: <!-- This is what we'd like to do, but it is far too wide. : <math>\textstyle \begin{array}{rlllllllllllll} s &{}= 1 \times 9 &{}+ 3 \times 7 &{}+ 1 \times 8 &{}+ 3 \times 0 &{}+ 1 \times 3 &{}+ 3 \times 0 &{}+ 1 \times 6 &{}+ 3 \times 4 &{}+ 1 \times 0 &{}+ 3 \times 6 &{}+ 1 \times 1 &{}+ 3 \times 5 \\ &{}= 9 &{}+21 &{}+ 8 &{}+ 0 &{}+ 3 &{}+ 0 &{}+ 6 &{}+ 12 &{}+ 0 &{}+ 18 &{}+ 1 &{}+ 15 \\ &{}= 93 \end{array}</math> --> s = 9×1 + 7×3 + 8×1 + 0×3 + 3×1 + 0×3 + 6×1 + 4×3 + 0×1 + 6×3 + 1×1 + 5×3 = 9 + 21 + 8 + 0 + 3 + 0 + 6 + 12 + 0 + 18 + 1 + 15 = 93 93 / 10 = 9 remainder 3 10 – 3 = 7 Thus, the check digit is 7, and the complete sequence is <nowiki>ISBN 978-0-306-40615-7</nowiki>. In general, the <nowiki>ISBN</nowiki> check digit is calculated as follows. Let {{block indent|<math>r = 10 - \big(\big(x_1 + 3x_2 + x_3 + 3x_4 + \cdots + x_{11} + 3x_{12}\big) \bmod 10\big).</math>}} Then {{block indent|<math> x_{13} = \begin{cases} r, & r < 10, \\ 0, & r = 10. \end{cases} </math>}} This check system—similar to the [[Universal Product Code|UPC]] check digit formula—does not catch all errors of adjacent digit transposition. Specifically, if the difference between two adjacent digits is 5, the check digit will not catch their transposition. For instance, the above example allows this situation with the 6 followed by a 1. The correct order contributes {{nobr|3 × 6 + 1 × 1 {{=}} 19}} to the sum; while, if the digits are transposed (1 followed by a 6), the contribution of those two digits will be {{nobr|3 × 1 + 1 × 6 {{=}} 9}}. However, 19 and 9 are congruent modulo 10, and so produce the same, final result: both ISBNs will have a check digit of 7. The ISBN-10 formula uses the [[prime number|prime]] modulus 11 which avoids this blind spot, but requires more than the digits 0–9 to express the check digit. Additionally, if the sum of the 2nd, 4th, 6th, 8th, 10th, and 12th digits is tripled then added to the remaining digits (1st, 3rd, 5th, 7th, 9th, 11th, and 13th), the total will always be divisible by 10 (i.e., end in 0).
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
ISBN
(section)
Add topic