Add binary numbers step by step. See carries and column addition. Perfect for computer science and digital logic.
Binary addition is the arithmetic of base‑2 numbers and the fundamental operation inside every digital computer. It works similarly to decimal addition, but with only two digits: 0 and 1.
| A | B | Sum (A+B) | Carry |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 1 |
When a carry from a previous column is included, we have three bits to add: A, B and Carry‑in. The result then follows the extended truth table (shown earlier in the FAQ).
Let's add 1101 (13 decimal) and 1011 (11 decimal). Align the numbers to the right (least significant bit) and work column by column from right to left:
(carry) 1 1 1 0 0
1 1 0 1
+ 1 0 1 1
----------
1 1 0 0 0 (24 decimal)
Carry propagation is what allows addition of multi‑bit numbers. In digital circuits, this is implemented by half‑adders (for the least significant bit) and full‑adders (for the remaining bits).
| A | B | Sum | Carry |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 1 |
Adds two bits, produces sum and carry.
| A | B | Cin | Sum | Cout |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 | 1 |
Adds three bits (two inputs + carry‑in).
By chaining full‑adders, we can add binary numbers of any length – exactly what your computer's ALU does.
If we are working with a fixed number of bits (e.g., 4‑bit registers), and the sum produces an extra carry beyond the most significant bit, an overflow occurs. For example, adding 1001 (9) and 0111 (7) gives 10000 (16), which requires 5 bits. In a 4‑bit system, the result would be truncated to 0000 and the overflow flag is set – this indicates that the signed interpretation might be wrong. Our calculator shows the full result without truncation, but you can observe the extra carry in the column display.
Calculator Features (verified):