Digital Electronics

Half Adder: Truth Table, Circuit and Sum/Carry Equations

By CourseTron Team ·  5 min read 💬 𝕏 in f

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?

    Half-adder truth table
    ABSumCarry2×Carry+Sum
    00000
    01101
    10101
    11012

    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.

    Cycling through all four input cases 0 + 0Sum = 0 Carry = 0 0 + 1Sum = 1 Carry = 0 1 + 0Sum = 1 Carry = 0 1 + 1Sum = 0 Carry = 1 (overflow into next column) CourseTron · coursetron.com
    Only the final case produces a carry. The bar underneath shows the 4-second cycle.

    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 + B
    K-maps for the half adder Sum Carry BA 01 01 BA 01 01 0110 0001 Diagonal 1s: no grouping possible S = A'B + AB' = A ⊕ B Single 1: one minterm C = A·B CourseTron · coursetron.com
    The Sum map has its 1s on a diagonal, so no adjacent cells merge and the minimal form stays as two product terms. The Carry map has a single 1.

    In 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.

    Half adder: two gates, two outputs XOR AND A B Sum = A ⊕ B Carry = A·B CourseTron · coursetron.com
    Each input fans out to both gates. XOR makes the sum bit and AND makes the carry bit, so both are computed in parallel.

    “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.