Converse, Inverse, and Contrapositive

Suppose someone tells you, "If a number is divisible by 4, then it is even." Is it also true that "if a number is even, then it is divisible by 4"? Your instinct should say no — 6 is even but not divisible by 4. That instinct is really a statement about logical structure, not about numbers. Every conditional statement P→QP \to Q has three close relatives. These are obtained by swapping, negating, or swapping-and-negating its two parts: the converse, the inverse, and the contrapositive. The central fact of this article is this: exactly one of these three relatives is guaranteed to share the truth value of the original statement. This holds always, for every possible truth assignment. Knowing which one is the difference between a valid proof strategy and a classic logical fallacy. This matters because mathematics is full of conditional claims. The temptation to silently swap hypothesis and conclusion is a common source of invalid arguments. This happens both among students and in casual reasoning generally ("if it rains, the ground gets wet," concluded backwards to "the ground is wet, so it rained"). Understanding exactly which transformations of a conditional preserve truth, and why, lets you rewrite a statement into a more convenient logically equivalent form. This can be done without changing its meaning. It also explains, at a purely propositional level, why a technique like Proof by Contrapositive is valid. An analogous argument using the converse or inverse is not valid. The big picture is this: P→QP \to Q, its converse Q→PQ \to P, its inverse ¬P→¬Q\lnot P \to \lnot Q, and its contrapositive ¬Q→¬P\lnot Q \to \lnot P are four distinct-looking sentences. They are built from the same two atomic pieces PP and QQ. They are related by a small symmetry group of swap and negate. Truth tables show that this group action splits the four statements into exactly two Logical Equivalence classes: {P→Q, ¬Q→¬P}\{P \to Q,\ \lnot Q \to \lnot P\} and {Q→P, ¬P→¬Q}\{Q \to P,\ \lnot P \to \lnot Q\}. The converse and the inverse are themselves logically equivalent to each other, being contrapositives of one another. Neither is equivalent to the original conditional in general. This article gives the formal definitions of all four statements. It proves the equivalences and non-equivalences rigorously, via truth tables and via the semantics of the conditional. It works through fully concrete examples with numbers. It also isolates the exact hypothesis-dropping mistake that produces the "affirming the consequent" fallacy. It closes by connecting this material to the proof technique it exists to justify.

Key takeaways
  • A conditional P→QP \to Q has three variants: converse Q→PQ \to P, inverse ¬P→¬Q\lnot P \to \lnot Q, contrapositive ¬Q→¬P\lnot Q \to \lnot P.
  • The contrapositive is always logically equivalent to the original conditional; this is a theorem, provable by truth table.
  • The converse and inverse are, in general, not equivalent to the original — a single counterexample statement (with true hypothesis, false conclusion under the swap) kills the equivalence.
  • The converse and the inverse are logically equivalent to each other, since each is the contrapositive of the other.
  • Confusing a conditional with its converse is a specific fallacy ("affirming the consequent"); confusing it with its inverse is "denying the antecedent."
  • Key idea: among the four forms, truth value is determined only by the unordered pair {\{negated or not on antecedent side, negated or not on consequent side}\} up to the swap-both symmetry — swapping alone breaks equivalence, but swapping-and-negating restores it.

Where this lives today

The contrapositive equivalence is the logical engine behind Proof by Contrapositive, one of the most common indirect proof strategies in analysis, number theory, and topology, used whenever the negated conclusion is easier to work with than the original (e.g. proving "if n2n^2 is even then nn is even" by instead showing "if nn is odd then n2n^2 is odd"). In computer science, the distinction underlies static program verification and type systems, where confusing a precondition-implies-postcondition contract with its converse is a genuine source of bugs, and it appears explicitly in the design of Hoare-logic proof rules. In digital circuit design, De Morgan-style contraposition identities are used to simplify Boolean expressions and to convert AND/OR gate networks into equivalent NAND/NOR implementations without changing the circuit's truth table. In law and everyday argumentation, the converse/inverse fallacies (affirming the consequent, denying the antecedent) are standard case studies in critical-thinking and philosophy-of-argument courses. In probability and statistics, the same asymmetry appears as the distinction between P(evidence∣hypothesis)P(\text{evidence}\mid \text{hypothesis}) and P(hypothesis∣evidence)P(\text{hypothesis}\mid\text{evidence}) — mistaking one for the other is the "prosecutor's fallacy," a continuous-probability cousin of affirming the consequent, resolved quantitatively by Bayes' theorem rather than by simple truth tables, but conceptually the same converse-confusion.

Ask the tutor: Can you show me, step by step, how this equivalence justifies switching to a proof by contrapositive for "if n2n^2 is even, then nn is even"?

DefinitionConverse, Inverse, and Contrapositive of a Conditional

Let PP and QQ be statements (propositional formulas), and consider the conditional statement

P→Q.P \to Q.

Here PP is called the antecedent (or hypothesis) and QQ the consequent (or conclusion).

  • The converse of P→QP \to Q is the statement
Q→P.Q \to P.
  • The inverse of P→QP \to Q is the statement
¬P→¬Q.\lnot P \to \lnot Q.
  • The contrapositive of P→QP \to Q is the statement
¬Q→¬P.\lnot Q \to \lnot P.

These are three new conditional statements built from the same atomic statements PP and QQ as the original, using only the swap operation (exchange antecedent and consequent) and the negate operation (replace each of P,QP, Q by its negation). Applying swap and negate in the four possible combinations to P→QP \to Q produces exactly the four statements: the original, the converse, the inverse, and the contrapositive. Two statements built from atomic parts P1,…,PnP_1,\dots,P_n are called logically equivalent, written ≡\equiv, when they have the same truth value under every assignment of truth values to P1,…,PnP_1,\dots,P_n — equivalently, when the biconditional formed from them is a tautology.

Intuition

Think of P→QP \to Q as a one-way arrow from PP to QQ: "PP is enough to guarantee QQ." The four related statements come from two independent binary choices acting on this arrow: whether you reverse its direction (swap antecedent and consequent) and whether you negate both endpoints. Reversing alone gives the converse; negating alone gives the inverse; doing both gives the contrapositive. The reason the contrapositive survives while the converse and inverse do not is best understood by thinking about what makes a conditional false. The statement P→QP \to Q is false in exactly one situation: PP is true and QQ is false. Contraposing swaps and negates simultaneously, which turns "P true, Q false" into "not-Q true, not-P false" — precisely the one situation that makes ¬Q→¬P\lnot Q \to \lnot P false too. So the unique falsifying case is preserved by contraposition, and everywhere else both statements are (vacuously or non-vacuously) true. Reversing direction alone, however, moves the falsifying case to a different pair of truth values (QQ true, PP false becomes the new failure mode for the converse), which need not coincide with any failure mode of the original. The diagram below places the four statements at the corners of a square, with horizontal edges representing "swap" and vertical edges representing "negate." The diagonals of the square are exactly the equivalence classes: original/contrapositive on one diagonal, converse/inverse on the other.

Figure
The square of opposition for a conditional: diagonals are the equivalence classes
Original P → Q Converse Q → P Inverse ¬P → ¬Q Contrapositive ¬Q → ¬P swap swap negate negate ≡ (equivalent) ≡

Central theorem

TheoremThe Contraposition Equivalence, and the Non-Equivalence of the Converse/Inverse

Let PP and QQ be any statements. Then: 1. (Contrapositive equivalence.) P→QP \to Q is logically equivalent to its contrapositive:

P→Q ≡ ¬Q→¬P.P \to Q \ \equiv\ \lnot Q \to \lnot P.

2. (Converse–inverse equivalence.) The converse and the inverse of P→QP \to Q are logically equivalent to each other:

Q→P ≡ ¬P→¬Q.Q \to P \ \equiv\ \lnot P \to \lnot Q.

3. (Non-equivalence, in general.) There exist statements P,QP, Q such that P→QP \to Q and Q→PQ \to P do not have the same truth value; hence in general

P→Q ≢ Q→PandP→Q ≢ ¬P→¬Q.P \to Q \ \not\equiv\ Q \to P \qquad\text{and}\qquad P \to Q \ \not\equiv\ \lnot P \to \lnot Q.

So logical equivalence of a conditional with its converse (equivalently, with its inverse) can fail, and failure actually occurs for some choice of P,QP, Q — it is not merely "not provable," it is refutable as a universal claim.

LemmaTruth table of the conditional

For statements P,QP, Q, the conditional P→QP \to Q is false exactly when PP is true and QQ is false, and is true in the remaining three cases. This is the defining truth table of The Conditional Statement:

PPQQP→QP\to Q
TTT
TFF
FTT
FFT
Proof

We use the technique of truth-table verification: to show two propositional formulas built from atomic statements P,QP,Q are logically equivalent, it suffices to check that they agree on all 22=42^2 = 4 assignments of truth values to PP and QQ, since logical equivalence is defined as agreement on every assignment. This is not circular, since we take the truth table of →\to (Lemma: Truth table of the conditional) and of ¬\lnot (negation flips T to F and F to T) as already established semantic facts about the connectives, and derive the rest by direct computation.

Part 1 (contrapositive equivalence). Build the joint table for P→QP\to Q and ¬Q→¬P\lnot Q \to \lnot P.

PPQQ¬P\lnot P¬Q\lnot QP→QP\to Q¬Q→¬P\lnot Q \to \lnot P
TTFFTT
TFFTFF
FTTFTT
FFTTTT

To justify each entry in the last column: by the Lemma, ¬Q→¬P\lnot Q \to \lnot P is false exactly when its antecedent ¬Q\lnot Q is true and its consequent ¬P\lnot P is false, i.e. exactly when QQ is false and PP is true. That is precisely row 2 (P=P=T, Q=Q=F). In every other row, either ¬Q\lnot Q is false or ¬P\lnot P is true, so ¬Q→¬P\lnot Q \to \lnot P is true by the Lemma. Comparing the fifth and sixth columns row by row: T–T, F–F, T–T, T–T. The columns are identical in all four rows. Since logical equivalence means identical truth values under every assignment, and we have exhausted all 22=42^2=4 assignments of P,QP,Q, we conclude

P→Q≡¬Q→¬P.P \to Q \equiv \lnot Q \to \lnot P.

Part 2 (converse–inverse equivalence). Observe that the inverse of P→QP\to Q is ¬P→¬Q\lnot P \to \lnot Q, and the contrapositive of the converse Q→PQ \to P is obtained by swapping and negating Q→PQ \to P, giving ¬P→¬Q\lnot P \to \lnot Q — the same formula. So the inverse of P→QP\to Q equals, symbol-for-symbol, the contrapositive of the converse of P→QP \to Q. By Part 1 applied to the conditional Q→PQ \to P (substituting QQ for "PP" and PP for "QQ" in Part 1, which is valid since Part 1 was proved for arbitrary statements), we get

Q→P ≡ ¬P→¬Q,Q \to P \ \equiv\ \lnot P \to \lnot Q,

which is exactly the claimed converse–inverse equivalence.

Part 3 (non-equivalence in general). To disprove a universal claim ("for all P,QP,Q, P→Q≡Q→PP\to Q \equiv Q \to P") it suffices to exhibit one assignment of truth values to P,QP, Q where P→QP\to Q and Q→PQ\to P differ — this is a direct application of the rule that a single counterexample refutes a universally quantified statement. Take the assignment P=FP = \text{F}, Q=TQ = \text{T} (concretely realized below by "P:=P:= '22 is odd'," "Q:=Q:= '44 is even'," both statements about fixed numbers, so this is a genuine truth-value assignment, not a schematic gap). By the Lemma:

  • P→QP \to Q: antecedent F, so by the Lemma (rows 3–4) the conditional is true.
  • Q→PQ \to P: antecedent T, consequent F, so by the Lemma (row 2) the conditional is false.

Thus P→QP\to Q is true while Q→PQ \to P is false under this assignment, so they do not have the same truth value for all assignments, i.e. P→Q≢Q→PP \to Q \not\equiv Q \to P. Combined with Part 2 (Q→P≡¬P→¬QQ\to P \equiv \lnot P \to \lnot Q), the same assignment shows ¬P→¬Q\lnot P \to \lnot Q is false while P→QP \to Q is true, so also P→Q≢¬P→¬QP \to Q \not\equiv \lnot P \to \lnot Q. ■\blacksquare

∎
CorollaryContraposition is a valid rewriting rule; converse/inverse substitution is not

For any statements P,QP, Q: whenever P→QP \to Q occurs as a subformula (or as an assumption, or as a claim to be proved) in an argument, it may be replaced by ¬Q→¬P\lnot Q \to \lnot P without changing the truth value of the surrounding argument, because logically equivalent subformulas may always be substituted for one another (substitution of equivalents preserves truth value, since equivalent formulas agree on every assignment of the underlying atomic statements). No such universal substitution is valid for the converse or inverse, by Part 3 of the Theorem.

Worked examples

Example 1 (a genuinely asymmetric arithmetic conditional). Let PP be "nn is divisible by 66" and QQ be "nn is divisible by 33," where nn ranges over integers, and fix the specific instance n=9n = 9.

  • Original: "If 99 is divisible by 66, then 99 is divisible by 33." Antecedent: 9/69/6 is not an integer, so PP is false. By the Lemma, a conditional with a false antecedent is true regardless of the consequent, so P→QP \to Q is true here (vacuously).
  • Converse: "If 99 is divisible by 33, then 99 is divisible by 66." Here QQ ("99 divisible by 33") is true (9=3⋅39 = 3\cdot 3), and PP ("99 divisible by 66") is false. By the Lemma, a true antecedent with a false consequent makes the conditional false. So the converse is false at n=9n=9.
  • Inverse: "If 99 is not divisible by 66, then 99 is not divisible by 33." Antecedent (¬P\lnot P) is true (9 is indeed not divisible by 6); consequent (¬Q\lnot Q) is false (9 is divisible by 3, so "9 is not divisible by 3" is false). True antecedent, false consequent ⇒\Rightarrow the inverse is false at n=9n=9, matching Part 2 of the theorem (Q→PQ\to P and ¬P→¬Q\lnot P \to \lnot Q agree: both false here).
  • Contrapositive: "If 99 is not divisible by 33, then 99 is not divisible by 66." Antecedent (¬Q\lnot Q) is false (9 is divisible by 3). A false antecedent makes the whole conditional true, matching the original's truth value, confirming Part 1 at this instance.

This single instance (n=9n=9) already demonstrates the general phenomenon: original and contrapositive agree (both true), converse and inverse agree (both false), but the two pairs disagree with each other. It also shows precisely why "divisible by 3" does not imply "divisible by 6" — the converse direction genuinely fails for a concrete, checkable reason (9 is a multiple of 3 that is not a multiple of 2).

Example 2 (a geometric conditional, checking all four forms symbolically then instantiating). Let PP be "quadrilateral ABCDABCD is a square" and QQ be "quadrilateral ABCDABCD is a rectangle." Consider the fixed quadrilateral RR with vertices (0,0),(4,0),(4,2),(0,2)(0,0), (4,0), (4,2), (0,2) — a rectangle with side lengths 44 and 22.

  • Original, P→QP\to Q: "If RR is a square, then RR is a rectangle." RR is not a square (side lengths 4≠24 \ne 2), so PP is false, making P→QP \to Q vacuously true.
  • Converse, Q→PQ \to P: "If RR is a rectangle, then RR is a square." Here QQ is true (RR has four right angles and opposite sides equal, satisfying the definition of rectangle), and PP is false (as just noted). True antecedent, false consequent, so the converse is false.
  • Inverse, ¬P→¬Q\lnot P \to \lnot Q: "If RR is not a square, then RR is not a rectangle." ¬P\lnot P is true, ¬Q\lnot Q is false (since RR is a rectangle), so true antecedent/false consequent again: the inverse is false, agreeing with the converse as guaranteed by Part 2.
  • Contrapositive, ¬Q→¬P\lnot Q \to \lnot P: "If RR is not a rectangle, then RR is not a square." Antecedent ¬Q\lnot Q is false (RR is a rectangle). False antecedent ⇒\Rightarrow the whole statement is true, agreeing with the original as guaranteed by Part 1.

Notice the mathematical content behind the pattern: "square ⇒\Rightarrow rectangle" is a true universally quantified geometric fact (every square satisfies the rectangle definition), so for every quadrilateral, not just RR, the original conditional is true and its contrapositive is true. But "rectangle ⇒\Rightarrow square" is false as a universal claim, and RR is one witness making the converse (and inverse) false. Different rectangles could make the converse true instead (e.g. a 3×33\times 3 rectangle, which is a square) — the point of Part 3 of the theorem is only that the converse is not automatically forced to share the truth value of the original, not that it must always differ.

CounterexampleDropping "for all assignments": why equivalence must be checked on every truth value, not just one matching case

The theorem's Part 3 exhibits a case where P→QP \to Q and Q→PQ \to P disagree. One might object: "but in Example 2, choose the quadrilateral to be an actual square SS with side length 33 — then PP is true and QQ is true, so both P→QP\to Q and Q→PQ \to P come out true, and they 'agree' there!" This is correct as far as it goes, and it exposes exactly why the definition of logical equivalence demands agreement on every assignment of truth values to the atomic statements, not just some. Concretely: if we only checked the case P=T,Q=TP=\text{T}, Q=\text{T} (the square SS), we would wrongly conclude "P→Q≡Q→PP\to Q \equiv Q \to P," since both conditionals are true there. The error is checking only one row of the truth table instead of all four (equivalently, testing only one shape instead of all quadrilaterals). Dropping the hypothesis "for all truth-value assignments" from the definition of ≡\equiv — replacing it with "there exists an assignment where they agree" — collapses the notion of equivalence entirely, because any two conditionals of the form X→YX \to Y agree at X=FX=\text{F} (both vacuously true, regardless of YY). Under the weakened, wrong "definition," every conditional would be "equivalent" to every other conditional, including totally unrelated ones like "if 1=21=2 then pigs fly" and "if it rains then the sidewalk is dry" — an absurd conclusion that shows the universal quantifier over assignments is not a cosmetic detail but the entire content of the definition. The rectangle/square example (Example 2, with the non-square rectangle RR) is what correctly refutes the general equivalence, because it supplies the assignment P=FP=\text{F} combined with Q=TQ=\text{T}, which is precisely the profile that makes Q→PQ\to P false while P→QP \to Q stays true — the one row of the truth table where the two conditionals are forced apart.

Scope, edge cases & common traps

SituationWhat's trueWhat people wrongly assume
P→QP \to Q is a theoremContrapositive ¬Q→¬P\lnot Q \to \lnot P is automatically also a theoremConverse Q→PQ\to P is also automatically a theorem (false in general)
P→QP \to Q and Q→PQ \to P both trueThen P↔QP \leftrightarrow Q (biconditional) holdsThat this always happens whenever P→QP\to Q holds
PP falseP→QP\to Q vacuously true, tells you nothing about Q→PQ\to PThat vacuous truth of P→QP\to Q says anything about the converse's truth value
Proving P→QP \to QMay legally instead prove ¬Q→¬P\lnot Q \to \lnot P (this is Proof by Contrapositive)May legally instead prove Q→PQ \to P or ¬P→¬Q\lnot P \to \lnot Q
Natural language "if...then"Often intends a biconditional colloquially ("if you eat your dinner, [only then] you get dessert")That mathematical →\to carries this implicit converse; it does not, by definition

The mathematician behind it

Origins · 1 minAristotle and how this was discovered
A
Aristotle
c. 384–322 BCE · Ancient Greek philosophy, Lyceum, Athens

Aristotle's Prior Analytics and Categories laid down the first systematic treatment of conditional and categorical statements, including the recognition that reversing subject and predicate in a claim ("all SS are PP") produces a genuinely different claim ("all PP are SS") that requires separate justification — the ancestor of the converse/original distinction studied here. The broader apparatus of converse, contrary, and contradictory relationships among quantified statements was systematized into the medieval "square of opposition," a direct conceptual ancestor of the swap/negate square used above for the propositional conditional. The rigorous truth-table treatment of the material conditional itself is a much later, 19th–20th century development (traceable through Boole, Frege, and Post/Wittgenstein's truth tables), but the insight that a statement and its converse are logically independent claims — needing separate proofs — is already fully explicit in Aristotelian syllogistic, where fallacies of "illicit conversion" were catalogued as specific logical errors.

History
- c. 350 BCE — Aristotle's Prior Analytics studies conversion of categorical propositions and identifies invalid conversions as logical errors.
- 13th century — Medieval logicians (e.g. Peter of Spain) formalize the square of opposition, relating a statement to its contrary, converse, and contradictory.
- 1854 — George Boole's The Laws of Thought algebraizes logical connectives, giving the conditional a precise symbolic footing.
- 1880s — Gottlob Frege's Begriffsschrift gives a fully symbolic, quantified treatment of the conditional as a primitive logical connective.
- 1920–1921 — Emil Post and Ludwig Wittgenstein independently introduce truth tables as a systematic decision method for propositional equivalence, making the contrapositive/converse distinction a mechanically checkable fact.
Is the converse ever true, or is it always false?

The converse can absolutely be true — the theorem only says it is not guaranteed to be true just because the original conditional is true. For example, "if nn is even, then n+1n+1 is odd" has a true converse ("if n+1n+1 is odd, then nn is even"), and in fact here P↔QP \leftrightarrow Q holds. What the theorem rules out is a blanket logical law forcing the converse to inherit the original's truth value for all P,QP, Q. Whether a specific converse happens to be true is a separate mathematical question that must be checked (or proved) on its own merits, statement by statement; it gets no free pass from the truth of the original conditional.

Why does contraposition work but reversing the arrow doesn't?

Because a conditional P→QP \to Q is false in exactly one scenario: PP true and QQ false. Contraposition (swap and negate simultaneously) sends this scenario to "¬Q\lnot Q true and ¬P\lnot P false," which is exactly the unique scenario making ¬Q→¬P\lnot Q \to \lnot P false — so the two statements fail together and hold together in all cases, making them equivalent. Reversing the arrow alone (without negating) sends "P true, Q false" to a statement about a different scenario ("Q true, P false") that has no forced relationship to the original falsifying case, so nothing guarantees the truth values line up.

How is the inverse related to the converse, exactly?

The inverse of P→QP \to Q is ¬P→¬Q\lnot P \to \lnot Q, and if you take the contrapositive of the converse Q→PQ \to P (swap and negate it), you get ¬P→¬Q\lnot P \to \lnot Q — the same formula as the inverse. So the inverse is literally the contrapositive of the converse. Since contraposition always preserves truth value (the central theorem's Part 1), the inverse and the converse must always share the same truth value as each other, even though neither is guaranteed to share the truth value of the original conditional.

Does this generalize to statements with quantifiers, like "for all xx, P(x)→Q(x)P(x) \to Q(x)"?

Yes, and this is exactly the setting used in the worked examples. Fix any particular object aa in the domain; then P(a)P(a) and Q(a)Q(a) are ordinary (unquantified) statements with definite truth values, and everything proved here about P→QP \to Q applies verbatim to P(a)→Q(a)P(a) \to Q(a). The universally quantified claim "∀x (P(x)→Q(x))\forall x\, (P(x)\to Q(x))" is logically equivalent to "∀x (¬Q(x)→¬P(x))\forall x\, (\lnot Q(x) \to \lnot P(x))" because the equivalence holds pointwise for every xx, and a universal quantifier applied to two pointwise-equivalent formulas yields equivalent quantified statements. The quantified converse "∀x (Q(x)→P(x))\forall x\,(Q(x)\to P(x))" again need not follow, and a single "bad" object aa with Q(a)Q(a) true and P(a)P(a) false suffices to refute it — precisely the strategy used with n=9n=9 and with the rectangle RR.

Is "vacuously true" a loophole that breaks the theorem?

No — vacuous truth is fully accounted for inside the truth table, not an exception to it. When PP is false, P→QP \to Q is true regardless of QQ (rows 3 and 4 of the Lemma's table), and this fact is used consistently in every direction of every proof above, including the contrapositive equivalence proof. The apparent "loophole" that vacuous truth can mask a false converse (as in Example 2, where P→QP\to Q is vacuously true but Q→PQ \to P is false) is exactly the mechanism the counterexample block uses to demonstrate non-equivalence — it is a feature of the proof, not a gap in it.

Why should I care about this if I already know to "prove the contrapositive sometimes"?

Knowing the rule without knowing why it's valid leaves you unable to recognize when a similar-looking move is invalid — for instance, being unable to say why proving the converse instead would not establish the original claim. The truth-table proof here is what lets you certify, with full rigor, that swapping-and-negating is safe while swapping alone is not, rather than trusting a mnemonic. This distinction is also exactly what's tested when a claimed biconditional "PP iff QQ" is scrutinized: a correct biconditional proof must separately establish both P→QP\to Q and its converse Q→PQ \to P, since the theorem guarantees the latter is not automatic.

Before this

Where this leads