A half adder adds two one-bit inputs, A and B, and produces two outputs: Sum=A XOR B and Carry=A AND B. Together the outputs represent the numeric result as 2×Carry + Sum. It has no carry input.
Reviewed 12 November 2026 · Binary examples checked with executable tests.
On this page
What is the half-adder truth table?
| A | B | Sum | Carry | 2×Carry+Sum |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 1 | 2 |
The final row is the important one: 1+1 gives binary 10. Sum is 0 and Carry is 1. Carry is not an error flag; it is the next binary place value in this two-bit result.
How do the equations follow from the table?
Sum is 1 only for 01 and 10, giving Sum=A′B+AB′, the XOR function. Carry is 1 only for 11, giving Carry=AB.
Sum = A XOR B
Carry = A AND B
2*Carry + Sum = A + BIn the two-variable Sum map, the ones lie diagonally and cannot form an adjacent pair. The Carry map contains a single one. This small example connects truth tables, Boolean expressions and Karnaugh maps.
What does the circuit contain?
Feed A and B to both an XOR gate and an AND gate. The XOR output is Sum and the AND output is Carry. They are separate output functions computed from the same pair of inputs.
“Two gates” describes this logical construction, not a universal transistor count or a guaranteed mapped-cell result. The target library, available cells and optimization goals determine a physical implementation.
Why can a half adder not replace every full adder?
Adding a column in a multi-bit operation may require A, B and a carry from the preceding column. A half adder has only two input bits, so it cannot directly include that third value. A full adder handles all three.
For a least-significant column with no incoming carry, a half-adder function can be sufficient. If the design includes an external carry-in or another operand, that assumption changes. Begin with the specified arithmetic, not the name of the circuit.
How do you verify a half adder?
Enumerate 00, 01, 10 and 11. For every row, reconstruct the integer result as 2×Carry+Sum and compare it with A+B. This arithmetic comparison is independent of just retyping the XOR and AND equations.
The downloadable tests perform that check for every input pair. They also use the half-adder result inside the full-adder example and compare the combined output with A+B+Cin. Passing these checks establishes the ideal binary function only.
Next, compare the XOR parity rule with arithmetic carry. They answer different questions: parity records whether the number of ones is odd, while carry records the higher place value generated by an addition.
Common questions
Why is it called a half adder?
It handles two input bits but has no input for a carry from a previous addition column. A full adder adds that third input.
Can an OR gate generate the half-adder sum?
No. OR gives 1 for A=B=1, but the correct sum bit for 1+1 is 0. XOR provides the correct sum bit.
Can Sum and Carry both be 1?
Not for a two-input half adder. Its largest result is binary 10. A full adder can produce 11 when all three inputs are 1.
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.