Open the app
  1. Home
  2. Lessons
  3. KS3 Computing
  4. Binary addition and overflow

Binary addition and overflow

🎬 The doodle video for this lesson is coming soon. Subscribe on YouTube to see it first.

Computers add numbers in binary, column by column, just like you add in denary. There are only four rules to learn.

The four rules

Adding column by column

Start from the right. Write the answer bit underneath and carry to the next column on the left.
00100110 (38)
+ 00010111 (23)
= 00111101 (61)
Check by converting to denary: 38 + 23 = 61.

Overflow

8 bits can only hold up to 255.
If a sum is bigger than 255, there is a carry out of the last column with nowhere to go. This is an overflow error.
11111111 + 00000001 = 1 00000000: the answer needs 9 bits, so it does not fit.
Worked example

Add 00001011 and 00000110.

  1. Right column: 1 + 0 = 1.
  2. Next: 1 + 1 = 0 carry 1.
  3. Next: 0 + 1 + carry 1 = 0 carry 1.
  4. Next: 1 + 0 + carry 1 = 0 carry 1.
  5. Next: 0 + 0 + carry 1 = 1.
  6. Check: 11 + 6 = 17.

Answer: 00010001

Key idea

Binary addition: 0+0=0, 0+1=1, 1+1=0 carry 1, 1+1+1=1 carry 1. Work right to left. If the result needs more than 8 bits, an overflow error happens.

The interactive lesson includes the diagrams for this topic.

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.