HomeGuides › Converse, inverse, contrapositive
Propositional Logic

Converse, Inverse, and Contrapositive

Three statements built from one conditional, and only one of them says the same thing. Getting this wrong is the most expensive two seconds on a logic test — and it is entirely mechanical to get right.

The short answer

Start with a conditional p → q. Three related statements come from it:

NameFormWhat changed
Originalp → q
Converseq → pSwapped
Inverse¬p → ¬qNegated
Contrapositive¬q → ¬pNegated and swapped
The one fact to carry into the exam: a conditional is logically equivalent to its contrapositive, and to neither the converse nor the inverse. Separately, the converse and the inverse are equivalent to each other.

That second sentence is not a bonus fact. It falls straight out of the first: the inverse ¬p → ¬q is itself the contrapositive of the converse q → p. Every equivalence on this page is really the same equivalence used twice.

Building each one without slipping

Do it in two separate passes rather than one. Trying to negate and swap in a single motion is how the inverse and the contrapositive get confused.

  1. Write down p and q separately before touching anything. Name them out loud.
  2. Swap only → that is the converse.
  3. Negate only → that is the inverse.
  4. Do both → that is the contrapositive.

Take the statement: "If n is an even integer greater than 2, then n is the sum of two primes."

Here p is "n is an even integer greater than 2" and q is "n is the sum of two primes."

Notice that the converse here is plainly false — 5 = 2 + 3 is a sum of two primes and is neither even nor greater than 2 in the required sense — while the original is a famous open conjecture. One is false, the other is not known to be false. They cannot be the same statement. The contrapositive, meanwhile, is exactly as open as the original, because it is the original.

The truth table that settles it

Four rows, and every claim on this page is visible in them.

pqp → qq → p¬p → ¬q¬q → ¬p
TTTTTT
TFFTTF
FTTFFT
FFTTTT

Read the columns, not the rows. Column 3 (p → q) and column 6 (¬q → ¬p) are identical — that is the contrapositive equivalence. Column 4 (converse) and column 5 (inverse) are identical to each other, and different from the first pair. The two disagreements both live in the middle rows, exactly where p and q have opposite truth values.

This is also why the equivalence is worth memorizing rather than re-deriving: a conditional is false in one row only, and negating-and-swapping moves that row onto itself.

Why the contrapositive is the one that earns its keep

The equivalence is not trivia. It is the license for proof by contraposition: to prove p → q, you may instead assume ¬q and derive ¬p. You are allowed to do that precisely because the two statements are the same statement.

It pays off whenever the negation is the more concrete thing to hold. Consider: if n² is even, then n is even. Starting from "n² is even" gives you n² = 2k, and extracting anything about n from that requires unique factorization. Starting from the contrapositive — assume n is odd — gives you n = 2m + 1 immediately, and then n² = 4m² + 4m + 1 = 2(2m² + 2m) + 1 is odd. Three lines, no machinery.

Rule of thumb: if the hypothesis is a negative or an existence-denial ("is not divisible by", "has no solution", "is irrational"), try the contrapositive first. Negatives are hard to compute with; their negations usually are not.

The vocabulary that causes the swap

Most converse errors do not happen in symbols. They happen in English, one step earlier, when the sentence gets translated. These four phrasings all mean p → q:

EnglishSymbolicWhy
If p, then qp → qThe base case.
p only if qp → qThe "only if" clause is the conclusion.
q whenever pp → qEvery time p holds, q holds.
q is necessary for pp → qA necessary condition is the consequent.

And these two mean the reverse, q → p:

EnglishSymbolicWhy
p if qq → pBare "if" introduces the hypothesis.
q is sufficient for pq → pA sufficient condition is the hypothesis.

The pair to burn in is necessary versus sufficient. Sufficient goes in front of the arrow; necessary goes behind it. "Only if" behaves like "necessary", which is why it points the opposite way from plain "if" — a genuinely counterintuitive fact about English, not about logic.

"If and only if" is neither: it asserts both directions at once and is the biconditional p ↔ q. It is strictly stronger than p → q, so a sentence phrased that way is not a correct symbolization of a one-way conditional.

Where these go wrong

Test yourself in the free Kestrel Exams app

Discrete Math practice is free and works offline — topic-selectable drills on conditionals, equivalences, quantifiers, proof methods, and induction.

Drill logical equivalences →

Frequently asked questions

Is a conditional equivalent to its converse?

No. The conditional p → q and its converse q → p differ in truth value whenever exactly one of p and q is true. A conditional is equivalent only to its contrapositive. Assuming the converse follows from the original is the single most common error in propositional logic.

Why is the contrapositive equivalent to the original conditional?

Both statements are false in exactly one situation and true in the other three. The conditional p → q is false only when p is true and q is false. The contrapositive ¬q → ¬p is false only when ¬q is true and ¬p is false — which is the same situation: q false and p true. Same row false, same rows true, so they are logically equivalent.

What is the difference between the inverse and the contrapositive?

The inverse negates both parts but keeps the order: ¬p → ¬q. The contrapositive negates both parts and reverses the order: ¬q → ¬p. Only the reversal makes it equivalent to the original. The inverse is equivalent to the converse instead, since each is the contrapositive of the other.

Does "p only if q" mean p → q or q → p?

It means p → q. This surprises people because "if" alone points the other way: "p if q" is q → p. In "p only if q" the clause after "only if" is the conclusion, and it states a necessary condition for p. A necessary condition is always the consequent; a sufficient condition is always the hypothesis.