ISBN-13 Check Digit Explained, With Worked Examples
Turn over almost any book and you will find a 13-digit number above its barcode. That ISBN is how publishers, booksellers and libraries tell one edition from another โ and its last digit quietly guards against typing mistakes. This guide explains what the different parts of an ISBN mean, walks through the check digit math for both ISBN-13 and the older ISBN-10, and shows how to test catalog software with safe sample numbers.
The five parts of an ISBN-13
An ISBN-13 such as 978-0-306-40615-7 is made of five elements:
- Prefix โ 978 or 979, which mark the number as a book identifier within the global product numbering system.
- Registration group โ a language area or country, such as 0 or 1 for English-speaking regions.
- Registrant โ the publisher or imprint.
- Publication โ the specific title and edition.
- Check digit โ the final digit, calculated from the other twelve.
The groups vary in length, which is why the hyphens move around between books. Each format of a book โ hardback, paperback, e-book, audiobook โ normally gets its own ISBN.
Calculating the ISBN-13 check digit
Multiply the first twelve digits alternately by 1 and 3, add the results, and pick the digit that brings the total up to the next multiple of 10. For 978030640615:
- 9ร1 + 7ร3 + 8ร1 + 0ร3 + 3ร1 + 0ร3 = 9 + 21 + 8 + 0 + 3 + 0 = 41
- 6ร1 + 4ร3 + 0ร1 + 6ร3 + 1ร1 + 5ร3 = 6 + 12 + 0 + 18 + 1 + 15 = 52
- Total: 41 + 52 = 93. The next multiple of 10 is 100, so the check digit is 7.
To validate a complete ISBN-13, include the check digit with weight 1 (it sits in an odd position) and confirm that the full sum is divisible by 10.
ISBN-10 and how to convert it
Before 2007, books used 10-digit ISBNs with a different check: multiply the digits by weights 10 down to 1, add them, and the total must be divisible by 11. Because the remainder can be 10, the check โdigitโ is sometimes the letter X. For 0-306-40615-? the weighted sum of the first nine digits is 130; 130 divided by 11 leaves 9, and 11 โ 9 = 2, so the ISBN-10 is 0-306-40615-2.
Converting an ISBN-10 to ISBN-13 takes three steps:
- Drop the old check digit.
- Put 978 in front.
- Calculate a new check digit with the ISBN-13 method.
That turns 0-306-40615-2 into 978-0-306-40615-7. Numbers starting with 979 have no ISBN-10 equivalent.
Generating sample ISBNs with RandNow
Bookstore databases, library systems and cover mockups all need plausible ISBNs. The Random ISBN Generator gives you as many as you need:
- Set the number of ISBNs, up to 100 per click.
- Leave Hyphenate on for a readable grouped style, or turn it off to get thirteen plain digits for imports and database columns.
- Generate. Every result uses the 978 or 979 prefix and a correctly calculated check digit.
- Copy the list or export it as CSV, JSON or TXT.
The numbers are random and not assigned to real titles, so they are safe placeholders for testing, demos and design work. A book you actually publish needs an ISBN from the official ISBN agency for your country.
Validation tips for book software
- Strip hyphens and spaces before checking, and store ISBNs as text, not numbers.
- Accept both ISBN-10 and ISBN-13 in search boxes, then convert to ISBN-13 for storage.
- Remember that an ISBN-10 may end in X โ uppercase or lowercase.
- Do not try to split hyphens yourself with fixed positions; group lengths vary, so use the official range data or keep the userโs formatting.
- Test with a valid number, the same number with one digit changed and one with two digits swapped.
A short history of the ISBN
The system grew out of a nine-digit Standard Book Numbering scheme used by booksellers in the United Kingdom in the 1960s. It was adopted as the international ISO 2108 standard in 1970, adding a tenth digit for the language or country group. As retail moved to barcodes, books were given a place in the EAN numbering system through the 978 prefix, and in 2007 the ISBN itself switched to 13 digits so that the book number and the barcode number became identical.
Today, ISBNs are issued by national agencies, each responsible for its own registration group. Some agencies provide them free of charge, while others sell them singly or in blocks, so self-publishers should check the rules for their own country.
Pro tips
- Use a fresh batch of generated ISBNs for each test run so you catch duplicate-handling bugs.
- Keep hyphenated and plain versions in your fixtures to test both input styles.
- Print a generated ISBN on mock covers instead of copying a real bookโs number.
- Index ISBN columns as strings to keep searches fast and exact.
Frequently asked questions
Why do some ISBNs start with 979 instead of 978?
The 978 prefix is gradually running out, so newer registrations in some regions use 979, which adds a large block of fresh numbers.
Does a new edition need a new ISBN?
Generally yes. A revised edition or a different format such as paperback, e-book or audiobook gets its own ISBN, while a simple reprint with no changes keeps the original one.
Is the ISBN the same as the barcode number?
For ISBN-13, yes. The barcode on the back cover encodes the same 13 digits in the EAN-13 format, often with a small extra code for the price.