Boolean Algebra Simplifier
Estimate Boolean expression simplification from sum-of-products form. Calculates term and literal reduction using grouping heuristics.
About this calculator
This calculator estimates how far a sum-of-products Boolean expression could shrink under Quine-McCluskey-style grouping, without running the real Quine-McCluskey algorithm on an actual truth table. When the Minterms Bitmask is left at 0, it has no idea which specific minterms your expression actually contains — it simply substitutes the Number of Minterms count in their place and then greedily assumes the largest possible power-of-two groupings are achievable, working from the biggest group size down to the smallest. That's an optimistic best case, not a guarantee: a real expression whose active minterms don't happen to form neat power-of-two clusters would simplify by less than this estimate suggests, sometimes considerably less. This page never accounts for the actual adjacency of minterms, on either path: the Minterms Bitmask is read in exactly one place, a bit-count loop that produces activeMinterms, and the specific bit positions that are set are never inspected again after that — the greedy grouping loop that follows consumes only the resulting count, identically whether that count came from the bitmask or was supplied directly as a bare Number of Minterms.
Supplying the bitmask changes nothing about how adjacency is treated; it's just an alternate way to specify the same single number. The greedy grouping loop also still doesn't verify that a claimed reduction produces a functionally correct simplified expression, only a term and literal count. Nudging Number of Variables or Number of Minterms by a small percentage at the calculator's defaults doesn't visibly change the result at all, purely because both are small whole numbers — 3 and 4 — that a ten percent wiggle isn't large enough to round past, not because either input is actually unimportant to the estimate.
Inputs
Results
Simplified Terms
1
Term Reduction
75%
How to Use This Calculator
- Enter the number of Boolean variables in your expression (2 to 5).
- Enter the number of minterms (product terms) in the sum-of-products expression, or optionally set a Minterms Bitmask to specify exactly which minterms are present.
- The calculator estimates how many terms and literals the simplified expression would require, using grouping heuristics.
- Review the Term Reduction and Literal Reduction percentages to see how much the expression shrinks.
- Compare Original Terms and Literals against Simplified Terms and Literals to gauge the simplification.
What each input means
- Number of Variables
- Number of Boolean variables in the expression (2-5)
- Number of Minterms
- Number of minterms (product terms) in the sum-of-products expression
- Minterms Bitmask (optional)
- Bitmask encoding which minterms are present (0 uses termCount instead)
How this is calculated
Worked example, using the default values
- Identify Input ParametersNumber of Variables = 3, Number of Minterms = 4, Minterms Bitmask (optional) = 0 = 3 input(s) provided
- Calculate Simplified TermsSimplified Terms1 = 1
- Calculate Term ReductionTerm Reduction75 = 75
- Calculate Original TermsOriginal Terms4 = 4
- Calculate Original LiteralsOriginal Literals12 = 12
Engine last updated . Checked against 6 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.
Frequently Asked Questions
Does the Term Reduction percentage reflect an actual, verified simplification?
No — it's an optimistic estimate built from a greedy power-of-two grouping heuristic applied to a raw count of active minterms, not a run of the real Quine-McCluskey algorithm against an actual truth table. A genuine Boolean expression whose active minterms aren't arranged into neat power-of-two clusters would typically simplify by less than the number shown here.
What does leaving the Minterms Bitmask at 0 actually do?
With the bitmask at 0, the calculator falls back to treating the Number of Minterms field as the count of active terms. Note that setting a nonzero bitmask doesn't buy you any positional analysis either — the bitmask is only ever used to count how many bits are set (that count becomes activeMinterms), and those specific bit positions are discarded immediately afterward. Either way, the calculator then assumes the most favorable grouping arrangement possible for that count, without checking any real adjacency between the minterms.
Why doesn't nudging Number of Variables slightly change the estimate?
Number of Variables is rounded to the nearest whole number before it's used anywhere in the calculation, and a small percentage nudge on a value as low as 3 isn't large enough to cross into rounding to 2 or 4. The variable count absolutely does matter to the result — it sets the entire range of possible minterms — it just isn't visible to a nudge this small.
What happens if I set Number of Minterms equal to the maximum possible for my Number of Variables?
Once every possible minterm is marked active, the calculator concludes the expression is always true no matter the input values, and reports a Simplified Terms count of exactly 1 — representing the constant "always true" expression rather than any sum of product terms at all.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Truth Table Generator
Generate a complete truth table for propositional logic formulas with 2-4 variables and common logical operations.
Logic & Formal ReasoningLogical Equivalence Checker
Test whether two propositional logic expressions produce identical truth values across all variable assignments.
Logic & Formal ReasoningDecision Matrix Calculator
Compare two options using weighted scoring across 4 criteria. Calculates normalized totals, winner, and sensitivity analysis.
More in Math & Statistics.