Karnaugh Map and Boolean Expression Simplifier
Minimise a Boolean function of 2 to 5 variables from its minterms and see the Karnaugh map.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Step 1: Open Karnaugh Map and Boolean Expression Simplifier and add your input
Type your numbers or text, add your file, or pick the options you need. Nothing is uploaded: everything stays in your browser.
- 2Step 2: What Karnaugh Map and Boolean Expression Simplifier does
Minimise a Boolean function of 2 to 5 variables from its minterms and see the Karnaugh map.
- 3Step 3: Read the result and compare
The result appears at once. Change one value to see how the answer moves, then keep the figure that fits your case.
- 4Step 4: Copy or save it
Copy the result or download it. For an important decision, confirm it with the official source or an adviser.
About this tool
Choose the number of variables and list the minterms (rows where the output is 1) and optional don't-cares. The calculator finds all prime implicants with the Quine–McCluskey method, picks a minimal sum-of-products, and draws the Karnaugh map for up to 4 variables.
Method
Minterms are numbered by treating A as the most significant bit. Quine–McCluskey repeatedly merges terms that differ in one bit to get the prime implicants. Essential prime implicants (the only cover of some minterm) are chosen first, then the cheapest set covering the rest (fewest terms, then fewest literals).
Reading the result
A′ means NOT A. A product such as AB′C is an AND of literals and + is OR. The map uses Gray code order so neighbouring cells differ in one variable; X marks don't-cares. Separate numbers with spaces or commas.
Worked example
Minterms 0 1 2 5 6 7 8 9 10 14 with 4 variables simplify to B′C′ + CD′ + A′BD (3 terms, 2 essential prime implicants of 6).
Tips for best results
Check every box before you rely on a result, because one wrong digit changes the whole answer. Use the exact figures from your payslip, bill, certificate or contract, and keep a note of the date you calculated. Rates, thresholds and rules change from time to time, so for tax, fees and legal matters treat the output as an estimate and confirm with the official source named on this page. You can run as many scenarios as you like; nothing is saved or sent, and refreshing the page clears the boxes.
Quick facts
- Category: Math & Science
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in many languages.
- Content last reviewed:
Frequently asked questions
What is a don't-care?
An input combination that never occurs, so the output can be 1 or 0 whichever simplifies best.
How are minterms numbered?
As binary numbers with A as the leftmost bit.
Is the result unique?
Not always; several minimal covers can exist and one is shown.
Why no map for 5 variables?
The two-dimensional map is only drawn up to 4 variables; the algebra still works.
