TSToolSphere

Karnaugh Map Solver

engineering100% Client-Side

Click cells on a 2, 3, or 4-variable Karnaugh map to get the minimized sum-of-products expression.

Truth Table Generator

Use single-letter variables (A-Z). Operators: & or * (AND), | or + (OR), ^ (XOR), ! or ~ (NOT). Parentheses supported. Adjacent letters imply AND (e.g. AB means A AND B).

ABCResult
0001
0010
0101
0110
1001
1010
1101
1111

About Karnaugh Map Solver

Karnaugh Map Solver

An interactive Karnaugh map for 2, 3, or 4 variables — click cells to define which input combinations should produce a true output, and the tool computes the minimal sum-of-products boolean expression using the Quine-McCluskey algorithm (prime implicant generation plus essential-implicant selection), the same systematic method a K-map's visual grouping approximates by eye.

Karnaugh maps are a standard technique in digital logic design for simplifying boolean expressions before implementing them as circuits — fewer terms means fewer logic gates. Doing this minimization by hand requires spotting the largest valid groupings of adjacent 1-cells, which gets error-prone past 3 variables. This tool applies the same underlying algorithm computationally so the result is always minimal and correct.

Typical use cases: checking a digital logic homework K-map by hand, minimizing a boolean function before hardware implementation, or exploring how different input patterns simplify differently.

Click cells to toggle them, and the minimized expression updates immediately below the map.

Educational Guides & Tutorials

Frequently Asked Questions

Help Us Improve Karnaugh Map Solver

Did you find this tool helpful? Tell us how we can make it even better, or report a bug or request a new feature in under 1 minute.

Submit Feedback