Karnaugh maps
Group adjacent cells and follow the simplification.
Explore Boolean simplification with interactive Karnaugh maps, step-by-step Quine–McCluskey, truth tables and digital code converters.
Group adjacent cells and follow the simplification.
See binary groups, combination rounds and prime implicants.
Explore number systems, digital codes and logic equations.
Save your account securely and access LogicLab on any device.
Already registered?
Passwords are hashed on the server. Never share your password.
Explore Boolean functions with visual grouping and clear, step-by-step reasoning.
DIGITAL LOGIC · PRACTICE TOOL
Build a Karnaugh map from minterms or maxterms, inspect each group, and follow how the simplified Boolean expression is obtained.
Enter a Boolean function and explore the K-map, group selections, truth table, and final minimized expression.
SOP mode: enter the minterm indices (the input combinations where F = 1).
A gate-level view of the expression generated from your entered minterms or maxterms.
The function is minimized by grouping adjacent 1s and removing variables that change within a group.
If multiple equally minimal solutions exist, this tool displays one valid minimum-cost cover.
A compact cell view of your function. Values are arranged in Gray-code order for easier manual grouping.
Groups are chosen to cover every required cell using the fewest groups, then the fewest literals. Select any group to highlight it on the map.
Enter a function here independently. These inputs are separate from the K-map solver, so you can study both methods with different examples.
Choose the variable count and expression format, then enter the required indices and optional don't-care terms. This form works independently of the K-map solver.
Quine–McCluskey is a systematic method for minimizing Boolean functions. It is especially useful when you want a repeatable tabular process instead of visually grouping cells.
Write each entered index using exactly the selected number of variables. Keep permitted don't-care terms in the same list.
Place terms into groups according to how many 1s appear in their binary pattern. Only neighboring groups need comparison.
Combine two patterns only when they differ in exactly one bit. Replace that differing bit with a dash (–).
Group and compare the newly combined patterns again until no more combinations can be made.
Any valid term that cannot be combined further becomes a prime implicant. It represents a product term covering multiple input combinations.
List prime implicants as rows and required minterms/maxterms as columns. A mark shows which required index each implicant covers.
Choose essential implicants first, then select the remaining implicants needed to cover every required index with a low-cost expression.
Translate each selected binary pattern into a Boolean term. A dash means that variable is eliminated because it changes within the group.
1–0 means A = 1, C = 0, and B can be either value. Its SOP term is A C̅.Enter the function in the form above and run the algorithm. The result below includes the generated truth table, circuit diagram, combination rounds, prime-implicant chart and selected cover.
Enter minterms or maxterms above to see every Quine–McCluskey calculation step.
Switch between number bases and common digital codes without installing anything.
Gray code keeps the most significant bit and XORs adjacent binary bits.
Choose a converter below to see the bit-by-bit Boolean equations used to design its logic circuit.
Reference codes shown here are 8421 BCD, Gray code and Excess-3.