Half-Adder: Truth Table and Logic Circuit (XOR/AND)

Half-Adder: Truth Table and Logic Circuit (XOR/AND)

Verified Sources
Nov 3, 2026

A keyword half-adder adds two single-bit inputs AA and BB and produces two outputs: keyword Sum SS and keyword Carry CC. In the simplest gate-level design, Sum is implemented with keyword XOR and Carry with keyword AND:
S=A⊕B,C=A⋅BS = A \oplus B,\qquad C = A \cdot B

The half-adder is a combinational circuit (no memory): for every input pair (A,B)(A,B), the outputs are determined immediately by the Boolean expressions above.

Footnotes

  1. Half Adder Circuit—Theory, Design, and Implementation - Provides the half-adder truth table and Boolean expressions S=AoplusBS=A\\oplus B, C=AcdotBC=A\\cdot B and notes XOR/AND implementation. ↩ ↩2

Truth table for the half-adder

Enumerate all 22=42^2=4 input combinations for (A,B)(A,B), then compute outputs using S=A⊕BS=A\oplus B and C=A⋅BC=A\cdot B.

ABS=A⊕BS=A\oplus BC=A⋅BC=A\cdot B
0000
0110
1010
1101

This corresponds to the binary addition interpretation: when A+B=2A+B=2 (i.e., 1+11+1), the sum bit is 00 and the carry bit is 11.

Footnotes

  1. Half Adder Circuit—Theory, Design, and Implementation - Provides the half-adder truth table and Boolean expressions S=AoplusBS=A\\oplus B, C=AcdotBC=A\\cdot B and notes XOR/AND implementation. ↩

  2. Adder (electronics) - Wikipedia - Defines the half adder as adding two single binary digits AA and BB with outputs sum and carry, and discusses overflow into the next digit. ↩

Draw the truth table and logic circuit of a half-adder

  1. 1
    Step 1

    Use two inputs A,BA,B and two outputs: Sum SS and Carry CC.

  2. 2
    Step 2

    Use S=A⊕BS=A\oplus B and C=A⋅BC=A\cdot B.

  3. 3
    Step 3

    Evaluate (A,B)∈{(0,0),(0,1),(1,0),(1,1)}(A,B)\in\{(0,0),(0,1),(1,0),(1,1)\} to get SS and CC.

  4. 4
    Step 4

    Connect both AA and BB to one XOR gate for SS, and both AA and BB to one AND gate for CC.

  5. 5
    Step 5

    Label the XOR output as SS and the AND output as CC.

What the gates are doing (logic interpretation)

  • keyword XOR outputs 11 exactly when AA and BB differ, matching the half-adder sum bit.
  • keyword AND outputs 11 only when A=1A=1 and B=1B=1, matching the half-adder carry bit.
  • Therefore, in the specific truth-table row (A,B)=(1,1)(A,B)=(1,1), XOR gives 00 while AND gives 11, producing (S,C)=(0,1)(S,C)=(0,1).

Footnotes

  1. XOR gate - Wikipedia - Defines XOR as outputting 1 when inputs are different and includes XOR truth-table behavior. ↩ ↩2

  2. Half Adder Circuit—Theory, Design, and Implementation - Provides the half-adder truth table and Boolean expressions S=AoplusBS=A\\oplus B, C=AcdotBC=A\\cdot B and notes XOR/AND implementation. ↩

Half-adder outputs by input case

Sum SS and Carry CC for each (A,B)(A,B) combination (0/1 values).

Pro Tip: Use the formulas to verify your table

After filling the truth table, quickly check the two key rows: if (A,B)=(1,0)(A,B)=(1,0) or (0,1)(0,1) then S=1S=1 and C=0C=0; if (A,B)=(1,1)(A,B)=(1,1) then S=0S=0 and C=1C=1. This matches S=A⊕BS=A\oplus B and C=A⋅BC=A\cdot B.

Footnotes

  1. Half Adder Circuit—Theory, Design, and Implementation - Provides the half-adder truth table and Boolean expressions S=AoplusBS=A\\oplus B, C=AcdotBC=A\\cdot B and notes XOR/AND implementation. ↩

Common mistake: mixing up XOR vs OR

Do not use OR for Sum. OR would output 11 for (A,B)=(1,1)(A,B)=(1,1), but the half-adder Sum must be 00 when A=B=1A=B=1 because S=A⊕BS=A\oplus B.

Footnotes

  1. Half Adder Circuit—Theory, Design, and Implementation - Provides the half-adder truth table and Boolean expressions S=AoplusBS=A\\oplus B, C=AcdotBC=A\\cdot B and notes XOR/AND implementation. ↩

How a half-adder is derived (concept → implementation)

Choose A, B and outputs S, C

1. Define inputs/outputs

Half-adder adds two 1-bit values and yields Sum and Carry."

Enumerate all input cases

2. Build truth table

Compute SS and CC for the four combinations of (A,B)(A,B)."

Match patterns to XOR/AND

3. Derive Boolean logic

Identify S=A⊕BS=A\oplus B and C=A⋅BC=A\cdot B."

Gate-level schematic

4. Draw circuit

XOR feeds Sum; AND feeds Carry."

Half-adder essentials

1 / 4
Question · Term

Half-adder inputs and outputs

Click to reveal
Answer · Definition

Inputs: A,BA,B. Outputs: Sum SS and Carry CC.

Footnotes

  1. Adder (electronics) - Wikipedia - Defines the half adder as adding two single binary digits AA and BB with outputs sum and carry, and discusses overflow into the next digit. ↩

Knowledge Check

Question 1 of 4
Q1Single choice

For a half-adder, which gate can be used to generate Sum SS from inputs AA and BB?