ISBN-13 check digit
The last digit of an ISBN-13, found by weighting the first 12 digits 1 and 3 alternately, adding them, and choosing the digit that makes the total a multiple of 10.
Understanding ISBN-13 check digit in IGCSE Computer Science Paper 1
What it does: 87 MOD 10 is 7, and 10 - 7 = 3, so the check digit is 3 and the new total is 90. The weights alternate 1, 3, 1, 3 and continue across all 12 digits, so even-numbered positions get weight 3. An ISBN (International Standard Book Number) identifies a book edition. Scanners use it to look the book up. ISBN-13 alternates weights 1 and 3. Counting-down weights belong to the older ISBN-10. The first 12 digits are weighted and added. The 13th digit is the check digit worked out from them. Odd positions (1st, 3rd, 5th ...) are multiplied by 1. Even positions (2nd, 4th, 6th ...) are multiplied by 3.
Common mistakes: The weights alternate 1, 3, 1, 3, so odd positions (1st, 3rd, ...) get weight 1 and even positions get weight 3. The test should be i MOD 2 = 0 so that only the even positions get weight 3. DIV gives the whole-number quotient, not the remainder. The check digit depends on the remainder after dividing by 10, so the line should be r ← total MOD 10.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 168–178) and word search (Modules 168–188).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
ISBN-13 check digitFill in the Blanks
Spot the Error
Student with a class code? Join your class →