How the ISBN Check Digit Works

A complete explanation of the MOD-11 (ISBN-10) and EAN-13 MOD-10 (ISBN-13) check digit algorithms

What is a check digit?

A check digit is the final digit of an ISBN, calculated mathematically from the preceding digits. Its purpose is to catch transcription errors — if you mistype a single digit or transpose two adjacent digits, the check digit will no longer validate, immediately revealing the error.

The ISBN-10 and ISBN-13 formats use different algorithms, described below.

ISBN-13 Check Digit (EAN-13 MOD-10)

ISBN-13 uses the same algorithm as EAN-13 barcodes. The steps:

  1. Take the first 12 digits of the ISBN-13
  2. Multiply alternating digits by 1 and 3 (starting with 1 for the first digit)
  3. Sum all the products
  4. Check digit = (10 − (sum mod 10)) mod 10

Worked example: 978-0-596-51774-?

Position Digit Weight Product
1 9 × 1 9
2 7 × 3 21
3 8 × 1 8
4 0 × 3 0
5 5 × 1 5
6 9 × 3 27
7 6 × 1 6
8 5 × 3 15
9 1 × 1 1
10 7 × 3 21
11 7 × 1 7
12 4 × 3 12
Sum = 132

Sum = 132. Check digit = (10 − (132 mod 10)) mod 10 = (10 − 2) mod 10 = 8. Full ISBN-13: 978-0-596-51774-8

ISBN-10 Check Digit (MOD-11)

The ISBN-10 algorithm uses a weighted sum with weights decreasing from 10 to 1:

  1. Multiply the first digit by 10, the second by 9, …, the ninth digit by 2
  2. Sum all products
  3. Check digit = 11 − (sum mod 11)
  4. If the result is 10, the check digit is X; if 11, it is 0

Worked example: 0-596-51774-?

Position Digit Weight Product
1 0 × 10 0
2 5 × 9 45
3 9 × 8 72
4 6 × 7 42
5 5 × 6 30
6 1 × 5 5
7 7 × 4 28
8 7 × 3 21
9 4 × 2 8
Sum = 251

Sum = 251. Check digit = 11 − (251 mod 11) = 11 − 9 = 2. Full ISBN-10: 0-596-51774-0

What errors does the check digit catch?

The ISBN algorithms are designed to catch:

  • Single-digit transcription errors: changing any one digit will produce an invalid checksum
  • Adjacent transpositions: swapping two neighbouring digits (e.g. 12 → 21) will be caught by both ISBN-10 and ISBN-13 algorithms

Note: the check digit does not guarantee the ISBN was actually assigned or that a book exists with that number. It only confirms the number wasn't garbled in copying. Use Open Library or a bookstore database to verify the book exists.

Check digit calculator

You can validate any ISBN using the decoder tool — it automatically detects whether you entered an ISBN-10 or ISBN-13, calculates the expected check digit, and tells you whether it matches.

Why X in ISBN-10?

The ISBN-10 MOD-11 algorithm produces values from 0–10. Since 10 can't be represented as a single decimal digit, the Roman numeral X (representing 10) is used. This is why you occasionally see ISBNs ending in X, such as 0-9752298-0-X.

The ISBN-13 algorithm uses MOD-10, which always produces 0–9, so X never appears in ISBN-13.

Validate an ISBN

Paste any ISBN into the decoder to verify its check digit instantly.

Open Decoder →