On this page 17 sections
A full adder is a combinational circuit that adds three bits: two input bits A and B, plus a carry-in (Cin) from the previous stage. It produces a Sum bit and a Carry-out (Cout). Chain full adders together and you get the adder inside every processor. This guide covers the full adder truth table, K-maps, Boolean expressions and circuit diagram, how it differs from a half adder, and a Verilog version. At the end you can download the complete circuit for Digital Works.
What is a full adder?
Adding two multi-bit binary numbers works column by column, just like decimal addition. Every column except the first must add three bits: the two digits and the carry from the column to its right. A half adder can only add two bits, so it can't handle the carry. A full adder can.
It has:
- Three inputs: A, B and Cin (carry in)
- Two outputs: S (sum) and Cout (carry out)
Full adder truth table
Three inputs give 23 = 8 combinations. The outputs are simply the binary count of how many inputs are 1: Cout is the twos bit and S is the ones bit.
| A | B | Cin | Sum (S) | Carry (Cout) |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 0 | 1 | 0 |
| 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 | 1 |
For example, the last row is 1 + 1 + 1 = 3, which is 11 in binary: Sum = 1, Carry = 1.
Full adder K-map and Boolean expressions
Sum
The Sum is 1 for minterms 1, 2, 4 and 7, so S = Σm(1, 2, 4, 7). In sum-of-products form:
S = A′B′Cin + A′BCin′ + AB′Cin′ + ABCin
On the K-map these four 1s sit in a checkerboard pattern. No two are adjacent, so they can't be grouped and the expression doesn't simplify with AND/OR gates. That pattern is the signature of XOR, which gives the compact form:
S = A ⊕ B ⊕ Cin
Carry
The Carry is 1 for minterms 3, 5, 6 and 7, so Cout = Σm(3, 5, 6, 7). On the K-map, three overlapping pairs cover them: BCin, ACin and AB. That gives:
Cout = AB + BCin + ACin
In words, the carry is 1 whenever at least two inputs are 1. An equivalent form, used when building the adder from half adders, is:
Cout = AB + Cin(A ⊕ B)

Full adder circuit diagram
Using the XOR forms, a full adder needs five gates:
- XOR 1: A ⊕ B
- XOR 2: (A ⊕ B) ⊕ Cin, which is the Sum
- AND 1: A · B
- AND 2: Cin · (A ⊕ B)
- OR: the two AND outputs, which is the Carry
If you build it straight from the sum-of-products expressions instead, the carry needs three 2-input AND gates and one 3-input OR gate. That is the version shown below in Digital Works:

Download the circuit
Download the full adder circuit file for Digital Works. Open it, press Run and toggle A, B and Cin to check every row of the truth table. You can also test the individual XOR, AND and OR gates in our logic gate and truth table simulator.
Full adder using two half adders
A half adder adds just two bits: its sum is A ⊕ B and its carry is A · B. Two half adders and an OR gate make a full adder:
- The first half adder adds A and B. It gives a partial sum (A ⊕ B) and a carry (AB).
- The second half adder adds that partial sum to Cin. Its sum output is the final Sum, and its carry is Cin(A ⊕ B).
- An OR gate combines the two carries into Cout = AB + Cin(A ⊕ B).
Only one of the two half adders can produce a carry at a time, which is why a simple OR gate is enough.
Half adder vs full adder
| Half adder | Full adder | |
|---|---|---|
| Inputs | 2 (A, B) | 3 (A, B, Cin) |
| Outputs | Sum, Carry | Sum, Carry |
| Sum | A ⊕ B | A ⊕ B ⊕ Cin |
| Carry | AB | AB + BCin + ACin |
| Gates | 1 XOR, 1 AND | 2 XOR, 2 AND, 1 OR |
| Accepts a carry in? | No | Yes |
| Use | Least significant bit only | Every bit of a multi-bit adder |
4-bit ripple carry adder
To add two 4-bit numbers, connect four full adders in a row and feed each Cout into the next stage's Cin. Set the first Cin to 0, or use a half adder for that bit. Here is 0110 (6) + 0111 (7):
| Bit | A | B | Cin | Sum | Cout |
|---|---|---|---|---|---|
| 0 | 0 | 1 | 0 | 1 | 0 |
| 1 | 1 | 1 | 0 | 0 | 1 |
| 2 | 1 | 1 | 1 | 1 | 1 |
| 3 | 0 | 0 | 1 | 1 | 0 |
Reading the sums from bit 3 down gives 1101, which is 13. The carry "ripples" from one stage to the next, so each stage has to wait for the one before it. That delay is why fast processors use carry-lookahead adders instead. The 74HC283 chip is a ready-made 4-bit full adder.
The same circuit also subtracts: invert B and set the first Cin to 1, and it computes A − B using two's complement.
Full adder in Verilog
module full_adder (
input wire a,
input wire b,
input wire cin,
output wire sum,
output wire cout
);
assign sum = a ^ b ^ cin;
assign cout = (a & b) | (b & cin) | (a & cin);
endmodule
Frequently asked questions
Why is it called a full adder?
Because it adds all three bits a column of binary addition needs, including the carry from the previous column. A half adder handles only two bits, so it does half the job.
What are the sum and carry expressions of a full adder?
Sum = A ⊕ B ⊕ Cin, and Carry = AB + BCin + ACin, which can also be written as AB + Cin(A ⊕ B).
How many NAND gates are needed to make a full adder?
Nine. Since NAND is a universal gate, the XOR, AND and OR parts can all be built from it, and the minimum is nine 2-input NAND gates. The same is true for NOR gates.
How many full adders does an n-bit adder need?
A ripple carry adder for n-bit numbers uses n full adders, or n − 1 full adders and one half adder for the least significant bit.
Can a full adder be built with multiplexers?
Yes. With A and B on the select lines of two 4:1 multiplexers, the data inputs for the Sum are Cin, Cin′, Cin′ and Cin, and for the Carry they are 0, Cin, Cin and 1. See our 4 to 1 multiplexer guide for how that method works.
Questions & comments
Did this work for you, or did you hit a different error? Ask below and we will help.