Edexcel 1CP2 · GCSE Computer Science · ~13 min read · 🔒 Pro
Notes
──
Video
──
Slides
──
Worksheet
──
Quiz
Why Two's Complement?
Computers need to represent both positive and negative numbers. Two's complement is the standard method used by computers to store signed (positive and negative) integers in binary. It allows subtraction to be performed using the same addition circuits, making hardware design simpler.
Representing Negative Numbers in 8-bit Two's Complement
In 8-bit two's complement:
The most significant bit (MSB) — the leftmost bit — is the sign bit
If the sign bit is 0, the number is positive
If the sign bit is 1, the number is negative
Range: −128 to +127
Sign bit
64
32
16
8
4
2
1
Value
0
1
1
1
1
1
1
1
+127
1
0
0
0
0
0
0
0
−128
1
1
1
1
1
1
1
1
−1
Converting a Positive Number to Its Negative (Two's Complement Method)
To find the two's complement (negate a number):
Write the positive number in binary
Invert all bits (flip 0s and 1s) — this is called "one's complement"
Exam tip: For Edexcel 1CP2, the two main skills are: (1) converting a positive number to its negative using invert+add 1, and (2) reading a two's complement negative number (MSB = −128, add remaining 1-bits). Always check your answer by verifying the MSB is 1 for negative numbers.
⚠️ Common Mistakes
Forgetting to add 1 after inverting — one's complement alone is not two's complement
Using −128 incorrectly: only the MSB = −128; other bits are their normal positive values (64, 32, 16...)
Confusing the range: 8-bit two's complement is −128 to +127 (not −127 to +127)
Not checking the sign bit first — always check MSB to determine if the number is positive or negative
✅ Notes completed!
▶
Video coming soon
Click slide or press arrow keys to navigate
✍️
Worksheet — 2.1c Two's Complement
8 Edexcel-style questions · AI-marked
Q1State the purpose of two's complement in computing.[2]
✅ Mark scheme
Two's complement is used to represent negative (signed) integers in binary [1]; it allows subtraction to use the same hardware as addition [1].
Q2Describe the two steps used to convert a positive binary number to its two's complement negative.[2]
✅ Mark scheme
Invert all bits (flip 0s to 1s and 1s to 0s) [1]; then add 1 to the result [1].
Q3Convert −25 to 8-bit two's complement. Show your working.[4]
Q8Explain why two's complement is more useful than simply using the MSB as a sign bit (sign-and-magnitude).[2]
✅ Mark scheme
Two's complement allows subtraction using addition circuits, simplifying hardware design [1]; sign-and-magnitude requires separate circuits for addition and subtraction, and has two representations of zero [1].
Topic Quiz
Q 1 of 15
You scored
out of 15
⚡ XP
Click to reveal definition
🎉
Session complete!
Term
Definition
🎯
Mini Test — Two's Complement
Timed exam-style test.
⏱10:00
Section A — Multiple Choice [5 marks]
Q1In 8-bit two's complement, what does an MSB of 1 indicate?[1]