Two's complement signed integers

Unsigned binary can only store positive numbers. Two's complement lets 8 bits store negative numbers too.

Practise this lesson free (6 questions)

More tools

Unsigned and signed

An unsigned 8-bit integer stores 0 to 255.
In two's complement, the most significant (left) bit is worth -128 instead of +128.
So 8 bits store -128 to +127. If the left bit is 1, the number is negative.
11111011 = -128 + 64 + 32 + 16 + 8 + 2 + 1 = -5
-1286432168421
11111011

Making a negative number

To store -5:
1. Write +5 in binary: 00000101
2. Flip every bit: 11111010
3. Add 1: 11111011

Reading a negative number

Add the place values, remembering the left bit is -128.
10000001 = -128 + 1 = -127
Positive numbers look the same as unsigned: 01000001 = 65.
Worked example

Convert -20 to 8-bit two's complement.

  1. +20 = 00010100
  2. Flip: 11101011
  3. Add 1: 11101100

Answer: 11101100

Key idea

In 8-bit two's complement the left bit is worth -128, giving a range of -128 to +127. To make a negative: write the positive, flip the bits, add 1.

Key words
Two's complement
Signed binary where the left bit has a negative place value (-128 in 8 bits).
Binary
Base 2: the number system that uses only the digits 0 and 1.
Bit
A single binary digit, 0 or 1.

All GCSE and International GCSE Computer Science key terms and definitions โ†’

Quick check

Try two quick questions

See if it has sunk in. Answers are marked straight away.

Extra practice

2 more questions

Try each one, then tap to check.

  1. Convert -12 to 8-bit two's complement binary.

    Show the answer

    Answer: 11110100

    +12 = 00001100. Flip every bit: 11110011. Add 1: 11110100.

  2. What denary value is 11111110 in 8-bit two's complement?

    Show the answer

    Answer: -2

    The leftmost bit is worth โˆ’128. 11111110 = โˆ’128 + 126 = -2.

Check you have got it

Answer 6 quick questions with instant marking. If you get one wrong, GCSE-ready shows you why and gives you another go. It is free, and you do not need an account.

Video for this lesson coming soon. Subscribe on YouTube

Sources and references

Facts checked against the sources below, 17 October 2026. Last updated 2 October 2026. Spotted a mistake? Tell us and we will fix it.

What do exam command words like explain and evaluate mean? โ†’

Related lessons