- Half adders and full adders
Circuits that add binary digits and produce a sum and a carry.
Adders are circuits that perform binary addition.
Half adder — adds two single bits A and B, producing a Sum and a Carry:
(⊕ means XOR.) It is built from one XOR gate (Sum) and one AND gate (Carry):
| A | B | Sum | Carry |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 1 |
Full adder — adds three bits: A, B and a carry-in (Cin), giving a Sum and a carry-out (Cout):
Full adders can be chained so each carry-out feeds the next column's carry-in — this is how a processor adds multi-bit numbers.
- Half adder: Sum = A XOR B, Carry = A.B (two inputs).
- Full adder: adds A, B, Cin → Sum and Cout (three inputs).
- Sum = A XOR B XOR Cin; Cout = A.B + Cin.(A XOR B).
- Chained full adders add multi-bit numbers.
See the full worked example for boolean algebra and logic circuits →