Range of 8-bit two's complement
The range of an 8-bit two's complement integer: 10000000 is -128, 11111111 is -1 and 01111111 is 127. Unsigned 8-bit binary gives 0 to 255 instead.
Understanding Range of 8-bit two's complement in IGCSE Computer Science Paper 1
What it does: One bit is used as the sign bit worth -128, leaving 7 bits for 0 to 127, which gives the range -128 to 127. With no negative numbers every bit adds a positive value, so 11111111 is 255. Two's complement gives -128 to 127 instead. The sign bit is worth -128, so the smallest value is -128. The largest is 127 because 128 would need an extra bit. The sign bit must be 0 for a positive number. 01111111 is 64+32+16+8+4+2+1 = 127. Only the sign bit is set, so the value is -128 and nothing is added to it. 11111111 is -1.
Common mistakes: The smallest 8-bit two's complement value is -128 (10000000), not -127. The line should be min ← -128. 01111111 is the largest positive value, which is 127. 128 cannot be stored as a positive 8-bit two's complement number. It should be 01111111 = 127.
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 28–41) and word search (Modules 28–58).
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
-128 to 127Fill in the Blanks
Spot the Error
Student with a class code? Join your class →