Karnaugh Map (K-Map) Solver — Visual Boolean Minimization
Our Karnaugh Map (K-Map) Solver takes a list of minterms for 2, 3, or 4 boolean variables, lays them out on a proper Gray-coded K-map grid, and applies Quine-McCluskey minimization behind the scenes to group adjacent 1s into the fewest possible prime implicants — the exact visual method taught in digital logic courses, just automated and error-free.
Quick Answer
Enter the minterms where your output is 1 for 2 to 4 variables, and this tool draws the Gray-coded K-map grid, highlights the groupings, and reports the minimized sum-of-products expression.
Enter the decimal minterm indices where the output is 1, e.g. 0,2,5,6,7,8,10,13,14,15.
How to Use the Karnaugh Map (K-Map) Solver — 2 to 4 Variables Online
- 1
Choose the number of variables (2, 3, or 4).
- 2
Enter the minterms (decimal indices where the output is 1) as a comma-separated list.
- 3
Click 'Solve' to see the K-map grid with groupings highlighted and the minimized expression.
Why Use Karnaugh Map (K-Map) Solver — 2 to 4 Variables Online?
A Karnaugh map arranges a truth table's outputs into a grid where adjacent cells differ in only one variable, so you can visually spot groups of 1s and read off a minimal sum-of-products expression — a technique introduced by Maurice Karnaugh in 1953 as a faster alternative to purely algebraic simplification for small numbers of variables. This solver builds that same grid using proper Gray-code row and column ordering, and pairs it with the same Quine-McCluskey minimization used internally by the site's Boolean Algebra Simplifier, so the grouping you see always matches a provably minimal or near-minimal expression rather than a manual guess.
Frequently Asked Questions
Related Tools
Boolean Algebra Simplifier — Quine-McCluskey Minimizer Online
Simplify any boolean expression into its minimal sum-of-products form using the Quine-McCluskey algorithm. Free calculator supporting up to 6 variables with prime implicants shown.
Truth Table Generator — Boolean Logic Expressions Online
Generate truth tables for any boolean logic expression — AND, OR, NOT, XOR, NAND, NOR, and conditional operators. Free calculator with automatic tautology and contradiction detection.
Bitwise Calculator — AND, OR, XOR, NOT, Bit Shifts Online
Perform bitwise operations — AND, OR, XOR, NOT, left shift, and right shift — on integers instantly. Free calculator with an interactive visual bit diagram for every operation.