Canonical SOP (Σm)
OR of full minterms, e.g. A′BC + AB′C + ABC′ + ABC. Maps directly to a decoder with an OR gate.
Σm canonical SOP, ΠM canonical POS and a minimal form from minterms or a truth table.
Enter your values below to get started.
Row number m reads the variables as a binary number: for A B C, row 5 is 101 (A = 1, B = 0, C = 1).
Don't cares (X) never appear in the canonical SOP, yet they help the minimal form.
The K-map tab colors each group of the minimal SOP for 2 to 4 variables.
Type your own names, e.g. X Y Z, to match a textbook.
A canonical sum calculator writes a Boolean function as its canonical sum of products (SOP): the OR of 1 minterm for every truth-table row where the function equals 1. Enter minterm numbers (with optional don't cares) or the output column of a truth table for 2 to 6 variables to get the Σm notation, the full canonical SOP, the canonical product of sums (POS) in ΠM notation, a minimal SOP and POS from the Quine–McCluskey method, the truth table and a Karnaugh map (K-map).
A canonical sum, or canonical sum of products (SOP), is a Boolean expression written as the OR of minterms, one minterm for each input row where the function is 1, with every variable in every term. The 3-input majority function F = 1 on rows 3, 5, 6 and 7, so its canonical sum is F = A′BC + AB′C + ABC′ + ABC = Σm(3, 5, 6, 7).
The form is called the disjunctive normal form (DNF) with full minterms, or the sum of minterms. It follows from George Boole's algebra (1854) and Claude Shannon's 1938 thesis, which showed that any switching circuit equals an expression in this form. Each Boolean function of n variables has exactly 1 canonical sum, which makes the canonical sum a unique fingerprint of the function.
The canonical sum calculator lists the rows where F = 1, writes 1 minterm per row, joins them with + for the canonical SOP, does the same with the 0 rows for the canonical POS, and simplifies with the Quine–McCluskey method. Willard Quine (1952) and Edward McCluskey (1956) designed the method as a tabular version of the K-map that works for any number of variables.
From minterm numbers and don't cares, or from the truth-table output column (0, 1, X).
1 rows → minterms (Σm); 0 rows → maxterms (ΠM).
Terms that differ in 1 bit merge (010 + 011 → 01–) until only prime implicants remain.
Primes that alone cover a minterm come first, then the smallest set of the rest that covers every minterm.
The canonical sum formula is F = Σ mi over every row i where F(i) = 1, where minterm mi uses each variable plain if its bit is 1 and complemented if its bit is 0. The canonical product uses maxterms Mi over the 0 rows with the opposite rule.
For 3 variables, row 5 = 101, so m5 = AB′C and M5 = A′ + B + C′. A function with k minterms out of 2n rows has 2n − k maxterms: the majority function has 4 of each, F = ΠM(0, 1, 2, 4).
There are 4 forms of the same Boolean function: canonical SOP, canonical POS, minimal SOP and minimal POS. The canonical forms are unique and use every variable in every term; the minimal forms use the fewest literals and are the ones built as circuits.
OR of full minterms, e.g. A′BC + AB′C + ABC′ + ABC. Maps directly to a decoder with an OR gate.
AND of full maxterms, e.g. (A + B + C)(A + B + C′)(A + B′ + C)(A′ + B + C) for the majority function.
Fewest product terms and literals: majority = AB + AC + BC (6 literals instead of 12). 2-level AND–OR or NAND–NAND logic.
Fewest sum terms: majority = (A + B)(A + C)(B + C). 2-level OR–AND or NOR–NOR logic.
To find the canonical sum by hand, write the truth table, mark the rows where F = 1, turn each marked row into a product using each variable plain for 1 and primed for 0, and OR the products. For F(A, B, C) = 1 on rows 3, 5, 6, 7:
A Karnaugh map simplifies a canonical sum by placing its minterms in a grid ordered in Gray code, so adjacent cells differ in 1 variable and groups of 1, 2, 4 or 8 cells collapse into 1 shorter product. Maurice Karnaugh introduced the map at Bell Labs in 1953.
A group of 2k cells removes k variables. On 4 variables, the 4 corner cells m0, m2, m8 and m10 form 1 group, B′D′: the map wraps around at its edges. Don't cares (X) may join a group to make it larger, and stay out of the canonical sum.
To use the canonical sum calculator, pick the number of variables, enter either the minterm list (with optional don't cares) or the truth-table output column, and press Calculate. The result shows the Σm form with the canonical and minimal expressions; the tabs show the steps, the K-map and the full truth table.
2 to 6 variables (4 to 64 truth-table rows).
Minterm list such as 3, 5, 6, 7, or a truth column such as 00010111.
Optional: rows whose output does not matter, e.g. 10-15 for BCD.
Canonical SOP, ΠM, minimal SOP and minimal POS, with literal counts.
Canonical sums turn any truth table into a circuit, and minimization makes that circuit small. There are 5 common uses:
Minterm lists with their canonical SOP and minimal form.
| Function | Canonical SOP | Minimal SOP | Calculator |
|---|---|---|---|
| Σm(3, 5, 6, 7) | A′BC + AB′C + ABC′ + ABC | BC + AC + AB | |
| Σm(1, 3, 5, 7) | A′B′C + A′BC + AB′C + ABC | C | |
| Σm(0, 1, 2, 5, 6, 7) | 6 minterms | A′B′ + BC′ + AC | |
| Σm(0, 2, 8, 10, 13, 15) | 6 minterms of A B C D | B′D′ + ABD | |
| Σm(1, 2, 4, 7) | A′B′C + A′BC′ + AB′C′ + ABC | same (no reduction) | |
| Truth column 0110 | A′B + AB′ | A′B + AB′ (XOR) | |
| Σm(0, 2, 3, 5, 6, 7, 8, 9) + d(10–15) | 8 minterms | C + A + B′D′ + BD |
Try each one, then reveal the answer or solve it in the calculator.
Write the canonical sum of F(A, B) = Σm(0, 3).
Write the canonical product (ΠM) of F(A, B, C) = Σm(1, 2, 4, 7).
Simplify F(A, B, C) = Σm(0, 1, 2, 3).
Simplify F(A, B, C, D) = Σm(4, 5, 6, 7, 12, 13, 14, 15).
A truth table has the output column 11101000 (rows 0–7). Give Σm and the minimal SOP.
Simplify F = Σm(1, 3, 7, 11, 15) + d(0, 2, 5) with 4 variables.
Discover 67 free sum calculators across different categories. Find the right calculator for your needs.
Try a different name or choose another category.
A canonical sum calculator is an online tool that converts a minterm list or truth table into the canonical sum of products (Σm). This canonical sum calculator returns the canonical SOP and POS, the minimal SOP and POS, the truth table and a K-map for 2 to 6 variables.
Canonical SOP is the OR of minterms for the rows where F = 1, and canonical POS is the AND of maxterms for the rows where F = 0. Both describe the same function: Σm(3, 5, 6, 7) = ΠM(0, 1, 2, 4).
Σm means "sum of minterms": Σm(3, 5, 6, 7) is shorthand for m3 + m5 + m6 + m7, the OR of the minterms for rows 3, 5, 6 and 7.
No, the canonical sum is usually not the simplest form. Every term holds every variable, so the majority function needs 12 literals in canonical SOP and 6 in its minimal SOP, AB + AC + BC.
A function of n variables has 2ⁿ possible minterms, 1 per truth-table row: 8 for 3 variables and 16 for 4 variables. The canonical sum includes only those where F = 1.
Yes, the canonical sum calculator handles don't cares. Enter them in the don't-care field or as X in the truth column; they stay out of Σm and help shrink the minimal form.
Multiply each product term by (x + x′) for every missing variable x, expand, and remove repeated terms. A + B′C over A, B, C expands to Σm(1, 4, 5, 6, 7).
The full adder's sum output is Σm(1, 2, 4, 7) = A′B′C + A′BC′ + AB′C′ + ABC, and its carry output is Σm(3, 5, 6, 7), the majority function.
A canonical sum writes a Boolean function as the OR of 1 full minterm per true row, and the canonical sum calculator builds that Σm form together with the canonical POS and the minimal SOP and POS. Use the canonical form to describe or compare functions exactly, and the minimal form with the K-map to design the smallest 2-level circuit.
Not sure which form to use? Answer the questions below.