In short
Proof by contradiction works by assuming the opposite of what you want to prove and then showing that this assumption leads to something impossible — a logical contradiction. Since a false assumption cannot produce only true statements, the original claim must be true. The technique is especially powerful for proving that something cannot exist or that a number is not of a particular kind, such as proving that \sqrt{2} is irrational.
Some mathematical truths resist the direct approach. Try to prove directly that \sqrt{2} is irrational — that it cannot be written as a fraction p/q with p and q integers. Where would you even start? You cannot check every possible fraction (there are infinitely many), and there is no obvious algebraic path from "\sqrt{2} exists" to "\sqrt{2} is not a ratio of integers." The direct road has no clear first step.
But suppose, just for the sake of argument, that \sqrt{2} is rational. Suppose you can write it as p/q. What happens? You follow the algebra carefully, and you arrive at a statement that contradicts itself — something that is both true and false at the same time. That contradiction means your starting assumption was wrong. And if the assumption "\sqrt{2} is rational" is wrong, then \sqrt{2} must be irrational.
That is proof by contradiction: assume the opposite, follow the logic, and wait for it to break. The technique has been used for over two thousand years. The proof that \sqrt{2} is irrational is one of the oldest and most beautiful arguments in all of mathematics, and it reaches its conclusion not by building something up, but by watching a false assumption tear itself apart.
The logical foundation
In Logic and Propositions, you met the idea that a proposition is either true or false — there is no third option. This is the law of the excluded middle: for any proposition P, either P is true or \lnot P (not P) is true.
Proof by contradiction exploits this law. If you want to prove P is true, you can instead assume \lnot P and show that \lnot P leads to a contradiction — a statement that is both true and false, which is impossible. Since \lnot P leads to impossibility, \lnot P cannot be true. And since one of P or \lnot P must be true, it follows that P is true.
Proof by Contradiction (Reductio ad Absurdum)
To prove a statement P:
- Assume \lnot P (the negation of P).
- Using this assumption and known facts, derive a contradiction — a statement of the form "Q and \lnot Q" for some proposition Q.
- Conclude that \lnot P is false, so P must be true.
The Latin name reductio ad absurdum — "reduction to absurdity" — captures the idea perfectly. You reduce the negation of your claim to an absurdity, and the absurdity proves your claim.
The classic example: \sqrt{2} is irrational
This is the proof that every mathematics student should see at least once. It is short, it is clean, and it demonstrates the power of contradiction better than any abstract description.
Claim. \sqrt{2} is irrational — that is, there are no integers p and q (with q \neq 0) such that \sqrt{2} = p/q.
Proof. Assume, for the sake of contradiction, that \sqrt{2} is rational. Then \sqrt{2} = p/q for some integers p and q with q \neq 0. Choose p and q so that the fraction p/q is in lowest terms — that is, p and q share no common factor other than 1. (You can always reduce a fraction to lowest terms by dividing out common factors, so this is a valid choice.)
Step 1. Square both sides.
so p^2 = 2q^2.
Step 2. Conclude that p^2 is even. Since p^2 = 2q^2, the right side is 2 times an integer, so p^2 is even.
Step 3. Conclude that p is even. If p were odd, then p^2 would be odd (because the square of an odd number is odd — proved in Mathematical Proof — Direct Proof). Since p^2 is even, p must be even. So p = 2k for some integer k.
Step 4. Substitute back. Since p = 2k:
But p^2 = 2q^2, so 4k^2 = 2q^2, which gives q^2 = 2k^2.
Step 5. Conclude that q^2 is even, so q is even. The same argument from Steps 2 and 3 applies: q^2 = 2k^2 means q^2 is even, so q is even.
Step 6. Arrive at the contradiction. Both p and q are even, so they share a factor of 2. But we chose p/q to be in lowest terms — meaning p and q share no common factor other than 1. The statements "p and q share a factor of 2" and "p and q share no common factor other than 1" cannot both be true.
This is the contradiction. The assumption that \sqrt{2} is rational has led to an impossibility. Therefore \sqrt{2} is irrational. \square
The proof uses nothing beyond the definition of "even," the fact that the square of an odd number is odd, and the definition of "lowest terms." That is why it is so striking — a deep truth about the nature of \sqrt{2} follows from the simplest possible ingredients.
The geometry behind \sqrt{2}
The irrationality of \sqrt{2} is not just an algebraic curiosity — it has a geometric origin. Consider a square with side length 1. The diagonal of this square, by the Pythagorean theorem, has length \sqrt{1^2 + 1^2} = \sqrt{2}. So the proof above is really saying: there is no ruler, marked with equally spaced rational points, that can measure both the side and the diagonal of a unit square exactly. The side is 1 unit; the diagonal is \sqrt{2} units; and no common unit of measurement — no matter how small — divides both lengths evenly.
This incommensurability was one of the earliest hints that the rational numbers are incomplete — that there are "gaps" on the number line that no fraction can reach. Those gaps are exactly the irrational numbers, and the proof by contradiction is the tool that revealed them.
The interactive figure below lets you explore this gap. Drag the point to choose a denominator q, and the readout shows the closest fraction p/q to \sqrt{2} and how far off it is. No matter how large you make q, the error never reaches zero — the fractions get closer and closer but never arrive.
When to use proof by contradiction
Proof by contradiction is the right tool when:
-
The conclusion is a negative statement. "There is no integer n with n^2 = 2" (in \mathbb{Q}). "No rational number squared equals 2." Negative statements are hard to prove directly because you cannot check all possibilities. But if you assume the positive version ("there is such an integer") and derive a contradiction, the negative conclusion follows.
-
The conclusion says something is unique. "There is only one even prime." Assume there are two, and show they must be equal.
-
You want to prove an inequality by eliminating the other case. "If a^2 is even, then a is even." Trying to prove this directly is awkward. But assume a is odd and show that a^2 would then be odd, contradicting the hypothesis.
-
The direct path has no obvious starting point. If you stare at the hypothesis and the conclusion and see no algebraic bridge between them, try assuming the conclusion is false. The negation often gives you new equations to work with.
The trade-off: proof by contradiction is powerful but sometimes indirect. When a direct proof exists, it is usually clearer and more informative, because it shows why the conclusion holds, not just that it holds. A contradiction proof shows that the opposite is impossible, but it does not always illuminate the mechanism. Use contradiction when the direct path is genuinely blocked, not as a lazy alternative to thinking directly.
The difference between contradiction and contrapositive
These two techniques are easy to confuse because both involve negation. Here is the difference.
Proof by contradiction assumes the negation of the entire conclusion and derives a contradiction — any contradiction at all.
Proof by contrapositive applies only to statements of the form "if P then Q" and instead proves "if \lnot Q then \lnot P" — the logically equivalent contrapositive — by a direct proof.
The contrapositive is a special case of contradiction. When you assume P is true and Q is false and derive that P is false, you have used contradiction — but the specific contradiction you found was "P and \lnot P," which is exactly what the contrapositive technique predicts. The article on proof by contrapositive explores this relationship in detail.
Two worked examples
Example 1: Prove that there is no largest integer
Claim. There is no integer N that is greater than or equal to every other integer.
This is a negative existential statement — "there does not exist an N such that..." — and it is a natural candidate for contradiction.
Step 1. Assume the opposite: there is a largest integer. Call it N.
So N is an integer, and for every integer m, m \le N.
Why: this is what "largest integer" means — every other integer is at most N. The assumption gives you a concrete object to work with.
Step 2. Construct N + 1.
Since N is an integer, N + 1 is also an integer (the integers are closed under addition — see Operations and Properties).
Why: you need another integer to compare against N. The simplest candidate is N + 1, and closure guarantees it is a valid integer.
Step 3. Compare N + 1 with N.
N + 1 > N.
Why: adding 1 to any number makes it strictly larger. This is a basic property of the ordering on \mathbb{Z}.
Step 4. Identify the contradiction.
The assumption says every integer m satisfies m \le N. But N + 1 is an integer and N + 1 > N. These two statements contradict each other.
Why: the assumption says N is at least as large as everything, but N + 1 is something strictly larger. One of these must be false, and the ordering fact N + 1 > N is certainly true — so it is the assumption that fails.
Step 5. Conclude.
The assumption that a largest integer exists leads to a contradiction. Therefore, no largest integer exists. \square
Result. There is no largest integer.
The proof is three lines of real work (construct N + 1, observe N + 1 > N, note the contradiction), but those three lines settle an infinite question. That is the leverage that contradiction gives you.
Example 2: Prove that $\sqrt{3}$ is irrational
Claim. \sqrt{3} is irrational.
The structure mirrors the \sqrt{2} proof, but the divisibility argument adapts to the prime 3.
Step 1. Assume, for contradiction, that \sqrt{3} is rational.
Then \sqrt{3} = p/q for some integers p, q with q \neq 0 and p/q in lowest terms (so p and q share no common factor other than 1).
Why: "rational" means "expressible as a fraction." Choosing lowest terms is a free move that gives you an extra constraint to eventually contradict.
Step 2. Square both sides and rearrange.
Why: squaring removes the square root, turning the equation into a statement about integers — which is where divisibility arguments can operate.
Step 3. Conclude that 3 \mid p.
Since p^2 = 3q^2, the left side is divisible by 3. Now use the fact that if 3 \mid p^2 then 3 \mid p. (This is a property of primes: if a prime divides a product, it divides at least one factor. Since p^2 = p \cdot p and 3 is prime, 3 \mid p.) So p = 3k for some integer k.
Why: the key algebraic fact is that 3 is prime. For a prime r, r \mid n^2 implies r \mid n. This is what drives the contradiction — the same argument would not work for a non-prime like 4.
Step 4. Substitute p = 3k back.
So 3 \mid q^2, and by the same prime argument, 3 \mid q.
Why: the same move as Step 3, applied to q instead of p. The factor of 3 bounces from p to q — exactly the pattern that creates the contradiction.
Step 5. Derive the contradiction.
Both p and q are divisible by 3, so they share 3 as a common factor. But p/q was in lowest terms — no common factor other than 1. Contradiction.
Therefore \sqrt{3} is irrational. \square
Result. \sqrt{3} is irrational.
The pattern of this proof is reusable. For any prime r, the same argument shows \sqrt{r} is irrational: assume \sqrt{r} = p/q in lowest terms, derive r \mid p and r \mid q, contradiction. The prime's role is essential — the argument breaks for perfect squares like \sqrt{4} = 2, because 4 \mid p^2 does not force 2 \mid p in the same way (it forces 2 \mid p, but the factor only bounces once, not twice).
Common confusions
-
"Contradiction means the claim is false." The opposite: contradiction means the assumption is false. If you assumed "\sqrt{2} is rational" and got a contradiction, then "\sqrt{2} is rational" is false — so \sqrt{2} is irrational. The contradiction kills the assumption, not the original claim.
-
"Any weird-looking result counts as a contradiction." A contradiction must be a genuine logical impossibility — a statement of the form "A is true and A is false." Getting an unexpected or surprising result is not a contradiction. "p and q are both even when the fraction is in lowest terms" is a genuine contradiction because "both even" and "lowest terms" are mutually exclusive by definition. A result like "x = 7" is not a contradiction — it is just a number.
-
"You can use proof by contradiction for everything." Technically yes, but practically no. When a direct proof exists, it is almost always clearer. Using contradiction to prove "2 + 3 = 5" would be absurd — you would assume 2 + 3 \neq 5 and then observe that 2 + 3 = 5, which is circular. Contradiction is a tool for situations where the direct path is genuinely obstructed, not a universal substitute for thinking.
-
"The fraction p/q doesn't have to be in lowest terms." Choosing lowest terms is not just a convenience — it is what creates the contradiction. If you allow p and q to share common factors, then discovering they share a factor of 2 is not surprising and does not contradict anything. The "lowest terms" assumption is the trap that the proof sets for itself.
-
"This only works for \sqrt{2}." The same structure works for \sqrt{r} for any prime r, and more generally for \sqrt{n} whenever n is not a perfect square. The key property used is that primes propagate through squares: r \mid p^2 \Rightarrow r \mid p.
Going deeper
If you came here to learn the technique and see it applied to the classic irrationality proofs, you have everything you need. The rest of this section is for readers who want to see the broader landscape — where contradiction fits in the hierarchy of proof methods, and what it means for the foundations of logic.
Constructive mathematics and the status of contradiction
Proof by contradiction rests on the law of the excluded middle: every proposition is either true or false. This seems obvious, but there is a school of mathematics — constructive mathematics — that rejects this law. Constructivists accept proof by contradiction only for deriving negative statements ("there is no x such that...") but not for positive existence claims ("there exists an x such that..."). The reason is philosophical: a constructive proof of "there exists x" must actually produce the x, not merely show that its non-existence leads to trouble.
In standard (classical) mathematics, the law of the excluded middle is accepted, and proof by contradiction is fully valid for all statements. This is the framework used in Indian school and competitive mathematics. But it is worth knowing that the framework is a choice, not a necessity — and that serious mathematicians have explored the alternative.
Infinite descent
A powerful variation of proof by contradiction is infinite descent, associated with the French mathematician Pierre de Fermat. The idea: assume a solution exists, and show that it implies the existence of a smaller solution, which implies a still smaller solution, and so on forever. But an infinite descending sequence of positive integers is impossible (every non-empty set of positive integers has a least element). So the original assumption fails.
The irrationality proof for \sqrt{2} is secretly an infinite descent argument. If p/q is in lowest terms and both p and q are even, you can divide both by 2 to get a "more reduced" fraction — but the original was already in lowest terms, so there is nowhere left to descend. The same idea — reducing a solution to a smaller solution until you run out of room — shows up throughout number theory and is one of the most elegant proof strategies in all of mathematics.
The irrationality of e and \pi
The irrationality of \sqrt{2} and \sqrt{3} are entry-level results. Much deeper results, also proved by contradiction, include the irrationality of e (the base of natural logarithms) and \pi (the ratio of a circle's circumference to its diameter). These proofs are beyond introductory level, but they use the same core move: assume the number is rational, derive consequences, and find a contradiction. The proofs are longer and the algebra is harder, but the logical skeleton is identical to the one you learned in this article.
Ramanujan, one of the greatest mathematicians India has produced, discovered extraordinary formulas for \pi as infinite series, including:
Each term of this series gives roughly eight more correct digits of \pi. The series converges astonishingly fast — and the irrationality of \pi means it never terminates or repeats.
Where this leads next
Proof by contradiction opens a wide landscape of results that the direct method alone cannot reach.
- Proof by Contrapositive — a closely related technique that proves "if P then Q" by proving "if \lnot Q then \lnot P" directly, avoiding the need for an explicit contradiction.
- Mathematical Proof — Direct Proof — the foundational technique that contradiction builds on. Many contradiction proofs contain direct-proof sub-arguments inside them.
- Mathematical Induction — a technique for proving statements about all positive integers, which combines with contradiction in the method of infinite descent.
- Number Theory Basics — where the irrationality proofs and divisibility arguments in this article become everyday tools.
- Number Systems — where the irrationality of \sqrt{2} motivates the construction of \mathbb{R} from \mathbb{Q}, filling in the gaps that rational numbers leave.
- Logic and Propositions — the formal framework that makes the law of the excluded middle and the structure of contradiction precise.