Minterms, Maxterms, SOP and POS
Updated 2026-11-22 · 6 min read
Every Boolean function can be written in two standard ways: as an OR of minterms (sum of products) or as an AND of maxterms (product of sums). This page explains both, the Σ and Π shorthand, and how to move between them.
Minterms and maxterms of three variables
| Row | A B C | Minterm (1 only here) | Maxterm (0 only here) |
|---|---|---|---|
| 0 | 0 0 0 | m0 = A'B'C' | M0 = A + B + C |
| 1 | 0 0 1 | m1 = A'B'C | M1 = A + B + C' |
| 2 | 0 1 0 | m2 = A'BC' | M2 = A + B' + C |
| 3 | 0 1 1 | m3 = A'BC | M3 = A + B' + C' |
| 4 | 1 0 0 | m4 = AB'C' | M4 = A' + B + C |
| 5 | 1 0 1 | m5 = AB'C | M5 = A' + B + C' |
| 6 | 1 1 0 | m6 = ABC' | M6 = A' + B' + C |
| 7 | 1 1 1 | m7 = ABC | M7 = A' + B' + C' |
Rule of thumb: in a minterm a variable is complemented where its bit is 0; in a maxterm it is complemented where its bit is 1. With A as the most significant bit, the row number is the binary value of ABC.
Sum of products (SOP)
Take the rows where F = 1 and OR their minterms. For F = Σm(1, 2, 3, 4, 6):
F = A′B′C + A′BC′ + A′BC + AB′C′ + ABC′
This is the canonical SOP. Simplifying it (for example with a K-map) gives a minimal SOP with fewer and shorter terms: here AC′ + A′B + A′C or AC′ + A′C + BC′, two equally short answers.
Product of sums (POS)
Take the rows where F = 0 and AND their maxterms. The same function is 0 in rows 0, 5 and 7:
F = ΠM(0, 5, 7) = (A + B + C)(A′ + B + C′)(A′ + B′ + C′)
Its minimal POS is (A + B + C)(A′ + C′): the two maxterms M5 and M7 merge because they differ only in B.
Σ and Π notation
- F = Σm(1, 2, 3, 4, 6) reads “F is the sum of minterms 1, 2, 3, 4 and 6.”
- F = ΠM(0, 5, 7) reads “F is the product of maxterms 0, 5 and 7.” It is the same function: the two lists are complementary.
- Don’t-cares are added with d: F = Σm(1, 3) + d(5), or with D in a maxterm list: ΠM(0, 2, 4, 6, 7) · D(5).
- The complement F′ swaps the roles: F′ = Σm(0, 5, 7) = ΠM(1, 2, 3, 4, 6).
Converting between forms
- Expression → Σm: evaluate the expression on every row, or expand each term with the missing variables (A′B = A′B(C + C′) = A′BC + A′BC′ = m3 + m2). The truth table generator lists the minterms for you.
- Σm → ΠM: take the complement set of row numbers.
- Canonical → minimal: group adjacent minterms on a K-map, or run Quine–McCluskey.
- SOP ↔ POS directly: F = (F′)′; write the SOP of F′ from the 0s, then apply De Morgan’s law to turn it into a POS of F.
Frequently asked questions
What is the difference between a minterm and a maxterm?
A minterm is an AND of all variables (each plain or complemented) that is 1 for exactly one input row. A maxterm is an OR of all variables that is 0 for exactly one input row. Minterm mi and maxterm Mi are complements of each other.
How do you convert Σm to ΠM?
List the row numbers that are missing from the minterm list (and are not don’t-cares). For three variables, Σm(1, 2, 3, 4, 6) = ΠM(0, 5, 7).
Is SOP or POS better?
Neither in general: they describe the same function, and either can be shorter. SOP maps naturally onto AND–OR or NAND–NAND logic, POS onto OR–AND or NOR–NOR. Designers minimize both and pick the cheaper one.
What does canonical mean?
A canonical form is unique for a given function and variable order: the canonical SOP lists every minterm, the canonical POS every maxterm. Minimal forms are shorter but not always unique.
Related tools and guides
- Truth table generator Generate the truth table of any Boolean expression (AND, OR, NOT, XOR, NAND, NOR, →, ↔) with step columns, minterms, SOP/POS and CSV or LaTeX export.
- K-map solver Free K-map solver for 2 to 6 variables: enter cells, minterms, a truth table or an expression, add don't-cares, and get every minimal SOP and POS with steps.
- Boolean algebra laws Every Boolean algebra law in one table (identity, complement, De Morgan, absorption, consensus…) with dual forms, truth-table proofs and examples.
- How to solve a K-map How to solve a Karnaugh map in 6 steps, with worked 3- and 4-variable examples, a cyclic map with two answers, and the mistakes that cost marks.