De Morgan Law Calculator

Test complements, conjunctions, and disjunctions with guided outputs. Compare each side using truth tables instantly. Download results and learn each law step clearly today.

Calculator Inputs

Example Data Table

Case A B Law Left Side Right Side Result
1 True False ¬(A ∧ B) = ¬A ∨ ¬B True True Equivalent
2 True True ¬(A ∨ B) = ¬A ∧ ¬B False False Equivalent
3 {1, 2, 3} {3, 4, 5} (A ∩ B)′ = A′ ∪ B′ {1, 2, 4, 5, 6} {1, 2, 4, 5, 6} Equivalent

Formula Used

The Boolean formulas are ¬(A ∧ B) = ¬A ∨ ¬B and ¬(A ∨ B) = ¬A ∧ ¬B. Three variable forms extend the same rule across A, B, and C. The set formulas are (A ∩ B)′ = A′ ∪ B′ and (A ∪ B)′ = A′ ∩ B′.

How to Use This Calculator

Choose Boolean Logic for true and false expressions. Choose Set Theory for universe based complements. Select the law, enter values, and press Calculate. The result appears above the form. Use the CSV or PDF buttons to export the same submitted data.

Understanding De Morgan Law

De Morgan law explains how a negation moves across AND or OR. It is a core rule in logic, programming, digital circuits, and set theory. The rule says that not A and B equals not A or not B. It also says that not A or B equals not A and not B. This calculator shows both sides together, so you can see why the statements match.

Why This Rule Matters

The law helps simplify hard logic expressions. It also helps convert one circuit style into another. A programmer can use it to rewrite conditions with cleaner checks. A student can use it to test a proof before writing final steps. A designer can use it to replace a NAND structure with an OR of complements, or replace a NOR structure with an AND of complements. The idea is simple, but the effect is powerful.

Boolean and Set Support

This tool supports two common views. The Boolean view uses true and false values for A, B, and C. It compares the left expression with the transformed right expression. The set view uses a universe and two sets. It compares the complement of an intersection or union with the matching operation on complements. Both methods show the same pattern in different language.

Truth Table Use

A truth table is the strongest check for a small logic statement. It lists every possible value pattern. Then it evaluates each side. If every row gives the same answer, the two statements are equivalent. The table in this page can be exported for notes, reports, or classroom work.

Practical Tips

Use two variable mode for basic lessons. Use three variable mode for longer proofs. Keep set items short and unique. Enter comma separated values for clean exports. Review the step explanation before copying results. The calculator does not replace understanding. It gives a clear check, a formula view, and downloadable evidence. That makes it useful for learners, tutors, engineers, and anyone handling logical decisions.

Common Mistakes

Do not change both operators in the same direction. Negation flips AND to OR, and OR to AND. Also complement every included variable. Missing one complement creates a different statement during careful review sessions later.

FAQs

What is De Morgan law?

It is a logic rule that moves negation across AND or OR. The operator flips, and each variable becomes complemented.

Can this calculator check truth tables?

Yes. Boolean mode creates a complete truth table for the selected two variable or three variable rule.

Does the tool support set theory?

Yes. Set mode compares complements of unions or intersections against operations performed on complemented sets.

What should I enter in the universe set?

Enter every possible item that may appear in A or B. Separate each item with a comma or space.

Why does the operator change?

Negating a grouped expression reverses the connector. AND becomes OR, and OR becomes AND.

Can I export my result?

Yes. Use the CSV button for spreadsheet data. Use the PDF button for a readable report.

Is three variable logic available?

Yes. Select a three variable law and choose values for A, B, and C before calculating.

Why are both sides equivalent?

Each row gives the same final value because the transformation preserves meaning while changing the expression shape.

Related Calculators

Paver Sand Bedding Calculator (depth-based)Paver Edge Restraint Length & Cost CalculatorPaver Sealer Quantity & Cost CalculatorExcavation Hauling Loads Calculator (truck loads)Soil Disposal Fee CalculatorSite Leveling Cost CalculatorCompaction Passes Time & Cost CalculatorPlate Compactor Rental Cost CalculatorGravel Volume Calculator (yards/tons)Gravel Weight Calculator (by material type)

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.