NewAI Part GeneratorFree to get started
CIRCUIT DIAGRAM EXAMPLE

Half Adder Circuit Diagram with Logic Gates

A half adder adds two single bits and produces a sum bit and a carry bit. It is the smallest piece of binary arithmetic and the building block of the full adders inside every processor's arithmetic unit.

Half adderHalf adderSum = A ⊕ B, Carry = A · BABSumCarryU1U2Truth tableA B → Sum Carry: 00→00, 01→10, 10→10, 11→01Made with ProtoFlow · protoflow.ai
Adds two one-bit inputs. The XOR gate gives the sum bit and the AND gate gives the carry bit.

How this circuit works

Adding two bits has four cases: 0 + 0 = 0, 0 + 1 = 1, 1 + 0 = 1 and 1 + 1 = 10 in binary. The right-hand digit is the sum and the left-hand digit is the carry.

The sum is 1 when exactly one input is 1. That is the definition of exclusive OR, so U1, an XOR gate, produces Sum = A ⊕ B.

The carry is 1 only when both inputs are 1, which is an AND gate: U2 gives Carry = A · B. Both gates read the same two inputs, so A and B each branch to both gates. The dots mark where each input splits; where the A branch crosses the B wire there is no dot, so they are not connected.

A half adder has no carry input, so on its own it can only add the lowest bits of two numbers. Two half adders and an OR gate make a full adder, and a chain of full adders adds numbers of any width.

Formulas

Sum
S = A ⊕ B = A·B̄ + Ā·B
Carry
C = A · B
Truth table
A B → S C: 0 0 → 0 0, 0 1 → 1 0, 1 0 → 1 0, 1 1 → 0 1

Parts list

RefPartValueWhat it does
U1XOR gate—XOR gate, for example one gate of a 74HC86.
U2AND gate—AND gate, for example one gate of a 74HC08.

Netlist

Recovered from the drawing itself: every pin on each net below is joined by a wire, a junction or a shared supply or ground symbol.

NetConnects
AU1.in1, U2.in1
BU1.in2, U2.in2
SumU1.out
CarryU2.out

Common mistakes

  • Using an OR gate for the sum. OR gives 1 for 1 + 1, but the sum bit of 1 + 1 is 0.
  • Leaving unused inputs floating on the real chips. CMOS inputs must be tied high or low, or they can oscillate and draw extra current.
  • Drawing a dot where wires only cross. A dot means a connection; crossing wires without one are separate nets.
  • Forgetting decoupling. Each 74HC chip needs a 100 nF capacitor between VCC and GND, close to its pins.

Frequently asked questions

What is the difference between a half adder and a full adder?

A full adder has a third input, the carry from the previous bit, so full adders can be chained to add multi-bit numbers. A half adder only adds two bits.

Which logic gates make a half adder?

One XOR gate for the sum and one AND gate for the carry. The same function can be built from five NAND gates.

Which chips do I need to build one on a breadboard?

A 74HC86 (four XOR gates) and a 74HC08 (four AND gates) on a 5 V supply, with switches or pull-down resistors on the inputs and LEDs on the outputs.

Draw your own version

Open this circuit in the AI circuit diagram maker and ask for a change in plain English, edit a value, switch to IEC symbols, or export it as SVG, PNG, PDF, a KiCad project or a SPICE netlist. Opening the example and exporting it are free.

Related circuit examples

All circuit diagram examples

From circuit diagram to PCB

Open the diagram in ProtoFlow, the free AI PCB design app for Windows, macOS and Linux: pick real parts, lay out and route the board, simulate with SPICE and export Gerbers. Imports and exports KiCad, Altium and EAGLE.

Get for Mac

Free to start. No card required.