ISBN Check Digit Calculator
- A check digit is a single character computed from all the other digits, so a typo or transposition almost always breaks the arithmetic and exposes the error.
- ISBN-13 weights alternate 1 and 3, starting with 1, and the check digit makes the weighted sum a multiple of 10. The weighted sum of your digits is 9x1 + 7x3 + 8x1 + 0x3 + 1x1 + 3x3 + 2x1 + 3x3 + 5x1 + 0x3 + 8x1 + 8x3 = 96.
- 96 mod 10 = 6, so the check digit is (10 - 6) mod 10 = 4. Leading zeros in the digits you entered are restored automatically before the sum is taken.
- The complete ISBN is 978-013-235-088-4. The hyphens shown here simply group the digits in threes for readability; official hyphen placement depends on the registrant ranges assigned to each publisher.
This ISBN check digit calculator finds the final digit of an ISBN-13 or ISBN-10 from the first 12 or 9 digits you enter. For ISBN-13 it applies the alternating 1, 3, 1, 3 weights, sums the products, takes the remainder mod 10, and gives the check digit that makes the total divide evenly by 10. For ISBN-10 it weights the digits 10 down to 2, takes the remainder mod 11, and returns the check character, which is X when the arithmetic lands on 10. The page shows the answer and how it was reached. For example, the first 12 digits of Clean Code's ISBN-13, 978013235088, have a weighted sum of 96; 96 mod 10 = 6, so the check digit is 4, completing 978-013-235-088-4. Its ISBN-10 twin 013235088 has a weighted sum of 130; 130 mod 11 = 9, giving check digit 2. When the ISBN-10 arithmetic lands on 10, the check character is X: 043942089 has weighted sum 199, remainder 1, and check digit X.
The underlying method is the accepted standard for this kind of calculation because ISBN-13 and ISBN-10 each define their own fixed weighting and modulus, and the check digit is whatever value satisfies that rule. The two systems are not interchangeable: ISBN-13 weights alternate 1, 3, 1, 3, while ISBN-10 weights run 10 down to 2, so the same digits can produce different results under each. This page shows the formula, step-by-step workings, worked examples and sources, so you can follow every step and verify the result yourself rather than trusting a black box.
Worked examples
ISBN-13 example
(ISBN-13 - enter the first 12 digits · 978013235088)
| Check digit | 4 |
| Complete ISBN (digits grouped for readability) | 978-013-235-088-4 |
| Weighted digit sum | 96 |
| Remainder | 6 |
ISBN-10 example
(ISBN-10 - enter the first 9 digits · 13235088)
| Check digit | 2 |
| Complete ISBN (digits grouped for readability) | 013-235-088-2 |
| Weighted digit sum | 130 |
| Remainder | 9 |
ISBN-10 with X
(ISBN-10 - enter the first 9 digits · 43942089)
| Check digit | X |
| Complete ISBN (digits grouped for readability) | 043-942-089-X |
| Weighted digit sum | 199 |
| Remainder | 1 |
How the ISBN-13 check digit works
An ISBN-13 ends in a single digit whose only job is to catch typos and transcription errors. To find it, you work through the first 12 digits with alternating weights of 1 and 3, add the results, and see how far the total falls from the next multiple of 10. An isbn check digit calculator does this arithmetic for you, but walking one example by hand shows exactly what the tool is doing.
Take Clean Code's ISBN-13, 978013235088. Those 12 digits are the payload; the check digit has not been added yet. Apply the weights in order, starting with 1: the first digit is multiplied by 1, the second by 3, the third by 1, the fourth by 3, and so on, alternating to the end. For this number the weighted sum comes to 96. Now reduce it: 96 mod 10 = 6, which is the remainder left when 96 is divided by 10. The check digit is what you add to that remainder to reach 10, so (10 - 6) mod 10 = 4. The digit 4 completes the number as 978-013-235-088-4.
The same idea runs through ISBN-10, with two differences. The weights count down from 10 to 2 instead of alternating 1 and 3, and the modulus is 11 rather than 10. Clean Code's ISBN-10 twin, 013235088, has a weighted sum of 130. Since 130 mod 11 = 9, the check digit is 2. Because the modulus is 11, a remainder can require a check value of 10, and that is written as the letter X. For example, 043942089 has a weighted sum of 199, leaving a remainder of 1, so its check character is X.
These two calculations are separate systems, not variations on one another. ISBN-13 weights alternate 1, 3, 1, 3, while ISBN-10 weights run 10 down to 2, and the two systems are not interchangeable. You cannot carry a check digit from one format to the other or verify a 13-digit number with 10-digit rules. When you use an isbn check digit calculator, confirm which format you are checking first, then let the weights and modulus for that format do the rest.
How the ISBN-10 check digit works - and the X
The ISBN-10 check digit works on a simple weighted sum, but with one quirk worth knowing before you trust a result. Take the first nine digits of the ISBN and multiply them by weights that run from 10 down to 2, then add the products together. Divide that total by 11 and keep the remainder. The check digit is whatever brings the remainder up to a multiple of 11, which is why the answer can be anything from 0 to 10. An isbn check digit calculator does this arithmetic for you, but walking through one example shows why the last character sometimes looks unusual.
Use Clean Code's ISBN-10, 013235088. The first nine digits are 0, 1, 3, 2, 3, 5, 0, 8 and 8. Weighted from 10 down to 2, the products sum to 130. Now divide: 130 mod 11 = 9, since 11 times 11 is 121 and 130 minus 121 leaves 9. The check digit is the value that completes the next multiple of 11, which here is 2. So the full ISBN-10 ends in 2, and the sequence 013235088 with a check digit of 2 is valid.
That works cleanly when the answer is a single digit from 0 to 9. But the remainder can require a value of 10, and a single character slot cannot hold two digits. The convention is to print the letter X, which stands for 10 in Roman numerals. Consider 043942089: the weighted sum of its first nine digits is 199, and 199 mod 11 = 1, so the check character needed is 10 - written as X. That is why you see ISBN-10s ending in X, such as 043-942-089-X. The X is not a typo or a placeholder; it is the number 10 in disguise, and it only ever appears in the final position.
It helps to remember that ISBN-10 and ISBN-13 use different weighting, which is why the two systems are not interchangeable. ISBN-13 weights alternate 1, 3, 1, 3 across its first twelve digits and checks against a modulus of 10. ISBN-10 weights run 10 down to 2 and check against a modulus of 11. The same book can carry both numbers, but the digits and the check characters do not match. Clean Code's ISBN-13 begins 978013235088: those twelve digits have a weighted sum of 96, and 96 mod 10 = 6, so the check digit is 4, completing 978-013-235-088-4. Its ISBN-10 twin, 013235088, ends in 2 as shown above. Same book, different final character, different arithmetic.
Why check digits catch typos
A check digit works by turning the other digits of an ISBN into a single weighted sum, then reducing that sum to one final character. Change any one digit and the weighted sum changes with it, so the computed check character no longer matches the one printed on the book. That is the whole idea behind an isbn check digit calculator: it does the arithmetic so a mismatch surfaces immediately instead of after a failed order or a broken link.
The ISBN-13 system weights digits alternately 1 and 3, starting with 1. Take the first 12 digits of Clean Code's ISBN-13, 978013235088. Their weighted sum is 96. Since 96 mod 10 = 6, the check digit is 4, completing 978-013-235-088-4. If a single digit anywhere in those twelve were mistyped, the weighted sum would land on a different remainder and the final 4 would no longer fit.
The older ISBN-10 uses a different scheme: weights run from 10 down to 2, and the arithmetic is done modulo 11. Its ISBN-10 twin, 013235088, has a weighted sum of 130. Because 130 mod 11 = 9, the check digit is 2. Modulo 11 has an extra benefit. Any single wrong digit changes the weighted sum, but the mod-11 ISBN-10 scheme also catches every transposition of neighbouring digits — swapping two adjacent digits alters the sum in a way that cannot be hidden by the remainder. ISBN-13 does not offer that same guarantee for every adjacent swap, which is one reason the two systems are not interchangeable.
Modulo 11 also explains the letter you sometimes see at the end of an ISBN-10. When the ISBN-10 arithmetic lands on 10, the check character is written as X. For example, 043942089 has a weighted sum of 199, a remainder of 1, and a check digit of X. The X is not a stray character or a typo — it is the standard way of representing ten in a single position.
Because ISBN-13 weights alternate 1, 3, 1, 3 while ISBN-10 weights run 10 down to 2, you cannot check one format using the other's rules and expect a valid answer. A 13-digit number run through the ISBN-10 weights, or a 10-digit number run through the 1-3 pattern, will produce a meaningless result. Match the method to the length of the number first, then let the arithmetic do the catching.
Reading your result
Once the ISBN check digit calculator has done its arithmetic, the result you see is the complete number with its final character in place. For Clean Code, the first 12 digits of its ISBN-13, 978013235088, have a weighted sum of 96. Since 96 mod 10 = 6, the check digit is 4, completing 978-013-235-088-4. The same book's ISBN-10 twin, 013235088, has a weighted sum of 130; 130 mod 11 = 9, giving a check digit of 2. Notice that the two results look quite different even though they describe the same title — that is expected, not an error.
When the ISBN-10 arithmetic lands on 10, the check character is written as X rather than a two-digit number. For example, 043942089 has a weighted sum of 199, a remainder of 1, and a check digit of X. If you see an X at the end of an ISBN-10, it is a legitimate check character, not a typo or a placeholder. It simply means the calculation produced the value ten, which a single character has to represent.
The hyphens in the displayed result are worth a second look. Hyphen placement is assigned per publisher range and is not part of the check. The check digit confirms only that the digits are internally consistent; it says nothing about whether the hyphens fall in the right spots for a given publisher. So a result can pass the check and still show grouping that differs from what the publisher actually uses. Treat the hyphenated form as a readable presentation, and the digit sequence itself as the part the arithmetic verifies.
Leading zeros are significant in ISBN-10, and they are restored automatically here. A number like 013235088 must keep its opening zero; dropping it changes the number and breaks the calculation. Because spreadsheets and some data-entry fields strip leading zeros, it is easy to lose one without noticing. The calculator puts it back so the result matches the true ISBN-10.
Keep in mind that ISBN-13 weights alternate 1, 3, 1, 3, while ISBN-10 weights run 10 down to 2. The two systems are not interchangeable, so a valid ISBN-10 does not convert into a valid ISBN-13 by adding 978 and recomputing alone — the check character has to be recalculated under the other system's rules. When you read your result, check which system you asked for and confirm the final character matches that system's arithmetic.
FAQs
How do I calculate an ISBN-13 check digit?
Weight the first 12 digits alternately by 1 and 3, then take (10 - sum mod 10) mod 10. For example, the digits 978013235088 sum to 96 under this weighting, so the check digit is 4. Add that digit as the thirteenth position to complete the ISBN-13.
What does the X at the end of an ISBN mean?
The X stands for the check value 10 in the ISBN-10 system, used when the computed check value is 10 rather than a single digit 0 through 9. For the digits 043942089, the weighted sum is 199, leaving a remainder of 1, so the check character is X.
How do I verify an ISBN-10?
Weight the nine digits from 10 down to 2, then add the check digit with weight 1. A valid ISBN-10 totals a multiple of 11. For Clean Code, the digits sum to 130 plus 2, giving 132, which is a multiple of 11 and confirms the check.
Can I convert an ISBN-10 to an ISBN-13?
Yes. Prefix the nine-digit ISBN-10 body with 978, then recompute the check digit using the ISBN-13 weighting. For example, 013235088 becomes 978013235088, and the new check digit is 4. Note that the old ISBN-10 check character is dropped and replaced.
Do leading zeros matter in an ISBN?
Yes, leading zeros are significant and must be kept. The ISBN-10 body 013235088 starts with a meaningful zero, and its weighted sum is 130. Dropping that zero shifts the weighting and breaks both the sum and the check, so the ISBN would no longer validate.
What errors does a check digit catch?
A check digit catches every single-digit error, meaning any one digit typed incorrectly. In the ISBN-10 system it also catches every adjacent transposition, where two neighboring digits are swapped. These two are the most common typing mistakes, so the check digit guards against them.