Enter a Boolean function below (as a truth table, as a function, or as a list of minterms) and the Quine-McCluskey algorithm reduces it to a minimal sum-of-products expression, with every merging round shown step by step. Tick "Allow XOR/XNOR minimization" to use an extension that additionally searches for exclusive-or groupings for possibly better simplifications.

Click an output cell to cycle it through 0, 1, and × (don't-care).

Try a worked example

Click any of these to load it into the solver above.