ExamYard Lectures

Binary addition and overflow

IGCSE Computer Science 0478 · Chapter 1.3, Binary addition and overflow · 7-minute lecture

The teaching part (1 min) is free to watch. A free account opens the whole lecture: 5 practice questions, 2 real past-paper questions with the answers explained, the mistakes that lose marks, the full-marks tip, a one-card summary and a quick quiz.

What this lecture covers

  1. Adding in binary
  2. Why one plus one is ten
  3. The four rules
  4. A small one first
  5. Always check in denary
Read the transcript of the teaching part

Adding in binary

Every time your phone adds two numbers, it does it in binary. At school you add fifty-eight and sixty-seven column by column, carrying a one. A computer uses exactly the same method. The only difference is that it has just two digits, zero and one.

Why one plus one is ten

Here is the one idea that makes binary addition work. In binary, the columns are one, two, four, eight. So the number two is written one, zero: one lot of two, and no ones. That is why one plus one in binary is one, zero. We write zero and carry one, just like nine plus one in denary.

The four rules

So there are only four rules. Zero plus zero is zero. Zero plus one is one. One plus one is zero, carry one. And when a carry arrives in a column that already has two ones, there are three ones: write one, carry one.

A small one first

Let us start small, with four bits: 0 1 0 1 plus 0011. Always start from the right. One plus one is zero, carry one. Then zero plus one plus the carry: zero, carry one. Then one plus zero plus the carry: zero, carry one. And the last column, zero plus zero plus the carry, is one. The answer is 1000.

Always check in denary

Here is a habit that saves marks. Turn both numbers into denary: 0 1 0 1 is five, and 0 0 1 1 is three. Five plus three is eight, and 1 0 0 0 is eight. The binary answer is right.

Chapter 1.3: Binary addition and overflow

Also for IGCSE Computer Science 0478

Which topics come up most in IGCSE Computer Science 0478 past papers, counted from every paper since 2004: Paper 1 topic frequency, Paper 2 topic frequency.

The topical past-paper books: Paper 1, Paper 2.