Bar code check digit
The last digit of a bar code number, worked out from the other digits. The scanner recalculates it and rejects a misread if the digits do not match, so the item must be scanned again.
Understanding Bar code check digit in IGCSE Computer Science Paper 1
What it does: A matching check digit means the bar code was probably read correctly, so the scanner accepts it. A mismatch shows the digits were misread, so the scanner rejects them and asks for a rescan. The check digit sits at the end of the number and is worked out from the 12 digits before it. The weights go 1, 3, 1, 3... so the first digit is multiplied by 1 and the second by 3. EAN-13 and ISBN-13 both use alternating 1 and 3 weights to work out the check digit. The rescan action belongs to a failed check (not equal), not to a successful one.
Common mistakes: EAN-13 bar codes use modulus 10, not 11. The check digit is (10 - r) MOD 10. Modulus 11 is used for other check digit schemes. EAN-13 uses weights 1 and 3 alternately, starting with 1 for the first digit. Odd positions get weight 1 and even positions get weight 3, so the line should set w ← 1.
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 179–188) 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
check digitFill in the Blanks
Spot the Error
Student with a class code? Join your class →