Contrapositive Formula

The contrapositive of a conditional statement P ⇒ Q is ¬ Q ⇒ ¬ P, formed by negating both parts and reversing their order — it is always logically equivalent to the original.

The Formula

(P→Q)⇔(¬Q→¬P)

Ask yourself: Did I negate BOTH parts AND reverse their order, keeping the same truth value?

Quick example

Original: 'If it rains, the ground is wet.' Contrapositive: 'If the ground isn't wet, it didn't rain.'

Notation

∼Q→∼P is the contrapositive of P→Q

What this formula means

The contrapositive of a conditional statement P⇒Q is ¬Q⇒¬P, formed by negating both parts and reversing their order — it is always logically equivalent to the original.

The contrapositive is a security rule read backwards: 'everyone inside the lab wears a badge' means 'anyone without a badge is not inside the lab'. Both sentences forbid exactly one thing, a person inside without a badge, so they stand or fall together. 'Everyone with a badge is inside' forbids something else entirely.

Formal view

(P→Q)⇔(¬Q→¬P); both have identical truth tables in all four rows

Worked examples

Example 1

easy
Form the contrapositive of: 'If n2 is even, then n is even.'
Show solution

Answer

If n is odd, then n2 is odd.

First step

1.
Recall the structure of the conditional: p⇒q where p: 'n2 is even' and q: 'n is even.'

Full solution

  1. 2.
    The contrapositive is ¬q⇒¬p. Form the negations: ¬q: 'n is not even' (i.e., n is odd), and ¬p: 'n2 is not even' (i.e., n2 is odd).
  2. 3.
    Contrapositive: 'If n is odd, then n2 is odd.' By the logical equivalence p⇒q≡¬q⇒¬p, this statement has exactly the same truth value as the original — and it is in fact true (odd times odd is odd).
The contrapositive negates both parts and swaps them. It is always logically equivalent to the original conditional, making it a powerful tool in proofs.

Example 2

medium
Prove by contrapositive: 'If n2 is odd, then n is odd.'

Example 3

medium
Prove by contrapositive: if 3n+2 is odd, then n is odd.

Common mistakes

  • Negating without reversing, giving the inverse ¬P→¬Q — the contrapositive must reverse too.
  • Reversing without negating, giving the converse Q→P — neither is equivalent to the original.
  • Forgetting the equivalence — the contrapositive always shares the original's truth value, so proving it proves the original.

Why this formula matters

The contrapositive is one of the main tools of proof: statements whose hypothesis gives you little to work with ('n2 is even') become easy once flipped ('n is odd, so n=2k+1'). It also keeps everyday reasoning honest: from 'every mammal is warm-blooded' you may conclude 'a cold-blooded animal is not a mammal', but not 'a warm-blooded animal is a mammal', since birds are warm-blooded too.

Frequently asked questions

What is the Contrapositive formula?

The contrapositive of a conditional statement P⇒Q is ¬Q⇒¬P, formed by negating both parts and reversing their order — it is always logically equivalent to the original.

How do you use the Contrapositive formula?

Use the contrapositive when a conditional's hypothesis is hard to work with but its negated conclusion gives you something concrete, such as 'odd', 'not divisible by 3' or 'not equal'. It also checks arguments: from P→Q and not Q, conclude not P. If you need both directions, prove the conditional and its converse (a biconditional). If you only swapped or only negated, you have the converse or the inverse, which prove nothing.

What do the symbols mean in the Contrapositive formula?

∼Q→∼P is the contrapositive of P→Q

Why is the Contrapositive formula important in Math?

The contrapositive is one of the main tools of proof: statements whose hypothesis gives you little to work with ('n2 is even') become easy once flipped ('n is odd, so n=2k+1'). It also keeps everyday reasoning honest: from 'every mammal is warm-blooded' you may conclude 'a cold-blooded animal is not a mammal', but not 'a warm-blooded animal is a mammal', since birds are warm-blooded too.

What do students get wrong about Contrapositive?

The procedure for contrapositive is the easy part; the trap is negating without reversing, giving the inverse ¬P→¬Q. Asking "Did I negate BOTH parts AND reverse their order, keeping the same truth value?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

What should I learn before the Contrapositive formula?

Before studying the Contrapositive formula, you should understand: conditional, negation.

The full guide

This formula is covered in depth in Conditional Statements: Converse, Inverse, Contrapositive, and Biconditional.