Skip to content
CS Fundamentals Updated Dec 2026

Full Adder: Truth Table, K-Map, Circuit Diagram and Equations

Full adder explained: truth table, K-map, sum and carry expressions, circuit diagram, full adder using half adders, ripple carry adder and Verilog code.

Published
Reading time
5 min read
Views
1.9k views
Full Bit Adder Truth Table And Circuit in Digital Works
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.

ABCinSum (S)Carry (Cout)
00000
00110
01010
01101
10010
10101
11001
11111

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 truth table and K-map equations for sum and carry
Full adder truth table with the K-map equations for Sum and Carry.

Full adder circuit diagram

Using the XOR forms, a full adder needs five gates:

  1. XOR 1: A ⊕ B
  2. XOR 2: (A ⊕ B) ⊕ Cin, which is the Sum
  3. AND 1: A · B
  4. AND 2: Cin · (A ⊕ B)
  5. 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:

Full adder logic circuit diagram built in Digital Works
Full adder circuit 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:

  1. The first half adder adds A and B. It gives a partial sum (A ⊕ B) and a carry (AB).
  2. The second half adder adds that partial sum to Cin. Its sum output is the final Sum, and its carry is Cin(A ⊕ B).
  3. 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 adderFull adder
Inputs2 (A, B)3 (A, B, Cin)
OutputsSum, CarrySum, Carry
SumA ⊕ BA ⊕ B ⊕ Cin
CarryABAB + BCin + ACin
Gates1 XOR, 1 AND2 XOR, 2 AND, 1 OR
Accepts a carry in?NoYes
UseLeast significant bit onlyEvery 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):

BitABCinSumCout
001010
111001
211111
300110

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.

Comments are reviewed before they appear.

More like this

More in CS Fundamentals

CS Fundamentals

Shift Micro-operation in Computer Architecture

Shift micro-operations are used in serial transfer data. They are also used in conjunction with arithmetic, logic and otehr data processing operations. The content of a r…

Earn Online

Digital Marketing: Fundamentals and 7 Types

Blake is a young entrepreneur who has just started a brand new business selling homemade baked delicacies. To grow her business, she needs to constantly build an audience…