Full Adder Using Karnaugh Map: Step-by-Step Design

Derive a full adder from its truth table using 3-variable Karnaugh maps. Follow the Sum and Carry groupings, Boolean expressions, and logic circuit.

Kalana Sandeep9 min read
Full Adder Design using 3-variable Karnaugh maps with Sum and Carry logic gates

A full adder is a basic building block in digital electronics. It adds three binary inputs and produces two outputs: a Sum bit and a Carry-out bit. Although its operation is straightforward, deriving its Boolean expressions is a useful exercise in understanding how combinational logic is designed.

In this guide, we will work from the full adder's truth table and use two three-variable Karnaugh maps to derive its Sum and Carry expressions. The important part is not just reaching the final equations, but understanding why the two outputs produce different K-Map patterns.

The final expressions are:

Sum:

S = A ⊕ B ⊕ Cin

Carry-out:

Cout = AB + ACin + BCin

Let's derive both results step by step.

1. What Is a Full Adder?

A full adder is a combinational logic circuit that adds three single-bit binary values.

Its inputs are:

  • A: First binary input.
  • B: Second binary input.
  • Carry-in (Cin): Carry received from the previous, less significant bit position.

It produces two outputs:

  • Sum (S): The result bit at the current position.
  • Carry-out (Cout): The carry passed to the next, more significant bit position.

The reason a full adder has three inputs becomes clear when adding multi-bit binary numbers. A bit position may need to account for a carry generated by the position immediately before it.

For example:

1 + 1 + 1 = 11₂

The result is a two-bit binary number. The rightmost bit is the Sum, while the leftmost bit is the Carry-out.

Therefore:

  • Sum = 1
  • Carry-out = 1

Full Adder vs. Half Adder

A half adder adds two input bits, whereas a full adder also accepts a carry from the previous stage.

FeatureHalf AdderFull Adder
Number of inputs23
Carry-inNoYes
Sum outputYesYes
Carry outputYesYes
Typical useInitial bit addition without an incoming carryMulti-bit binary addition
Full Adder block diagram showing inputs A, B, and Cin with outputs Sum and Cout

Figure 1: Full adder block diagram showing three 1-bit binary inputs and two outputs.

2. Full Adder Truth Table

Since a full adder has three binary inputs, the total number of possible input combinations is:

2³ = 8

The complete truth table is:

ABCinSumCout
00000
00110
01010
01101
10010
10101
11001
11111

Each row represents one possible combination of the three input bits.

Notice what happens when all three inputs are 1:

1 + 1 + 1 = 11₂

This produces a Sum of 1 and a Carry-out of 1.

The Sum is 1 whenever an odd number of the three inputs are 1. The Carry-out is 1 whenever at least two inputs are 1.

These two observations will become useful when examining the K-Maps.

Full Adder truth table listing all 8 minterm combinations for inputs A, B, Cin and outputs Sum, Cout

Figure 2: Complete truth table highlighting minterms for Sum S = ∑m(1,2,4,7) and Carry-out Cout = ∑m(3,5,6,7).

3. Obtaining Boolean Expressions from the Truth Table

Before drawing the Karnaugh maps, identify the truth-table rows where each output is 1.

For the Sum output, the 1s occur at:

  • 001
  • 010
  • 100
  • 111

Using the variable order A, B, Cin, these correspond to minterms 1, 2, 4 and 7.

Therefore:

S(A,B,Cin) = Σm(1,2,4,7)

For the Carry-out output, the 1s occur at:

  • 011
  • 101
  • 110
  • 111

Therefore:

Cout(A,B,Cin) = Σm(3,5,6,7)

A minterm represents one specific combination of input values. For example, minterm 3 corresponds to 011, meaning A = 0, B = 1 and Cin = 1.

Keeping the variable order consistent is important. Changing the order midway through a calculation can place values in the wrong K-Map cells.

4. Sum Output Using a Three-Variable Karnaugh Map

We can now use a three-variable Karnaugh map to examine the Sum function.

The function is:

S(A,B,Cin) = Σm(1,2,4,7)

Step 1: Arrange the K-Map

Use Cin as the row variable and AB as the column variables.

The columns must follow Gray-code order:

00, 01, 11, 10

Only one bit changes between neighbouring columns. This arrangement makes it possible to identify valid adjacent groups.

Step 2: Enter the Sum values

Place a 1 in the cells corresponding to minterms 1, 2, 4 and 7. All remaining cells receive 0.

The completed K-Map is:

Cin \ AB00011110
00101
11010
Three-variable Karnaugh map for the Sum output of a Full Adder showing the checkerboard pattern of minterms 1, 2, 4, and 7

Figure 3: Three-variable Karnaugh map for Sum showing isolated minterms forming a non-groupable checkerboard pattern.

Step 3: Examine the grouping pattern

Look carefully at the four 1s.

They form a checkerboard pattern. No two of these 1s are adjacent horizontally or vertically.

Even though the first and last columns of a Karnaugh map are adjacent through wrap-around, there are still no valid adjacent 1-pairs in this particular map.

This means we cannot combine the four minterms into larger groups.

The resulting Sum expression in standard two-level Sum-of-Products form is:

S = A'B'Cin + A'BCin' + AB'Cin' + ABCin

Here, the prime symbol represents the complement of a variable.

For example, A' means NOT A.

Step 4: Recognize the XOR relationship

There is a useful pattern hidden in this expression.

The Sum output is 1 when an odd number of inputs are 1:

  • One input is 1.
  • Or all three inputs are 1.

This is exactly the behaviour of an XOR operation applied successively to the three inputs.

Therefore, the same function can be written more compactly as:

S = A ⊕ B ⊕ Cin

The important distinction is that the checkerboard 1s cannot be combined into larger K-Map groups. The XOR expression is an equivalent compact representation of the function, not the result of grouping non-adjacent K-Map cells.

This is a useful detail to remember when solving full-adder problems.

5. Carry Output Using a Three-Variable Karnaugh Map

Now consider the Carry-out function:

Cout(A,B,Cin) = Σm(3,5,6,7)

We will use the same K-Map arrangement to make the two outputs easier to compare.

Step 1: Enter the Carry values

Place 1s in the cells corresponding to minterms 3, 5, 6 and 7.

The completed map is:

Cin \ AB00011110
00010
10111
Three-variable Karnaugh map for the Carry-out output showing three overlapping valid pairs intersecting at minterm 7

Figure 4: Carry-out K-Map with three overlapping pairs (BCin, ACin, AB) sharing minterm 7.

Step 2: Identify the first pair

Consider minterms 3 and 7.

Their binary combinations are:

  • m3 = 011
  • m7 = 111

The only changing variable is A.

Therefore, A is eliminated, while B and Cin remain unchanged.

The resulting product term is:

BCin

Step 3: Identify the second pair

Now consider minterms 5 and 7.

Their binary combinations are:

  • m5 = 101
  • m7 = 111

The only changing variable is B.

Therefore, B is eliminated.

The resulting product term is:

ACin

Step 4: Identify the third pair

Finally, consider minterms 6 and 7.

Their binary combinations are:

  • m6 = 110
  • m7 = 111

The only changing variable is Cin.

Therefore, Cin is eliminated.

The resulting product term is:

AB

Step 5: Combine the product terms

Combining the three groups gives:

Cout = BCin + ACin + AB

Rearranging the terms:

Cout = AB + ACin + BCin

This is the simplified Sum-of-Products expression for the Carry-out function.

Notice that minterm 7 appears in all three pairs. This is allowed because overlapping K-Map groups can be used when they help cover the required 1s with valid groups.

Why is the Carry function called a majority function?

The Carry-out becomes 1 whenever at least two of the three input bits are 1.

For example:

  • A = 1, B = 1, Cin = 0 gives Cout = 1.
  • A = 1, B = 0, Cin = 1 gives Cout = 1.
  • A = 0, B = 1, Cin = 1 gives Cout = 1.

That is why the Carry function is also known as a three-input majority function.

6. Final Simplified Boolean Expressions

After completing both Karnaugh maps, the final expressions are:

Sum output:

S = A ⊕ B ⊕ Cin

Carry-out output:

Cout = AB + ACin + BCin

These expressions describe the complete operation of a one-bit full adder.

The Sum expression uses XOR operations because the output is 1 for an odd number of active inputs.

The Carry expression uses AND and OR operations to represent the condition that at least two inputs must be 1.

7. Full Adder Logic Circuit

The Boolean expressions can now be converted into a logic circuit.

Sum circuit

The Sum expression is:

S = A ⊕ B ⊕ Cin

It can be implemented using two XOR gates connected in sequence:

  1. The first XOR gate receives A and B.
  2. Its output is connected to the second XOR gate.
  3. The second XOR gate also receives Cin.
  4. The final output is Sum.

Carry circuit

The Carry expression is:

Cout = AB + ACin + BCin

It can be implemented using:

  • Three AND gates to generate the product terms.
  • One OR gate to combine the three AND outputs.

The resulting output is Carry-out.

Full Adder logic circuit schematic with two XOR gates for Sum and three AND gates plus one OR gate for Carry-out

Figure 5: Logic circuit schematic of the full adder showing independent Sum and Carry branches.

An alternative implementation using two half adders

A full adder can also be constructed using two half adders and one OR gate.

First define:

P = A ⊕ B

The Sum becomes:

S = P ⊕ Cin

The Carry-out can be written as:

Cout = AB + PCin

Substituting P:

Cout = AB + (A ⊕ B)Cin

This is equivalent to the earlier Carry expression.

This alternative shares the intermediate XOR result and can reduce the number of gates compared with a direct implementation of the three-product-term SOP expression.

Both implementations perform the same full-adder operation.

8. Worked Examples: Verify the Full Adder

The final equations should agree with the truth table for every input combination.

Let's verify two cases.

Example 1: A = 1, B = 0, Cin = 1

Using the Sum expression:

S = 1 ⊕ 0 ⊕ 1

S = 0

Using the Carry expression:

Cout = (1×0) + (1×1) + (0×1)

Cout = 0 + 1 + 0 = 1

Therefore:

  • Sum = 0
  • Carry-out = 1

Check using binary addition:

1 + 0 + 1 = 10₂

The result agrees with the equations.

Example 2: A = 1, B = 1, Cin = 1

Using the Sum expression:

S = 1 ⊕ 1 ⊕ 1

S = 1

Using the Carry expression:

Cout = (1×1) + (1×1) + (1×1)

Cout = 1

In Boolean arithmetic, the OR of these three terms is 1.

Therefore:

  • Sum = 1
  • Carry-out = 1

Check using binary addition:

1 + 1 + 1 = 11₂

Again, both outputs are correct.

9. Common Mistakes When Solving Full Adder K-Maps

A few small mistakes can lead to incorrect Boolean expressions. These are worth checking before finalizing a solution.

1. Using the wrong column order

K-Map columns must follow Gray-code order. For two variables, use 00, 01, 11, 10 rather than ordinary binary order.

2. Mixing up the variable order

Always identify the order used when converting binary combinations into minterm numbers. In this example, the order is A, B, Cin.

3. Grouping non-adjacent 1s

A valid K-Map group must contain adjacent cells in powers of two. The Sum map's checkerboard pattern does not allow larger groups.

4. Forgetting wrap-around adjacency

The first and last columns of a K-Map are adjacent. However, wrap-around only helps when the relevant cells contain 1s.

5. Forgetting that groups can overlap

A cell can belong to more than one valid group. In the Carry map, minterm 7 is shared by all three pairs.

6. Confusing Sum and Carry minterms

The Sum and Carry functions have different minterm sets. Always derive them separately from the truth table.

10. Frequently Asked Questions

What is the Boolean expression of a full adder?

The Sum expression is S = A ⊕ B ⊕ Cin, and the Carry-out expression is Cout = AB + ACin + BCin.

Why does a full adder have three inputs?

It adds two input bits and the carry received from the previous bit position. This makes it suitable for multi-bit binary addition.

Why can't the Sum K-Map form larger groups?

The four 1s form a checkerboard pattern. No two 1s are adjacent horizontally or vertically, including through wrap-around. Therefore, no larger K-Map groups can be formed.

Why is the Carry-out called a majority function?

Because it becomes 1 when at least two of the three input bits are 1.

Can a full adder be made using two half adders?

Yes. Two half adders can be connected in sequence, and their carry outputs can be combined using an OR gate.

How many logic gates are required for a full adder?

The number depends on the implementation. Using the direct expressions shown in this article, the circuit uses two XOR gates, three AND gates and one OR gate. A shared-intermediate implementation using two half adders can use two XOR gates, two AND gates and one OR gate.

Does a full adder need don't-care conditions?

No. All eight input combinations are valid operating conditions for a full adder, so no input combination needs to be treated as a don't-care condition.

11. Try Your Own Karnaugh Map Problems

Understanding the derivation is useful, but working through different Boolean functions is what makes K-Map techniques easier to apply.

You can use the Karnaugh Map Solver on this website to enter Boolean functions, examine simplified expressions, and practise the grouping process.

Try changing the input combinations and comparing the resulting expressions with your own calculations.

Conclusion

A full adder demonstrates how a truth table can be converted into practical digital logic using Karnaugh maps.

The Sum output produces a checkerboard pattern, which corresponds to an XOR function. The Carry output allows three overlapping pairs, resulting in a majority-function expression.

The final equations are:

S = A ⊕ B ⊕ Cin

Cout = AB + ACin + BCin

Understanding why these two outputs simplify differently is an important part of learning combinational logic design.