A truth table shows every possible combination of truth values for a statement and tells you whether the final result is true or false in each case. If you want to understand AND, OR, NOT, XOR, or implication quickly, a truth table is usually the clearest starting point.

The main operators on this page follow a small set of exact rules:

  • pqp \land q is true only if both are true.
  • pqp \lor q is true if at least one is true.
  • ¬p\lnot p flips the truth value of pp.
  • pqp \oplus q is true if exactly one of them is true.
  • pqp \to q is false only when pp is true and qq is false.

Truth Table for AND, OR, NOT, XOR, and Implication

For two statements pp and qq, there are four possible input rows: TTTT, TFTF, FTFT, and FFFF. A complete truth table has to include all four.

pp qq pqp \land q pqp \lor q pqp \oplus q pqp \to q ¬p\lnot p
T T T T F T F
T F F T T F F
F T F T T T T
F F F F F T T

If you remember only one truth table, this is the one to keep. Most introductory logic questions reduce to reading one of these columns correctly.

What Each Logic Symbol Means

AND Means Both

pqp \land q is true only when both inputs are true.

That is why the AND column has exactly one true row.

OR Means At Least One

pqp \lor q is true when one input is true or when both are true.

This is the inclusive meaning of OR. If a problem wants "one or the other, but not both," it should use XOR instead.

NOT Reverses One Statement

¬p\lnot p changes true to false and false to true.

NOT is different from the other operators here because it acts on one statement, not two statements.

XOR Means Exactly One

pqp \oplus q is true when the inputs differ.

So the middle two rows are true, and the rows where pp and qq match are false.

Implication Has One False Case

pqp \to q is false only when pp is true and qq is false.

That rule can feel strange at first because implication in logic does not mean "causes" in everyday language. It means the claim "if pp, then qq" fails only when pp happens but qq does not.

Worked Example: Why pqp \to q Is Only False Once

Suppose pp means "The number is divisible by 4" and qq means "The number is even."

Consider the statement

pqp \to q

This means: if a number is divisible by 44, then it is even.

Now read the four logical cases:

  • If pp is true and qq is true, the statement works.
  • If pp is true and qq is false, the statement fails.
  • If pp is false, the implication counts as true in propositional logic, because the statement made no promise about cases where the condition did not happen.

That is why pqp \to q has exactly one false row. In this example, the claim is actually true for every real number because every multiple of 44 is even.

Common Truth Table Mistakes

  • Mixing up OR and XOR. Plain OR includes the case where both inputs are true.
  • Reading implication as everyday causation. In a truth table, pqp \to q is defined by its rows, not by a story about cause and effect.
  • Forgetting to list every input combination. With two statements, there must be four rows.
  • Treating NOT as a two-input operator. It acts on one statement only.
  • Assuming truth tables are only for philosophy or proofs. The same logic appears in Boolean algebra and digital systems.

When Truth Tables Are Used

Truth tables are used to define logical connectives, test whether two statements are equivalent, check whether an argument form is valid, and read Boolean expressions in computing.

They are especially useful when symbolic rules feel abstract. A table forces every case into view, which makes hidden mistakes much easier to catch.

Try a Similar Truth Table

Build the table for

(pq)¬q(p \lor q) \land \lnot q

Then compare its final column with the column for p¬qp \land \lnot q. If you want to explore another case after that, try the same process with pqp \oplus q and see how it differs from plain OR.

Need help with a problem?

Upload your question and get a verified, step-by-step solution in seconds.

Open GPAI Solver →