The guide
A check digit proves a book number is well formed, never that a book exists
One extra digit makes an ISBN disagree with the commonest typing slips, and the arithmetic behind it shows exactly which slips get through.
- 132 = 12 x 11 weighted sum of 0-306-40615-2, divisible by 11
- 10 of 90 pairs of different digits whose swap an ISBN-13 check misses
- 978 or 979 the two ISBN-13 prefixes; only 978 converts to ISBN-10
- 2007 the year ISBNs moved from ten digits to thirteen
Read the full guide Fold the guide
Every number you copy by hand is a small bet that your eyes and fingers agree. A book number adds a side bet. Its last digit exists only to disagree with you when you slip.
What a check digit is for
A check digit is an extra digit appended to a number so that a program, or a person with a pencil, can tell whether the number was copied correctly. Run the other digits through a fixed formula, and the result must match the last digit. If it does not, something changed on the way.
The Check digit page lists the mistakes a designer worries about, in rising order of subtlety: a letter read as a digit, one digit altered, two neighbours swapped, a repeated pair altered, a swap across a gap, and a sound-alike such as sixty and sixteen. It also states the trade. A simple system is easy for humans to apply but catches fewer of these. For book numbers the two mistakes that matter most are the first two on that list. The ISBN page names them as the most common errors in typing or writing a number down: one altered digit, or two adjacent digits transposed.
Other systems chose other routes. The Luhn algorithm, from 1954, detects all single-digit errors and almost all swaps of neighbours, but it cannot tell 09 from 90. The Verhoeff algorithm, published in 1969, was the first decimal check digit to catch all single-digit errors and all adjacent swaps. The Damm algorithm, from 2004, matches that record with a different construction. The ISBN took a plainer path, with weights and a modulus, and the plain path is easy to check by hand. It is also easy to get subtly wrong, which is why the arithmetic is worth seeing digit by digit.
Two formulas, one worked number
The ISBN began as a nine-digit Standard Book Numbering scheme created in 1966. The identification format was devised in 1967, and the ten-digit form was published in 1970 as the international standard ISO 2108. Putting a zero in front of a nine-digit number turns it into a ten-digit one. In an ISBN-10 each digit is multiplied by a weight that counts down from 10 at the left to 1 at the right. The products are added, and the total must be divisible by 11. A final X stands for the value 10.
Take 0-306-40615-2. The products are 0, 27, 0, 42, 24, 0, 24, 3, 10 and 2. They add to 132, and 132 = 12 x 11, so the number passes. Without the last digit the total is 130. That leaves 9 when divided by 11, and 11 minus 9 is 2, which is the check digit printed at the end. The formula for the missing last digit is (11 minus the remainder of the sum) taken modulo 11 a second time. The second step matters only when the remainder is 0, where the first step would give 11, which is not a digit.
Since 1 January 2007 ISBNs have had thirteen digits. The ISBN-13 weights alternate 1 and 3 from the left, and the total must be divisible by 10. For 978-0-306-40615-7 the first twelve products add to 93, which leaves 3 when divided by 10, and 10 minus 3 is 7. The whole number then totals 100. Converting from ten digits to thirteen means putting 978 in front, dropping the old check digit and working out a new one. That is why 0-306-40615-2 becomes 978-0-306-40615-7: the number in the middle is unchanged, and the last digit changes from 2 to 7.
The reverse trip works only for numbers that start with 978. The thirteen-digit scheme has two prefixes, 978 or 979, and the ISBN page says plainly that numbers beginning 979 have no ten-digit equivalent. A tool that converts one of those is making a number up. The 978 and 979 prefixes come from the barcode system. The Bookland page describes Bookland as a fictitious country that exists only inside the European Article Number system, where its prefix marks published books. Both codes were designated in the 1980s so that books could share the barcode numbering already used for other goods.
Why eleven needs an X and ten leaves a gap
Dividing by 11 leaves one of eleven possible remainders, 0 to 10, and a decimal digit has only ten faces. When the needed check value is 10, the printed character is X. That single letter is the price of choosing a prime modulus. The prime is the point. The Modular arithmetic page states that a factor can be cancelled from both sides of a congruence when it shares no divisor with the modulus. Every ISBN-10 weight, 1 to 10, shares none with 11. So changing one digit changes the total by a weight times a nonzero difference smaller than 11, and that is never a multiple of 11.
Swaps work the same way. Two neighbours carry weights that differ by exactly 1, so swapping digits a and b changes the total by the difference between them, and a difference between two different digits is never a multiple of 11. The ISBN page puts the result this way: every single altered digit and every adjacent transposition is detected, because 11 is prime and an ISBN-10 is shorter than eleven digits. This is a strong guarantee, but a narrow one. The same page notes that two altered digits that are not a transposition, or three altered digits, can produce another valid number. A single check digit defends against the common slips, not every slip.
The thirteen-digit form had to fit the barcode scheme, which has no letter X. The European Article Number uses weights of 3 and 1 and a modulus of 10, and its page says the check detects all single-digit errors, because the weights share no divisor with 10, but only 90 percent of transpositions. The exception is a swap of neighbours whose digits differ by 5. The reason fits on one line. Neighbouring weights in an ISBN-13 differ by 2, so a swap changes the total by 2 times the difference of the digits. When that difference is 5, the change is 10, and the total is still divisible by 10.
In 978-0-306-40615-7 the digits 6 and 1 sit side by side. In place they add 3 x 6 + 1 x 1 = 19 to the total. Swapped, they add 3 x 1 + 1 x 6 = 9. Both leave 9 when divided by 10, so 9780306401657 passes as an ISBN-13 even though two digits are out of place. Counting the cases gives the whole picture: 10 of 90 ordered pairs of different digits are missed, namely 0 and 5, 1 and 6, 2 and 7, 3 and 8, and 4 and 9, each in both orders. At the ten-digit weights, none of the 810 swaps tried across the nine neighbour places is missed.
The barcode lineage shows in other numbers too. A serial number for a periodical uses eight characters whose last may be X, with weights 8 down to 2 and the same modulus of 11. The Universal Product Code ends in a check digit as well, and the ISBN page calls the thirteen-digit formula similar to it.
What a passing number does not tell you
A passing check shows that a number is well formed. It does not show that the number was ever assigned to a book, that the title and number belong together, or that anyone holds it. Real catalogues show how large that gap is. The ISBN page reports that 0-590-76484-5, a valid number, is shared by two different books. It also notes that a publisher who slips before printing ends up issuing a book with an invalid number, and that the Library of Congress catalogue holds books printed with invalid numbers, which it tags “Cancelled ISBN”.
The cataloguing format agrees. Its field for the number has a separate subfield for canceled or invalid numbers, and it names numbers with invalid check digits as an example. Libraries expect bad numbers to exist and keep a place for them.
So a calculator for this job should say what it does not know. It cannot tell you that a number was issued or look up a title. It cannot place the hyphens either. Those mark the group, publisher and title parts, and the ISBN page says the group part is one to five digits long, so only the agency’s own table of ranges can say where each break falls.
What it can do is the arithmetic: show each weighted product, find the one digit that fits when a single place is unreadable, convert between the two forms, and say which slips the arithmetic would have caught. The page tries every single-digit change and every swap of neighbours, and counts the catches and the misses.
A list of thousands of numbers is a different kind of job. The page hands it to a background worker, which the Web Workers API describes as running apart from the page, trading messages with it and receiving copies of the data. Typing stays smooth, and the list is capped at 5,000 numbers.
The lesson of the check digit is its modesty. It is a cheap promise that a few likely mistakes will not go unnoticed. Read it that way, and a passing number means “typed carefully”, which is a smaller claim than “real”, but a true one.
Sources
Every source consulted for this guide. Links checked November 9, 2026.
- ISBN - Wikipedia Wikipedia, Wikimedia Foundation (CC BY-SA 4.0)
- Check digit - Wikipedia Wikipedia, Wikimedia Foundation (CC BY-SA 4.0)
- International Article Number - Wikipedia Wikipedia, Wikimedia Foundation (CC BY-SA 4.0)
- Bookland - Wikipedia Wikipedia, Wikimedia Foundation (CC BY-SA 4.0)
- Universal Product Code - Wikipedia Wikipedia, Wikimedia Foundation (CC BY-SA 4.0)
- ISSN - Wikipedia Wikipedia, Wikimedia Foundation (CC BY-SA 4.0)
- Luhn algorithm - Wikipedia Wikipedia, Wikimedia Foundation (CC BY-SA 4.0)
- Verhoeff algorithm - Wikipedia Wikipedia, Wikimedia Foundation (CC BY-SA 4.0)
- Damm algorithm - Wikipedia Wikipedia, Wikimedia Foundation (CC BY-SA 4.0)
- Modular arithmetic - Wikipedia Wikipedia, Wikimedia Foundation (CC BY-SA 4.0)
- MARC 21 Format for Bibliographic Data: 020: International Standard Book Number Network Development and MARC Standards Office, Library of Congress
- Web Workers API - Web APIs MDN Web Docs, Mozilla contributors (CC BY-SA)