Karnaugh Map (K-Map) Solver
Enter the minterms (and don't-cares) of a 2- to 6-variable function to get the minimal sum-of-products expression and the K-map grid.
Enter the minterms (and don't-cares) of a 2- to 6-variable function to get the minimal sum-of-products expression and the K-map grid.
Results
About This Calculator
Group adjacent 1s (wrapping around the edges) in rectangles of 1, 2, 4, 8 … cells; each group becomes one product term. Don't-cares (X) may be included if they make groups larger.
Example
Example: Σm(0,1,2,5,6,7,8,9,10,14) = B'C' + CD' + A'BD.
Assumptions
Variables named A (most significant) to F; Gray-code ordering on the map.
Frequently Asked Questions
Why Gray code on a K-map?
Neighbouring cells differ in exactly one variable, so groups simplify.
Related Calculators
About the Author

Professional SEO, Digital Marketer Specialist
I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist
View full profile