Two's Complement - Representing Negative Numbers

Part of Binary Arithmetic · Section 6 of 11

Key FactsUnit: 3.3 Data RepresentationGCSE

The Problem with Simple Sign Bit:

You might think: "Just use the leftmost bit as a sign (0=positive, 1=negative)." This causes problems: two representations of zero (±0), addition doesn't work without special logic.

Two's Complement Solution:

A clever system where the MSB has a negative place value. For 8-bit:

  Place values: -128  64  32  16   8   4   2   1
  
  Example: 10000101
  = (-128) + 4 + 1 = -123
  
  Range for 8-bit two's complement: -128 to +127
  

How to Convert to Two's Complement (Make Negative):

Method: Flip all bits, then add 1

Example: Convert +5 to -5

  Step 1: Start with +5:     00000101
  Step 2: Flip all bits:     11111010
  Step 3: Add 1:             11111011 = -5
  
  Check: -128 + 64 + 32 + 16 + 8 + 2 + 1 = -5 ✓
  

Why Two's Complement is Brilliant:

  • Addition works the same for positive and negative numbers!
  • Only one representation of zero (00000000)
  • Easy to detect sign: if MSB = 1, it's negative
  • Subtraction = add the negative (3 - 5 = 3 + (-5))

Example: Add -5 + 3 (Should = -2)

    11111011  (-5)
  + 00000011  (+3)
  ----------
   ¹¹¹¹¹¹¹¹ ← carries (overflow bit discarded)
  1 11111110  (-2)
  ↑
  Overflow bit is ignored in two's complement addition
  
  Check: 11111110 = -128 + 64 + 32 + 16 + 8 + 4 + 2 = -2 ✓
  

This key facts covers Two's Complement - Representing Negative Numbers within Binary Arithmetic for GCSE Computer Science. Revise Binary Arithmetic in 3.3 Data Representation for GCSE Computer Science with 15 exam-style questions and 18 flashcards. This is a high-frequency topic, so it is worth revising until the explanation feels precise and repeatable. It is section 6 of 11 in this topic. Use this key facts to connect the idea to the wider topic before moving on to questions and flashcards.

Practice questions for Binary Arithmetic

In binary addition, what is the result of 1 + 1?

  • A. 1
  • B. 10
  • C. 2
  • D. 11
1 markfoundation

Explain the effect of a logical left shift and a logical right shift on the value of a binary number.

2 marksstandard

Quick recall flashcards

15 questions on Binary Arithmetic: practise free

Instant marking, adaptive difficulty and spaced-repetition flashcards — all aligned to your exam board.

Start revising free →