Logic & Sets

Converse, Inverse and Contrapositive of If-Then Statements

For a conditional statement p→qp \to q (if pp, then qq), the converse is q→pq \to p, the inverse is ¬p→¬q\neg p \to \neg q, and the contrapositive is ¬q→¬p\neg q \to \neg p. Only the contrapositive is guaranteed to be true whenever the original is true.

(p→q)≡(¬q→¬p)(p \to q) \equiv (\neg q \to \neg p)

The most common logic error in high school geometry and college proofs is assuming the converse comes free with the original. This page shows why it does not, how to build all three forms without slips, and how to test each one in under a minute.

Converse, inverse and contrapositive: the three rewrites

Start with a conditional p→qp \to q, where pp is the hypothesis and qq is the conclusion. Each related statement comes from one or both of two moves: swapping the parts and negating them.

  • Converse: swap the parts, giving q→pq \to p.
  • Inverse: negate both parts and keep the order, giving ¬p→¬q\neg p \to \neg q.
  • Contrapositive: swap and negate, giving ¬q→¬p\neg q \to \neg p.

Take “If it is a dog, then it is a mammal.” The converse says a mammal must be a dog, which a cat refutes. The inverse says a non-dog must be a non-mammal, which the same cat refutes. The contrapositive says that anything which is not a mammal is not a dog, and that holds without exception.

The word “inverse” here has nothing to do with inverse functions or inverse matrices. It means only “negate both parts.” To avoid mixing up the names, remember that the contrapositive is the only one whose name tells you it flips something and then flips it again.

Quick check

State the inverse of: 'If it snows, then school is closed.'

Why only the contrapositive always matches the original

A conditional fails in exactly one situation: pp is true and qq is false. Every other combination leaves it true. Lay out all four cases and the pattern appears. (If the connectives are new, the truth tables for the five logical connectives show where the arrow column comes from.)

pp qq p→qp \to q q→pq \to p ¬p→¬q\neg p \to \neg q ¬q→¬p\neg q \to \neg p
T T T T T T
T F F T T F
F T T F F T
F F T T T T

The original and the contrapositive agree in every row, because both are broken only by ”pp true, qq false.” The converse and inverse agree with each other in every row, but they split from the original in the two rows where pp and qq differ. This also gives a surprising fact: when a conditional is false, its converse and inverse are automatically true.

A picture makes the same point. If p→qp \to q is true, everything satisfying pp sits inside the region for qq. On a Venn diagram that is circle PP inside circle QQ, which in set notation is P⊆QP \subseteq Q. Anything outside QQ must then be outside PP, which is the contrapositive. The converse would need QQ inside PP as well, a much stronger claim.

How do you negate a statement with and, or, all or some?

Number line showing x greater than 2 and its negation x at most 2 with a filled dot at 2
The open circle at 2 in x > 2 becomes a filled dot in its negation, since 2 is not greater than 2.

Swapping is easy. Negating is where points disappear. Negation flips the connective, and it flips quantifiers too:

¬(p∧q)≡¬p∨¬q¬(p∨q)≡¬p∧¬q\neg(p \land q) \equiv \neg p \lor \neg q \qquad \neg(p \lor q) \equiv \neg p \land \neg q

These are De Morgan’s laws, and sets obey the same rule: the complement of a union is the intersection of the complements, as the page on union and intersection of sets illustrates. For quantifiers, the negation of “all” is “at least one is not,” and the negation of “some” is “none.”

The classic slip is negating “Every student passed” as “No student passed.” That is far stronger than necessary. One failure is enough to contradict “every.”

Negating an inequality

The negation of x>2x>2 is x≤2x\leq 2, not x<2x<2. The boundary value x=2x=2 is not greater than 22, so it belongs to the negation.

Now apply it. Take “If ab=0ab=0, then a=0a=0 or b=0b=0.” The conclusion qq is an “or,” so ¬q\neg q becomes ”a≠0a\neq 0 and b≠0b\neq 0.” The hypothesis negates to ab≠0ab\neq 0. Swapping gives the contrapositive:

a≠0 and b≠0  ⇒  ab≠0a\neq 0 \text{ and } b\neq 0 \;\Rightarrow\; ab\neq 0

Read aloud, it says a product of two nonzero numbers is nonzero, which is the same fact seen from the other side.

Quick check

Write the negation of: 'Every student passed the test.'

Worked examples: all three forms and their truth values

Example 1. Statement: “If x=3x=3, then x2=9x^2=9.”

  • Converse: if x2=9x^2=9, then x=3x=3. Try x=−3x=-3: then x2=9x^2=9 but x≠3x\neq 3. False.
  • Inverse: if x≠3x\neq 3, then x2≠9x^2\neq 9. Again x=−3x=-3 breaks it. False.
  • Contrapositive: if x2≠9x^2\neq 9, then x≠3x\neq 3. If xx were 33, then x2x^2 would be 99, so this holds. True.

Notice that one counterexample, x=−3x=-3, killed both the converse and the inverse. That is the equivalence of the two forms at work.

Example 2. Statement: “If x2+4x+k=0x^2+4x+k=0 has real solutions, then k≤4k\leq 4.”

The discriminant is b2−4ac=16−4kb^2-4ac=16-4k. Real solutions require 16−4k≥016-4k\geq 0, so k≤4k\leq 4 and the statement is true. The contrapositive reads: if k>4k>4, then there are no real solutions. Check with k=5k=5: the discriminant is 16−20=−416-20=-4, which is negative. The contrapositive turns a vague “has solutions” hypothesis into a test you can run on any number. For more practice with discriminants, try these quadratic formula practice problems.

The converse (if k≤4k\leq 4, then real solutions exist) and the inverse (if there are no real solutions, then k>4k>4) are both true here too. That is not luck, and a later section explains why.

The converse in geometry: when a theorem runs backward

Every geometry theorem is a conditional, and its converse is a separate claim that needs its own proof. Some converses hold and some do not. The Pythagorean theorem says: if a triangle is right with hypotenuse cc, then a2+b2=c2a^2+b^2=c^2. Its converse is also true, and that is why the theorem works as a test.

Example 3. Is a triangle with sides 77, 2424 and 2525 a right triangle? The longest side must be the hypotenuse, so compare:

72+242=49+576=625=2527^2+24^2=49+576=625=25^2

The equation holds, so the converse says the triangle is right. Now try 44, 55, 66:

42+52=16+25=41≠36=624^2+5^2=16+25=41\neq 36=6^2

Here the contrapositive of the original theorem does the work: if a2+b2≠c2a^2+b^2\neq c^2, the triangle is not right with hypotenuse cc. The original rules triangles out and the converse rules them in, so a complete test needs both directions.

Not every geometric converse survives. “If two angles are vertical angles, then they are congruent” is true. Its converse, “if two angles are congruent, then they are vertical,” is false, since two right angles in different places are congruent but not vertical. The types of angles page lists the pairs worth knowing. By contrast, the converse of the corresponding angles theorem is true, and it is the standard way to prove two lines parallel.

Hidden conditionals: only if, unless and necessary

Word problems and textbook theorems rarely say “if pp, then qq” plainly. Here is how the common disguises translate:

  • ”pp only if qq” means p→qp \to q.
  • ”pp if qq” means q→pq \to p.
  • ”pp unless qq” means ¬q→p\neg q \to p.
  • ”qq is necessary for pp” means p→qp \to q.
  • ”pp is sufficient for qq” means p→qp \to q.

“Only if” is the trap. “You may vote only if you are registered” means voting implies registration. Registration does not guarantee a vote, so reading it as “if registered, then you vote” builds the converse by mistake. “Unless” works the other way: “The game goes ahead unless it storms” means if it does not storm, the game goes ahead.

Sufficient versus necessary

In p→qp \to q, the hypothesis pp is sufficient for qq, and qq is necessary for pp. The converse swaps those roles, which is why it needs separate proof.

Proof by contrapositive: when it beats a direct proof

Because a statement and its contrapositive are equivalent, proving one proves the other. This pays off when the negated conclusion gives you something concrete to compute with.

Claim: if n2n^2 is even, then nn is even. A direct attempt starts with n2=2kn^2=2k and has to extract information about nn from a square, which is awkward. The contrapositive says: if nn is odd, then n2n^2 is odd. Write n=2k+1n=2k+1 for some integer kk:

n2=(2k+1)2=4k2+4k+1=2(2k2+2k)+1n^2=(2k+1)^2=4k^2+4k+1=2(2k^2+2k)+1

This has the form 2m+12m+1 with m=2k2+2km=2k^2+2k, so n2n^2 is odd. The contrapositive is proved, and so is the original. This exact argument is the first step in the classic proof that 2\sqrt{2} is irrational.

Reach for the contrapositive when the conclusion says “not” or “is even,” and the hypothesis would be hard to unpack. Proof by contradiction is a different method: it assumes the original hypothesis and the negated conclusion together, while the contrapositive assumes only the negated conclusion.

When the converse holds too: biconditional statements

If p→qp \to q and q→pq \to p are both true, they combine into p↔qp \leftrightarrow q, read ”pp if and only if qq.” The full story is on the page about biconditional statements. In that case all four forms are true together. Example 2 was one of these: real solutions exist exactly when b2−4ac≥0b^2-4ac\geq 0.

Lines give a clean case. Two non-vertical lines in slope-intercept form, y=mx+by=mx+b, are parallel when they have the same mm and different bb, such as y=2x+1y=2x+1 and y=2x+5y=2x+5. Same slope with the same intercept gives one line, not two parallel ones, so the converse needs the word “distinct.” That detail is where converses most often break.

Definitions deserve a quiet mention. A textbook may say “a triangle is equilateral if all three sides are equal,” but a definition always means “if and only if.” Theorems do not get that courtesy. When a theorem arrives as a plain “if,” test the converse yourself.

Quick check

Is the converse of 'If a number ends in 00, then it is divisible by 1010' true?

Where these forms show up beyond logic class

A medical screening test is a conditional: if a person has the condition, the test is positive. The contrapositive is the useful part: a negative test means the person does not have the condition (when the test never misses). The converse, “positive means disease,” is the one that fails because of false positives.

Linear algebra uses the same move. A square matrix that is invertible has a nonzero determinant. The contrapositive says a zero determinant means no inverse. For A=(2412)A=\begin{pmatrix}2&4\\1&2\end{pmatrix}:

det⁡A=2⋅2−4⋅1=0\det A=2\cdot 2-4\cdot 1=0

So AA has no inverse, found without attempting any inversion. The determinant of a 2×2 matrix is the quick check.

Extraneous solutions are a converse failure in disguise. Solving x+2=x\sqrt{x+2}=x by squaring gives x+2=x2x+2=x^2, so (x−2)(x+1)=0(x-2)(x+1)=0 and x=2x=2 or x=−1x=-1. Squaring says “if a=ba=b, then a2=b2a^2=b^2,” and its converse is false. Testing x=−1x=-1 gives 1=1≠−1\sqrt{1}=1\neq -1, so it is extraneous. Logarithmic equations carry the same risk, which is why the logarithm rules include domain restrictions.

How to check your answer with a counterexample

A single counterexample destroys a converse or inverse, and no number of examples can prove one. To test a converse, look for a case where the conclusion holds but the hypothesis does not. Good candidates are 00, negative numbers, and values sitting on a boundary.

For the contrapositive the check runs the other way. If the original is true, you cannot find a counterexample to your contrapositive. If you can, the contrapositive was built wrong, usually by a skipped negation or a flipped inequality.

Try this: Write the converse and the inverse of “If x>0x>0, then x2>0x^2>0,” then find a value of xx that breaks each one.

A final mental check: the only way an if-then statement can fail is ”pp true, qq false.” Your contrapositive should fail in exactly that same situation. If the failure case it describes differs, recheck your negations.

Practice problems

0 of 5 solved

  1. Write the contrapositive of: 'If a figure is a square, then it is a rectangle.'

  2. The statement 'If x>4x>4, then x2>16x^2>16' is true. Write its converse and decide whether the converse is true.

  3. The statement 'If nn is a multiple of 44, then nn is even' is true. Which of its converse, inverse and contrapositive must also be true?

  4. Write the contrapositive of: 'If ab=0ab=0, then a=0a=0 or b=0b=0.'

  5. The conditional p→qp \to q is false. What are the truth values of its converse, inverse and contrapositive?

Common questions

What is the difference between the converse, inverse and contrapositive?

For p→qp \to q, the converse swaps the parts (q→pq \to p), the inverse negates both parts (¬p→¬q\neg p \to \neg q), and the contrapositive does both (¬q→¬p\neg q \to \neg p). Only the contrapositive is guaranteed to have the same truth value as the original statement.

Which one is logically equivalent to the original statement?

The contrapositive. If the original is true, the contrapositive is true, and if the original is false, the contrapositive is false. The converse and inverse are equivalent to each other, but not necessarily to the original.

Is the inverse the same as the converse?

They are different sentences, but they always share a truth value. The inverse of a statement is the contrapositive of its converse, and a statement always matches its own contrapositive.

Can the converse be true when the original statement is false?

Yes. 'If x2=9x^2=9, then x=3x=3' is false because of x=−3x=-3, but its converse 'if x=3x=3, then x2=9x^2=9' is true. Whenever a conditional is false, its converse and inverse are both true.

How do you find the contrapositive when the statement has 'and' or 'or'?

Negate the conclusion and hypothesis, switching 'and' to 'or' and 'or' to 'and' inside each negation, then swap their positions. The contrapositive of 'if ab=0ab=0, then a=0a=0 or b=0b=0' is 'if a≠0a\neq 0 and b≠0b\neq 0, then ab≠0ab\neq 0.'

Why use the contrapositive in a proof?

Sometimes the negated conclusion gives you something concrete to work with, such as a formula for an odd number, while the original hypothesis does not. Proving the contrapositive proves the original, because the two are equivalent.

Up next