Logic Converters

Versión en español →

Propositional logic · Free · No sign-up

Logic calculators and converters online

All of UniSolvers' logic tools in one place. Type a formula and each calculator gives you the answer with every step shown and the name of the rule used at each one, so you can check your exercises and see exactly where you went wrong.

Which calculator do I need for my exercise?

The quickest way to decide is to look at what the question asks for. This table matches typical exam wording with the tool that solves it:

If the question says…Use
"Determine whether the formula is a tautology, a contradiction or a contingency"Truth table generator
"Check whether these two formulas are equivalent"Truth table generator (compare the last column of each)
"Write in conjunctive normal form" / "convert to clause form"CNF converter
"Write in disjunctive normal form" / "express as a sum of products"DNF converter
"Prove, using rules of inference, that the conclusion follows from the premises"Rules of inference calculator
"Is this argument valid?"Rules of inference calculator (it gives the proof or a counterexample)

If you are torn between two, just try both: many exercises can be solved more than one way, and seeing the same problem worked out with two methods is one of the best ways to understand both.

The usual order to study it in

If you are just starting the course, this is the typical path through the syllabus. Each step builds on the previous one, so it pays to follow it roughly in this order:

  1. Connectives and truth tables. Learn what each connective does and evaluate a formula in every possible case.
  2. Logical equivalences and normal forms. Rewrite formulas without changing their meaning until they are in CNF or DNF.
  3. Rules of inference. Derive a conclusion from premises with modus ponens, modus tollens and the like (try it with the rules of inference calculator).
  4. Resolution and refutation. Turn everything into clauses and prove things mechanically, the way computers do it.
  5. Predicate logic. Add quantifiers and the four rules for removing and reintroducing them.

The symbols you will come across

Every textbook and every lecturer uses slightly different notation. These are the symbols used in the calculators, with their names and how to read them:

SymbolNameRead asAlso written as
¬Negation"not p"~ !
∧Conjunction"p and q"& ·
∨Disjunction"p or q"+
→Implication"if p, then q"⇒ ⊃
↔Biconditional"p if and only if q"⇔ ≡
⊕Exclusive or (XOR)"either p or q, but not both"⊻
⊤ / ⊥True / false"top" / "bottom"1 / 0, T / F

Frequently asked questions

Are the calculators free?

Yes. They are all free, run directly in your browser, and you don't need to sign up or install anything. They work just as well on a phone as on a computer.

Do they show the working step by step, or just the answer?

Step by step. Each calculator shows the whole process and names the rule or equivalence applied on every line, which is exactly what you are asked for in an exam. They also all include at least one fully explained worked example.

What is the difference between CNF and DNF?

They are mirror images. CNF is an "AND of ORs": a conjunction of clauses, each one a disjunction of literals. DNF is an "OR of ANDs": a disjunction of terms, each one a conjunction of literals. To get CNF you distribute ∨ over ∧; to get DNF, ∧ over ∨.

Can I use them to check my homework?

That is exactly what they are built for. The most useful approach is to solve the exercise yourself first and then compare with the calculator: if the results don't match, the steps show you the exact line where the two solutions part ways.

Go up