A full adder adds A, B and carry-in Cin. Build it with two half adders: the first adds A and B, the second adds that partial sum and Cin. OR the two carry outputs to obtain Cout. The final result is 2×Cout + Sum.
Reviewed 12 November 2026 · Binary examples checked with executable tests.
On this page
How are the two half adders connected?
HA1: partial = A XOR B c1 = A AND B
HA2: Sum = partial XOR Cin
c2 = partial AND Cin
Cout = c1 OR c2The carry input joins the second half adder, not an unused terminal of the first. Draw and label partial, c1 and c2 before tracing an example; otherwise it is easy to mistake an intermediate carry for the final sum.
What is the complete full-adder truth table?
| A | B | Cin | Partial | c1 | c2 | Cout | Sum |
|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
| 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 |
| 0 | 1 | 1 | 1 | 0 | 1 | 1 | 0 |
| 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
| 1 | 0 | 1 | 1 | 0 | 1 | 1 | 0 |
| 1 | 1 | 0 | 0 | 1 | 0 | 1 | 0 |
| 1 | 1 | 1 | 0 | 1 | 0 | 1 | 1 |
All eight combinations are present. The two output columns are Cout then Sum when read as a binary number. For 111, the result is 11 (decimal 3); for any input with exactly two ones, it is 10 (decimal 2).
Why can the two carries be combined with OR?
If c1 is 1, A=B=1 and therefore partial=A XOR B is 0. With partial=0, c2=partial AND Cin must be 0. Conversely, if c2 is 1, partial is 1, so A and B differ and c1 is 0.
Thus c1 and c2 cannot both be 1 for valid binary inputs. OR and XOR would have the same output for these reachable carry pairs, but OR expresses the intended carry combination directly. This logical equivalence does not establish which cell is cheaper in a particular technology.
Work through A=1, B=1, Cin=1
- HA1 produces partial=0 and c1=1.
- HA2 adds 0 and 1, producing Sum=1 and c2=0.
- The OR gate produces Cout=1 OR 0=1.
- Read Cout,Sum as binary 11, which equals 1+1+1.
Another useful case is A=0, B=1, Cin=1: HA1 generates no carry, but its partial sum is 1, so HA2 produces the carry. Both paths need to be tested.
How does the carry equation relate to a majority function?
Combining the half-adder expressions gives Cout=AB+(A XOR B)Cin. An equivalent form is Cout=AB+A·Cin+B·Cin: the carry is high when at least two of the three inputs are high.
The source tests compare 2×Cout+Sum with A+B+Cin for every binary input and confirm that c1 AND c2 stays 0. In a multi-bit ripple adder, carry outputs connect to the next stage's Cin, introducing a timing path through stages. Functional correctness alone does not establish the maximum clock rate.
Review the half-adder derivation, XOR behavior and truth-table method before extending the circuit.
Common questions
How many half adders make this full adder?
Two half adders plus one OR gate implement the described one-bit full adder.
Is Sum enough to describe the result?
No. Sum alone loses the higher place value. The complete numeric result is 2×Cout+Sum.
Does this prove an n-bit adder is timing-safe?
No. Wider arithmetic needs checks for bit connections, signedness, carry handling and timing constraints. The exhaustive cases here cover only the one-bit functional block.
References and checks
Download the functional tests and model source. These check stated binary functions; they do not establish analog timing, physical implementation, fault coverage or board behavior.