The contrapositive is easiest to feel when the sentence is not about algebra at all. So take an everyday weather claim: "If it is raining, then the ground is wet." Believe it for a moment, ignore the edge cases (someone standing under an awning, an indoor courtyard — set those aside). Under that claim, what else are you forced to believe?
You are forced to believe: "If the ground is dry, then it is not raining." That is the contrapositive. And it is the same commitment — not a new one, not a weaker one. If you accept the first sentence, you have already accepted the second, whether or not you realise it.
Why the flip is forced
The first sentence is a promise of the form P \Rightarrow Q with P = "it is raining" and Q = "the ground is wet." The only way this promise can be broken is for the ground to be dry while it is raining — P true and Q false. In every other scenario the promise is kept.
Now reverse the viewpoint. If you tell me the ground is dry, I can conclude it is not raining — because if it were raining, the ground would have to be wet (by your original promise). So "ground is dry" \Rightarrow "not raining" is simply the first promise, read from the other end. That is \lnot Q \Rightarrow \lnot P, the contrapositive.
Why the sentence doesn't flip to "If the ground is wet, then it is raining": that would be the converse, not the contrapositive. The converse is a different, stronger claim that an ordinary person would reject: a wet ground could come from a spilled bucket, a sprinkler, or an overnight dew. The original sentence never ruled that out. See Converse vs Contrapositive — Why They Are Not the Same Thing.
Drag through the four possible days
Imagine four possible days. For each, we record whether it is raining (P) and whether the ground is wet (Q). The slider below walks through them. Watch how the original sentence and its contrapositive judge each day the same way.
The flip explained in pictures
Here is the logical structure of the flip, done graphically. The original sentence draws an arrow from "raining" to "wet." The contrapositive draws an arrow from "dry" (not-wet) to "not raining."
A trap: the contrapositive is not the converse
Read the original one more time: "If it rains, the ground is wet." Now consider three candidate restatements, and decide which is the contrapositive.
- "If the ground is wet, then it rained." Converse. Not equivalent — the ground could be wet from a sprinkler.
- "If it is not raining, the ground is not wet." Inverse. Not equivalent — a recently rained day could still have puddles.
- "If the ground is dry, then it is not raining." Contrapositive. Equivalent — this is the only safe restatement.
The contrapositive is the only one of the three that says the same thing as the original. Mixing up contrapositive with converse is the classic logical error — it sounds right, but it is provably a different claim. See the Converse, Inverse, Contrapositive — The Four-Form Carousel for the full comparison.
Why everyday examples help
You already reason contrapositively in daily life, long before you do it in maths. "If the restaurant is open, the lights are on. The lights are off — so the restaurant must be closed." You did not notice you were using a formal logical equivalence. But the jump from "lights off" to "closed" is exactly \lnot Q \Rightarrow \lnot P — the contrapositive of the original "open \Rightarrow lights on." Proof by contrapositive in mathematics is just this everyday move, dressed up in symbols.
Related: Proof by Contrapositive · Converse vs Contrapositive — Why They Are Not the Same Thing · Converse, Inverse, Contrapositive — The Four-Form Carousel · Logic and Propositions