Boolean and K-Map Simplifier

Give the minterms (and don't-cares) of a function and get its simplest sum of products.

How it works

Give the number of variables and the minterms where the function is 1. Add don't-care terms if some inputs never happen. The tool uses the Quine-McCluskey method to find all prime implicants and then picks the smallest cover.

The formula

Minterm number = binary value of the inputs, with A as the top bit.
Two terms that differ in one bit merge into one term with that bit dropped.

Worked example

With 3 variables, minterms 1, 3, 5, 7 are all the inputs where C is 1, so the answer is C.

Good to know

Common questions

Is this the same as a K-map?
It gives the same result. A K-map is the picture, this is the algorithm.
Does it give product of sums?
No, only sum of products.
Why a limit of 5 variables?
Beyond that the search gets slow in a browser and hand K-maps stop being practical.

More in Math, Science & Engineering.