➕ Binary Addition Master

OCR Computer Science J277 - Mr Brown

Interactive Addition Playground

Randomise two 8-bit numbers, then add them together column by column, starting with the 2⁰ (rightmost) bit, at your own pace.

A (decimal)

0

B (decimal)

0

Result (decimal)

Press "Add A + B" to begin, then "Next Column" to solve it one column at a time.

🏆 Binary Addition Challenges

Challenges Complete

0

Total Points

0

Loading challenge…

The dashed carry row is your working space. Fill in the Result row — and the overflow box on the far left, if you need it — then check your answer.

📚 Master Binary Addition

➕ The Four Addition Rules

Binary addition works column by column, starting at the rightmost (2⁰) bit — exactly like the column addition you'd do with denary numbers. At every column, only four situations can happen:

  • 0 + 0 = 0
  • 1 + 0 = 10 + 1 = 1
  • 1 + 1 = 0 carry 1
  • 1 + 1 + 1 (carry) = 1 carry 1

Any carry generated in one column is carried into the next column to the left — just like carrying a ten in denary addition.

🧮 Worked Example: 01001101 + 00100110

77 + 38, added column by column from the right:

Place value2⁷2⁶2⁵2⁴2⁰
Carry in00011000
A01001101
B00100110
Result01110011
01001101 + 00100110 = 01110011
77 + 38 = 115 — fits comfortably in 8 bits, so no overflow.

Try this exact example yourself in the Playground!

⚠️ Understanding Overflow

An 8-bit register can only store 8 bits. If adding two 8-bit numbers produces a carry out of the leftmost (2⁷) column, the true answer needs a 9th bit — and that bit has nowhere to go.

11111111 + 00000001 = 1 00000000
255 + 1 = 256, but only 8 bits are stored, giving 00000000 instead!
  • Overflow occurs when: the final carry out of the 2⁷ column is 1.
  • Effect: the stored 8-bit result is wrong — it's 256 less than the true answer.
  • Prevention: use more bits (e.g. a 16-bit register) if the answer might exceed 255.