Free calculatorLive resultsSteps and sourcesEmbed on your site, free

Karnaugh Mapping Calculator

Karnaugh mapping calculator works out Minimal sum of products and Minimal product of sums from Describe the function by, Variables and Minterms (cells that are 1). The default figures on this page give minimal sum of products of B'C' + B'D' + A'C'D; change any entry and the result, the working and the sources update together.

Minimal sum of products
B'C' + B'D' + A'C'D
Karnaugh Map Solver
Minimal product of sums
(A' + B')(B' + D)(C' + D')
Terms (AND gates)
3
Literals (gate inputs)
7
Row variables
AB
Column variables
CD
Canonical sum of products
A'B'C'D' + A'B'C'D + A'B'CD' + A'BC'D + AB'C'D' + AB'C'D + AB'CD'
Worked out from M. Karnaugh, "The Map Method for Synthesis of Combinational Logic Circuits", Transactions of the AIEE 72 (1953), 593-599 and 1 other source.

Your figures

Updates as you type
Most significant first. The first half index the map rows, the rest the columns.
Cells that may be treated as 1 or 0, whichever gives the simpler cover.
One character per row in cell order: 1, 0, or x for a don't care.

How this is worked out

6 steps
  1. Map over A, B, C, D: 4 rows (AB) by 4 columns (CD), Gray-coded so neighbours differ in one variable.
  2. 1-cells: 0, 1, 2, 5, 8, 9, 10.
  3. Prime implicants (all maximal groups): B'C', B'D', A'C'D
  4. Essential prime implicants (each is the only group covering some 1): B'C', B'D', A'C'D
  5. Minimum cover: F = B'C' + B'D' + A'C'D (3 term(s), 7 literal(s)).
  6. Minimising the 0-cells and applying De Morgan gives F = (A' + B')(B' + D)(C' + D').
Prime implicantstable
B'C', B'D', A'C'D
Essential prime implicantstable
B'C', B'D', A'C'D
Groups in the chosen covertable
termcellssize
B'C'0, 1, 8, 94
B'D'0, 2, 8, 104
A'C'D1, 52
Karnaugh maptable
1011AB0001
100011
000101
001100
101011
Row labels (Gray code)table
00, 01, 11, 10
Column labels (Gray code)table
00, 01, 11, 10
Minterms usedtable
0, 1, 2, 5, 8, 9, 10

Its 5 worked examples are re-run on every release, last on 15 September 2026. What changed

Sources and references

2 sources
M. Karnaugh, "The Map Method for Synthesis of Combinational Logic Circuits", Transactions of the AIEE 72 (1953), 593-599
The original map method: the Gray-coded chart on which adjacent cells differ in one variable.
M. Morris Mano and Michael D. Ciletti, Digital Design, Chapter 3: Gate-Level Minimization
6th edition, Pearson, 2018 · Karnaugh maps for 2-5 variables, Gray-code cell ordering, don’t-care conditions, prime and essential prime implicants, and the SOP/POS simplification procedure.

What the karnaugh mapping calculator calculates

Builds the Gray-coded Karnaugh map for 2 to 6 variables and minimises the function to its simplest sum-of-products and product-of-sums form, listing prime and essential prime implicants.

How to use this karnaugh mapping calculator

Enter Describe the function by, Variables, Minterms (cells that are 1) and Don't-care cells. Minimal sum of products updates as you type, and “Use a worked example” loads checked figures you can adjust. Change one figure at a time to see what drives the result.

How the result is worked out

Open “How this is worked out” beside the result for the step-by-step calculation behind Minimal sum of products, Minimal product of sums and Terms (AND gates).

The method follows M. Karnaugh, "The Map Method for Synthesis of Combinational Logic Circuits", Transactions of the AIEE 72 (1953), 593-599 and M. Morris Mano and Michael D. Ciletti, Digital Design, Chapter 3: Gate-Level Minimization.

Mano-style 4-variable map: F(A,B,C,D) = Sum m(0,1,2,5,8,9,10) example

With Describe the function by: minterms, Variables: A, B, C, D, Minterms (cells that are 1): 0,1,2,5,8,9,10, the calculator returns Minimal sum of products: B'C' + B'D' + A'C'D, Terms (AND gates): 3, Literals (gate inputs): 7. This example is checked against an independent source in the test suite.

What you can compare

Change one input at a time to see how it affects Minimal sum of products, Minimal product of sums and Terms (AND gates). The inputs you can vary are Describe the function by, Variables, Minterms (cells that are 1), Don't-care cells, Truth-table output column and Boolean expression.

Results are general information, not financial, tax, legal, medical or engineering advice. Check any decision that matters with a qualified professional.

Embed this calculator on your website

Copy this code into any page. The calculator appears with the figures currently entered, sizes itself to fit, and a small credit line links back here. Free, no account, no ads inside it, no tracking of your readers. Set your own figures and fixed fields; Personal removes the credit line, sets your colour and shows you which sites use it.

Preview

See something wrong? Report a problem with this calculator

Frequently asked questions

How to calculate Karnaugh map?

Builds the Gray-coded Karnaugh map for 2 to 6 variables and minimises the function to its simplest sum-of-products and product-of-sums form, listing prime and essential prime implicants. Open “How this is worked out” beside the result to see each step for your own figures.

Is there a Karnaugh map solver available?

Builds the Gray-coded Karnaugh map for 2 to 6 variables and minimises the function to its simplest sum-of-products and product-of-sums form, listing prime and essential prime implicants. Put your own figures in above and the working updates beside the result. For scale, the default figures on this page give B'C' + B'D' + A'C'D.

What information do I need for the karnaugh mapping calculator?

You need Describe the function by, Variables, Minterms (cells that are 1), Don't-care cells, Truth-table output column and Boolean expression. The page opens with default figures that give minimal sum of products of B'C' + B'D' + A'C'D, so you can see the scale before entering your own.

What does this karnaugh mapping calculator show?

It shows Minimal sum of products, Minimal product of sums, Terms (AND gates), Literals (gate inputs), Prime implicants, Essential prime implicants, Groups in the chosen cover and Karnaugh map, with the working and any warnings for your entries.

Can I check how the karnaugh mapping calculator result was calculated?

Yes. The “How this is worked out” section shows the calculation steps, and the sources section identifies the references used for the method.

Related calculators

View all related calculators11 more