Binary Number Representations
Aligned to the AQA 7517 specification
- Level
- Intermediate
- Reading time
- 5 min
- Published
- 13 June 2026
- Updated
- 1 July 2026
On this page
Key takeaways
- Unsigned binary represents non-negative integers, and with n bits the representable range is 0 to 2ⁿ - 1.
- In two's complement with n bits the range is -2^(n-1) to 2^(n-1) - 1, and the most significant bit acts as a sign bit with negative place value -2^(n-1).
- To negate a number in two's complement, invert all the bits and then add 1; inverting alone gives the one's complement, not the two's complement.
- Subtraction is performed as A - B = A + (-B) by adding the two's complement of the subtrahend, and any carry-out of the MSB must be discarded.
- In two's complement, overflow is detected when the carry into the MSB differs from the carry out of the MSB.
Want more lessons like this one?
Generate lessons on anything you study. Free account, no card needed.
Key terms
- Unsigned binary
- A representation of non-negative integers where, with n bits, the range is 0 to 2ⁿ - 1.
- Two's complement
- The standard way to represent positive and negative integers in binary, where the MSB has negative place value -2^(n-1).
- Sign bit
- The most significant bit in two's complement, where 0 indicates a positive value and 1 a negative value.
- One's complement
- The result of inverting all the bits of a number, which becomes two's complement only after adding 1.
- Overflow
- A condition where the result exceeds the range of n bits, detected in two's complement when the carry into the MSB differs from the carry out of the MSB.
- Carry-out
- A bit produced out of the most significant bit during addition, which is discarded in two's complement subtraction.
Frequently asked questions
Write the positive value in binary, invert all the bits, then add 1. For example, to get -37 in 8-bit two's complement: +37 is 0010 0101, inverting gives 1101 1010, and adding 1 gives 1101 1011. Inverting alone gives only the one's complement.
An 8-bit two's complement number has the range -128 to +127. The range is asymmetric because there is one more negative value than positive, following the general formula -2^(n-1) to 2^(n-1) - 1.
Binary subtraction is done by adding the two's complement of the subtrahend, since A - B = A + (-B). Any carry-out of the most significant bit is discarded to give the correct result; this carry-out is expected for a correct positive answer.
Generate revision on any topic you study
Type any topic you're studying and Aicademy generates a complete lesson, quiz, and flashcard set, personalised to your level.
Lessons on anything
Structured, level-matched lessons on any topic you study
Practice quizzes
Find out what you actually know before the exam does
Flashcard sets
Lock in key concepts with instant revision cards
Ask Aica
Stuck on something? Get a clear explanation, any time
Number Systems and Bases
Floating Point Numbers
Related lessons
6 min
6 min
5 min
5 min