Digital Electronics

Full Adder Using Two Half Adders: Circuit and Truth Table

By CourseTron Team ·  5 min read 💬 𝕏 in f

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 c2
    Full adder = HA1 + HA2 + OR Half Adder 1 XOR + AND Half Adder 2 XOR + AND A B S1 (partial sum) Cin Sum C1 C2 OR Cout CourseTron · coursetron.com
    Block-level view: HA1 adds A and B, HA2 adds the partial sum to Cin, and an OR gate merges the two carries.

    The 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?

    Full-adder truth table with intermediate results
    ABCinPartialc1c2CoutSum
    00000000
    00100001
    01010001
    01110110
    10010001
    10110110
    11001010
    11101011

    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.

    The two carries never overlap C1 = 1 case needs A = 1 and B = 1 so S1 = A XOR B = 0 then C2 = S1 AND Cin = 0 C2 = 1 case needs S1 = 1 and Cin = 1 so A and B differ then C1 = A AND B = 0 Result: Cout = C1 OR C2 is safe CourseTron · coursetron.com
    The two carry terms are mutually exclusive for valid binary inputs; OR combines them.

    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

    1. HA1 produces partial=0 and c1=1.
    2. HA2 adds 0 and 1, producing Sum=1 and c2=0.
    3. The OR gate produces Cout=1 OR 0=1.
    4. Read Cout,Sum as binary 11, which equals 1+1+1.
    Signal flow for A=1, B=1, Cin=1 HA1 HA2 OR S1 = 0 C2 = 0 Cout = 1 Sum = 1 (from HA2: 0 XOR 1) Orange pulse = the carry C1 produced by HA1 CourseTron · coursetron.com
    The carry pulse bypasses HA2 and reaches the OR gate directly, because HA2 only ever sees the 0 partial sum.

    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.